|
|||||||||
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.NodeMapAsDoubleNodeMap
public class NodeMapAsDoubleNodeMap
Use a 'normal' NodeMap as DoubleNodeMap
Constructor Summary | |
---|---|
NodeMapAsDoubleNodeMap()
Default constructor. |
|
NodeMapAsDoubleNodeMap(NodeMap<Double> nodeMap)
Constructor. |
Method Summary | |
---|---|
void |
clear()
remove all elements from the data structure. |
double |
getDouble(Node v)
Get the value of a node |
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(Node v,
double newVal)
Set the value of a node |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NodeMapAsDoubleNodeMap()
public NodeMapAsDoubleNodeMap(NodeMap<Double> nodeMap)
nodeMap
- the NodeMap to be wrapped.Method Detail |
---|
public double putDouble(Node v, double newVal)
DoubleNodeMap
putDouble
in interface DoubleNodeMap
v
- the node for which the value shall be setnewVal
- the new value of the node
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(Node v)
FixedDoubleNodeMap
getDouble
in interface FixedDoubleNodeMap
v
- the node for which the value shall be retrieved
public void clear()
Clearable
clear
in interface Clearable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |