JOpt.SDK
Interface ITimeWindowNode
- All Superinterfaces:
- IDistanceMatrixEntry, IGeoNode, INode, IViolation
- All Known Subinterfaces:
- IEventNode, IScheduledNode
- All Known Implementing Classes:
- TimeWindowGeoNode
- public interface ITimeWindowNode
- extends IGeoNode
| Methods inherited from interface JOpt.SDK.INode |
getImportance, getLoad, getNodeId, getPreferableResource, getPreferredResourcePriority, getPreferredResources, getPriority, getRelationships, getType, getVisitationFrequency, isBreakAttached, isUnassigned, setImportance, setLoad, setNodeId, setPreferableResource, setPreferredResourcePriority, setPreferredResources, setPriority, setRelationships, setType, setUnassigned, setVisitationFrequency |
setOpeningHours
public void setOpeningHours(IOpeningHours[] opening)
- Parameters:
opening - define the opening hours of that node ( e.g. node cannot be visited outside the opening hours).
getOpeningHours
public IOpeningHours getOpeningHours(int i)
- Returns:
- the opening hours
setVisitDuration
public void setVisitDuration(int durationInSeconds)
- Parameters:
durationInSeconds - define the estimated time a resource will stay at that node
setJointVisitDuration
public void setJointVisitDuration(int durationInSeconds)
- Parameters:
durationInSeconds - define the estimated time a resource will stay at that node if it has already arrived at a node with the same geo position earlier
(e.g. pick up mutliple persons at one place where each person is represented by one single node)
getVisitDuration
public int getVisitDuration()
- Returns:
- the estimated time a resource will stay at that node in seconds
getJointVisitDuration
public int getJointVisitDuration()
- Returns:
- the estimated joint visit time a resource will stay at that node in seconds
copy
public ITimeWindowNode copy()
- Returns:
- a new instance of ITimeWindowNode
getServicingHours
public IServicingHours[] getServicingHours()
- Returns:
- a list of subsequent service hours in case this node requires a mutliple day visit
setWaitOnEarlyArrival
public void setWaitOnEarlyArrival(boolean waitOnEarlyArrival)
- Parameters:
waitOnEarlyArrival - true (default) if the resource will have wait until the node's opening hours begin before the node is served
false if the node can be served without waiting for the opening hours begin
getStrictViolations
public IViolation[] getStrictViolations()
- Returns:
- actual list of constraint violations that caused the node to be sorted out in strict mode