net.sourceforge.combean.interfaces.graph.containers
Interface EdgeMap<Val>

Package class diagram package EdgeMap
All Superinterfaces:
FixedEdgeMap<Val>, Initializable, InitializableWithDefaultValue<Val>
All Known Implementing Classes:
MapAsEdgeMap

public interface EdgeMap<Val>
extends FixedEdgeMap<Val>, InitializableWithDefaultValue<Val>

A mapping of edges to values.


Method Summary
 void init(Graph g)
          Has to be invoked before the data structure can be used.
 Val put(Edge e, Val newVal)
          Set the value of an edge
 
Methods inherited from interface net.sourceforge.combean.interfaces.graph.containers.FixedEdgeMap
get
 
Methods inherited from interface net.sourceforge.combean.interfaces.graph.containers.InitializableWithDefaultValue
init
 

Method Detail

init

void init(Graph g)
Has to be invoked before the data structure can be used. The data structure may only be used with nodes belonging to the given graph. After init() all edges map to null.

Specified by:
init in interface Initializable
Parameters:
g - the graph for which the EdgeMap shall be defined.

put

Val put(Edge e,
        Val newVal)
Set the value of an edge

Parameters:
e - the edge for which the value shall be set
newVal - the new value of the edge
Returns:
the old value of the edge (null if no value has been set)