public static class TspConstraintOperator.CombinedConstraint extends java.lang.Object implements TspConstraint
Modifier and Type | Method and Description |
---|---|
TspConstraint[] |
getConstraints() |
int |
getOperator() |
int[] |
getUserDataCategories()
Returns the required user data categories.
|
boolean |
isSatisfied(TspAnalysisInfo analysisInfo)
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 boolean isSatisfied(TspAnalysisInfo analysisInfo)
Constraint
isSatisfied
in interface Constraint<TspAnalysisInfo>
analysisInfo
- the analysis contextLODAnalysisInfo
public int[] getUserDataCategories()
TspConstraint
getUserDataCategories
in interface TspConstraint
public void reset()
TspConstraint
reset
in interface TspConstraint
public void setNetworkAnalyst(NetworkAnalyst analyst)
TspConstraint
setNetworkAnalyst
in interface TspConstraint
public int getOperator()
public TspConstraint[] getConstraints()