edu.uci.ics.jung.utils
Class HashSettableVertexMapper

java.lang.Object
  extended by edu.uci.ics.jung.utils.HashSettableVertexMapper
All Implemented Interfaces:
SettableVertexMapper, VertexMapper

public class HashSettableVertexMapper
extends Object
implements SettableVertexMapper

Uses a HashMap to store mappings between vertices. Places no constraints on mappings (mappings need not be 1-1, onto, etc.).

Author:
Joshua O'Madadhain

Field Summary
protected  Map m
           
 
Constructor Summary
HashSettableVertexMapper()
           
 
Method Summary
 ArchetypeVertex getMappedVertex(ArchetypeVertex v)
           
 void map(ArchetypeVertex v1, ArchetypeVertex v2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m

protected Map m
Constructor Detail

HashSettableVertexMapper

public HashSettableVertexMapper()
Method Detail

map

public void map(ArchetypeVertex v1,
                ArchetypeVertex v2)
Specified by:
map in interface SettableVertexMapper
See Also:
SettableVertexMapper.map(edu.uci.ics.jung.graph.ArchetypeVertex, edu.uci.ics.jung.graph.ArchetypeVertex)

getMappedVertex

public ArchetypeVertex getMappedVertex(ArchetypeVertex v)
Specified by:
getMappedVertex in interface VertexMapper
See Also:
VertexMapper.getMappedVertex(edu.uci.ics.jung.graph.ArchetypeVertex)