JOpt.SDK
Interface ITimeWindowNode

All Superinterfaces:
IDistanceMatrixEntry, IGeoNode, INode, IViolation
All Known Subinterfaces:
IScheduledNode
All Known Implementing Classes:
TimeWindowGeoNode

public interface ITimeWindowNode
extends IGeoNode

ITimeWindowGeoNode provides an interface to define a node that has one or more opening hours. Visits to this node are accepted only within predefined opening hours.


Method Summary
 ITimeWindowNode copy()
           
 IOpeningHours[] getOpeningHours()
           
 IOpeningHours getOpeningHours(int i)
           
 java.lang.String getPreferableResource()
           
 IRelationship[] getRelationships()
           
 java.util.GregorianCalendar getTimeWindowBegin()
          deprecated
 java.util.GregorianCalendar getTimeWindowEnd()
          deprecated
 int getVisitDuration()
           
 void setOpeningHours(IOpeningHours[] openingHours)
           
 void setPreferableResource(java.lang.String resourceId)
           
 void setRelationships(IRelationship[] relationships)
           
 void setTimeWindowBegin(java.util.GregorianCalendar begin)
          deprecated
 void setTimeWindowEnd(java.util.GregorianCalendar end)
          deprecated
 void setVisitDuration(int durationInSeconds)
           
 
Methods inherited from interface JOpt.SDK.IGeoNode
getLatitude, getLongitude, setLatitude, setLongitude
 
Methods inherited from interface JOpt.SDK.INode
getLoad, getNodeId, getPriority, getType, setLoad, setNodeId, setPriority, setType
 
Methods inherited from interface JOpt.SDK.IDistanceMatrixEntry
getDistMatrixId, setDistMatrixId
 

Method Detail

setOpeningHours

public void setOpeningHours(IOpeningHours[] openingHours)
Parameters:
openingHours - defines the opening hours of that node. A node shall not be visited outside the opening hours.
See Also:
IOpeningHours

getOpeningHours

public IOpeningHours[] getOpeningHours()
Returns:
the opening hours of that node
See Also:
IOpeningHours

getOpeningHours

public IOpeningHours getOpeningHours(int i)
Returns:
the opening hours with index i of that node
See Also:
IOpeningHours

setRelationships

public void setRelationships(IRelationship[] relationships)
Parameters:
relationships - defines relationships between this node and other nodes (e.g. a fixed sequence for pickup and delivery stops)
See Also:
IRelationship

getRelationships

public IRelationship[] getRelationships()
Returns:
relationships to other nodes
See Also:
IRelationship

setPreferableResource

public void setPreferableResource(java.lang.String resourceId)
Parameters:
resourceId - set a preferable resource to visit this node

getPreferableResource

public java.lang.String getPreferableResource()
Returns:
the preferable reource for that node or null if the resource is not set

setVisitDuration

public void setVisitDuration(int durationInSeconds)
Parameters:
durationInSeconds - define the estimated time in seconds a resource will stay at that node

getVisitDuration

public int getVisitDuration()
Returns:
the estimated time in seconds a resource will stay at that node

copy

public ITimeWindowNode copy()
Returns:
a new instance of an underlying object that implements the ITimeWindowNode interface

setTimeWindowBegin

public void setTimeWindowBegin(java.util.GregorianCalendar begin)
deprecated


getTimeWindowBegin

public java.util.GregorianCalendar getTimeWindowBegin()
deprecated


setTimeWindowEnd

public void setTimeWindowEnd(java.util.GregorianCalendar end)
deprecated


getTimeWindowEnd

public java.util.GregorianCalendar getTimeWindowEnd()
deprecated