public static class TspImpl.NetworkTspConstraint extends java.lang.Object implements TspConstraint
| Constructor and Description |
|---|
NetworkTspConstraint(LODNetworkConstraint networkConstraint) |
| Modifier and Type | Method and Description |
|---|---|
int[] |
getUserDataCategories()
Returns the required user data categories.
|
boolean |
isSatisfied(TspAnalysisInfo context)
Checks if the constraint is satisfied.
|
void |
reset()
This method allows a stateful network constraint object to be reset to its original state and reused by network analysis functions.
|
void |
setNetworkAnalyst(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.
|
public NetworkTspConstraint(LODNetworkConstraint networkConstraint)
public int[] getUserDataCategories()
TspConstraintgetUserDataCategories in interface TspConstraintpublic void reset()
TspConstraintreset in interface TspConstraintpublic void setNetworkAnalyst(NetworkAnalyst analyst)
TspConstraintsetNetworkAnalyst in interface TspConstraintpublic boolean isSatisfied(TspAnalysisInfo context)
ConstraintisSatisfied in interface Constraint<TspAnalysisInfo>context - the analysis contextLODAnalysisInfo