edu.uci.ics.jung.graph.decorators
Class MapNumberVertexValue

java.lang.Object
  extended by edu.uci.ics.jung.graph.decorators.MapNumberVertexValue
All Implemented Interfaces:
NumberVertexValue

public class MapNumberVertexValue
extends Object
implements NumberVertexValue

A simple implementation of NumberVertexValue backed by a Map.

Author:
Joshua O'Madadhain

Field Summary
protected  Map map
           
 
Constructor Summary
MapNumberVertexValue()
           
 
Method Summary
 Number getNumber(ArchetypeVertex v)
           
 void setNumber(ArchetypeVertex v, Number n)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

map

protected Map map
Constructor Detail

MapNumberVertexValue

public MapNumberVertexValue()
Method Detail

getNumber

public Number getNumber(ArchetypeVertex v)
Specified by:
getNumber in interface NumberVertexValue
Parameters:
v - the vertex to examine
Returns:
the Number associated with this vertex

setNumber

public void setNumber(ArchetypeVertex v,
                      Number n)
Specified by:
setNumber in interface NumberVertexValue
Parameters:
v - the vertex whose value we're setting
n - the Number to which we're setting the vertex's value