scg.ac.ni.pmf.newgraph.invariants
Class VertexDoubleValues

java.lang.Object
  extended by scg.ac.ni.pmf.newgraph.invariants.VertexDoubleValues

public class VertexDoubleValues
extends java.lang.Object

Stores the double values assigned to vertices.

Author:
Vladimir Brankov
See Also:
InvariantDoubleVertex

Method Summary
 void assignValue(VertexData v, double d)
          Stores the double value assigned to the vertex.
 java.lang.Double getValue(VertexData v)
          Retrieves the value assigned to the vertex.
 java.util.Map getValues()
          Retrieves the values, ordered by the vertex ids.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

assignValue

public void assignValue(VertexData v,
                        double d)
Stores the double value assigned to the vertex.

Parameters:
v - The vertex.
d - The double value.

getValue

public java.lang.Double getValue(VertexData v)
Retrieves the value assigned to the vertex. Returns null if no value is assigned.

Parameters:
v - The vertex.
Returns:
The value.

getValues

public java.util.Map getValues()
Retrieves the values, ordered by the vertex ids.

Returns:
The values.


Copyright © 2004 Dragan Stevanovic, Vladimir Brankov.