drasys.or.graph
Class VertexValue

java.lang.Object
  |
  +--drasys.or.graph.VertexValue
Direct Known Subclasses:
TimeWindowValue

public class VertexValue
extends java.lang.Object
implements VertexValueI, java.io.Serializable

A object which can hold generic vertex values.

See Also:
Serialized Form

Constructor Summary
VertexValue()
           
VertexValue(double cost, double time, double[] demand)
          Constructs a new vertex value object with explicit values.
 
Method Summary
 double getCost()
          Returns the cost of crossing the vertex.
 double[] getDemand()
          Returns the vertex demand.
 double getTime()
          Returns the time required to cross the vertex.
 void set(double cost, double time, double[] demand)
          Sets the values for the vertex.
 void setCost(double cost)
          Sets the cost of crossing the vertex.
 void setDemand(double[] demand)
          Sets the time to cross the vertex.
 void setTime(double time)
          Sets the time to cross the vertex.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VertexValue

public VertexValue()

VertexValue

public VertexValue(double cost,
                   double time,
                   double[] demand)
Constructs a new vertex value object with explicit values.
Method Detail

getCost

public double getCost()
Returns the cost of crossing the vertex.
Specified by:
getCost in interface VertexValueI

getTime

public double getTime()
Returns the time required to cross the vertex.
Specified by:
getTime in interface VertexValueI

getDemand

public double[] getDemand()
Returns the vertex demand.
Specified by:
getDemand in interface VertexValueI

set

public void set(double cost,
                double time,
                double[] demand)
Sets the values for the vertex.

setCost

public void setCost(double cost)
Sets the cost of crossing the vertex.

setTime

public void setTime(double time)
Sets the time to cross the vertex.

setDemand

public void setDemand(double[] demand)
Sets the time to cross the vertex.


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