drasys.or.graph.tw
Class TimeWindowPropertiesAdapter

java.lang.Object
  |
  +--drasys.or.graph.PropertiesAdapter
        |
        +--drasys.or.graph.tw.TimeWindowPropertiesAdapter

public class TimeWindowPropertiesAdapter
extends PropertiesAdapter
implements TimeWindowPropertiesI

A convenience object that provides default vertex properties.


Constructor Summary
TimeWindowPropertiesAdapter()
           
 
Method Summary
 double[] getServiceTime(VertexI vertex)
          Returns the time needed to service the vertex.
 double[] getTimeWindowEnd(VertexI vertex)
          Returns the end of the service windows for the vertex.
 double[] getTimeWindowStart(VertexI vertex)
          Returns the start of the service windows for the vertex.
 
Methods inherited from class drasys.or.graph.PropertiesAdapter
getConnectionCost, getConnectionTime, getEdgeCost, getEdgeDistance, getEdgeTime, getVertexCost, getVertexDemand, getVertexTime, isConnectionRestricted, isEdgeRestricted, isSymmetric, isVertexRestricted
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeWindowPropertiesAdapter

public TimeWindowPropertiesAdapter()
Method Detail

getServiceTime

public double[] getServiceTime(VertexI vertex)
Returns the time needed to service the vertex. If the value object is a 'TimeWindowValueI' the return value is 'value.getServiceTime()'. Otherwise; the return value is 'null'.
Specified by:
getServiceTime in interface TimeWindowPropertiesI

getTimeWindowStart

public double[] getTimeWindowStart(VertexI vertex)
Returns the start of the service windows for the vertex. If the value object is a 'TimeWindowValueI' the return value is 'value.getTimeWindowStart()'. Otherwise; the return value is 'null'.
Specified by:
getTimeWindowStart in interface TimeWindowPropertiesI

getTimeWindowEnd

public double[] getTimeWindowEnd(VertexI vertex)
Returns the end of the service windows for the vertex. If the value object is a 'TimeWindowValueI' the return value is 'value.getTimeWindowEnd()'. Otherwise; the return value is 'null'.
Specified by:
getTimeWindowEnd in interface TimeWindowPropertiesI


Copyright(C)1997-2000 by DRA Systems all rights reserved. OpsResearch.com