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()
TspConstraint
getUserDataCategories
in interface TspConstraint
public void reset()
TspConstraint
reset
in interface TspConstraint
public void setNetworkAnalyst(NetworkAnalyst analyst)
TspConstraint
setNetworkAnalyst
in interface TspConstraint
public boolean isSatisfied(TspAnalysisInfo context)
Constraint
isSatisfied
in interface Constraint<TspAnalysisInfo>
context
- the analysis contextLODAnalysisInfo
public 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