|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.combean.graph.containers.doubleval.EdgeMapAsDoubleEdgeMap
public class EdgeMapAsDoubleEdgeMap
Use a 'normal' EdgeMap as DoubleEdgeMap
Constructor Summary | |
---|---|
EdgeMapAsDoubleEdgeMap()
Default constructor. |
|
EdgeMapAsDoubleEdgeMap(EdgeMap<Double> edgeMap)
Constructor. |
Method Summary | |
---|---|
double |
getDouble(Edge e)
Return the value for a given edge. |
void |
init(Graph g)
Has to be invoked before the data structure can be used. |
void |
init(Graph g,
double initVal)
Has to be invoked before the data structure can be used. |
double |
putDouble(Edge e,
double newVal)
Set a double value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EdgeMapAsDoubleEdgeMap()
public EdgeMapAsDoubleEdgeMap(EdgeMap<Double> edgeMap)
edgeMap
- the EdgeMap to be wrapped.Method Detail |
---|
public double putDouble(Edge e, double newVal)
DoubleEdgeMap
putDouble
in interface DoubleEdgeMap
e
- the edge for which the value shall be set.newVal
- the value to set.
public void init(Graph g)
Initializable
init
in interface Initializable
g
- the graph for which the data structure shall be defined.public void init(Graph g, double initVal)
InitializableWithDoubleDefaultValue
init
in interface InitializableWithDoubleDefaultValue
g
- the graph for which the data structure shall be defined.initVal
- the default value with which the data structure
shall be initializedpublic double getDouble(Edge e)
FixedDoubleEdgeMap
getDouble
in interface FixedDoubleEdgeMap
e
- the edge for which the value shall be returned.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |