public class TspTimeWindowConstraint extends java.lang.Object implements TspConstraint
| Constructor and Description |
|---|
TspTimeWindowConstraint(TimeWindow[] timeWindows, int timeCostIndex) |
| Modifier and Type | Method and Description |
|---|---|
int |
getTimeCostIndex() |
TimeWindow[] |
getTimeWindows() |
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.
|
void |
setTimeCostIndex(int timeCostIndex) |
void |
setTimeWindows(TimeWindow[] timeWindows) |
java.lang.String |
toString() |
public TspTimeWindowConstraint(TimeWindow[] timeWindows, int timeCostIndex)
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 contextLODAnalysisInfopublic void setTimeWindows(TimeWindow[] timeWindows)
public TimeWindow[] getTimeWindows()
public void setTimeCostIndex(int timeCostIndex)
public int getTimeCostIndex()
public java.lang.String toString()
toString in class java.lang.Object