Package oracle.spatial.network.lod
Class TspTimeWindowConstraint
- java.lang.Object
-
- oracle.spatial.network.lod.TspTimeWindowConstraint
-
- All Implemented Interfaces:
Constraint<TspAnalysisInfo>
,TspConstraint
public class TspTimeWindowConstraint extends java.lang.Object implements TspConstraint
- Since:
- release specific (what release of product did this appear in)
-
-
Constructor Summary
Constructors Constructor Description TspTimeWindowConstraint(TimeWindow[] timeWindows, int timeCostIndex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Constructor Detail
-
TspTimeWindowConstraint
public TspTimeWindowConstraint(TimeWindow[] timeWindows, int timeCostIndex)
-
-
Method Detail
-
getUserDataCategories
public int[] getUserDataCategories()
Description copied from interface:TspConstraint
Returns the required user data categories.- Specified by:
getUserDataCategories
in interfaceTspConstraint
- Returns:
-
reset
public void reset()
Description copied from interface:TspConstraint
This method allows a stateful network constraint object to be reset to its original state and reused by network analysis functions.- Specified by:
reset
in interfaceTspConstraint
-
setNetworkAnalyst
public void setNetworkAnalyst(NetworkAnalyst analyst)
Description copied from interface:TspConstraint
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. If network analyst is not needed by the constraint, the link level selector can choose to do nothing with this method.- Specified by:
setNetworkAnalyst
in interfaceTspConstraint
-
isSatisfied
public boolean isSatisfied(TspAnalysisInfo context)
Description copied from interface:Constraint
Checks if the constraint is satisfied.- Specified by:
isSatisfied
in interfaceConstraint<TspAnalysisInfo>
- Parameters:
context
- the analysis context- See Also:
LODAnalysisInfo
-
setTimeWindows
public void setTimeWindows(TimeWindow[] timeWindows)
-
getTimeWindows
public TimeWindow[] getTimeWindows()
-
setTimeCostIndex
public void setTimeCostIndex(int timeCostIndex)
-
getTimeCostIndex
public int getTimeCostIndex()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-