Package oracle.spatial.network.lod
Class TspImpl.NetworkTspConstraint
- java.lang.Object
-
- oracle.spatial.network.lod.TspImpl.NetworkTspConstraint
-
- All Implemented Interfaces:
Constraint<TspAnalysisInfo>,TspConstraint
- Enclosing class:
- TspImpl
public static class TspImpl.NetworkTspConstraint extends java.lang.Object implements TspConstraint
-
-
Constructor Summary
Constructors Constructor Description NetworkTspConstraint(LODNetworkConstraint networkConstraint)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int[]getUserDataCategories()Returns the required user data categories.booleanisSatisfied(TspAnalysisInfo context)Checks if the constraint is satisfied.voidreset()This method allows a stateful network constraint object to be reset to its original state and reused by network analysis functions.voidsetNetworkAnalyst(NetworkAnalyst analyst)This method allows caller to pass the network analyst object to this constraint, so that the constraint can call the analysis functions provided by the network analyst, or access the network explorer associated with the network analyst.
-
-
-
Constructor Detail
-
NetworkTspConstraint
public NetworkTspConstraint(LODNetworkConstraint networkConstraint)
-
-
Method Detail
-
getUserDataCategories
public int[] getUserDataCategories()
Description copied from interface:TspConstraintReturns the required user data categories.- Specified by:
getUserDataCategoriesin interfaceTspConstraint- Returns:
-
reset
public void reset()
Description copied from interface:TspConstraintThis method allows a stateful network constraint object to be reset to its original state and reused by network analysis functions.- Specified by:
resetin interfaceTspConstraint
-
setNetworkAnalyst
public void setNetworkAnalyst(NetworkAnalyst analyst)
Description copied from interface:TspConstraintThis method allows caller to pass the network analyst object to this constraint, so that the constraint can call the analysis functions provided by the network analyst, or access the network explorer associated with the network analyst. If network analyst is not needed by the constraint, the link level selector can choose to do nothing with this method.- Specified by:
setNetworkAnalystin interfaceTspConstraint
-
isSatisfied
public boolean isSatisfied(TspAnalysisInfo context)
Description copied from interface:ConstraintChecks if the constraint is satisfied.- Specified by:
isSatisfiedin interfaceConstraint<TspAnalysisInfo>- Parameters:
context- the analysis context- See Also:
LODAnalysisInfo
-
-