net.sourceforge.combean.graph.containers.doubleval
Class ScalingDoubleNodeMapDecorator
java.lang.Object
net.sourceforge.combean.graph.containers.doubleval.ScalingDoubleNodeMapDecorator
- All Implemented Interfaces:
- FixedDoubleNodeMap
public class ScalingDoubleNodeMapDecorator
- extends Object
- implements FixedDoubleNodeMap
Decorator for a double node map. Scales the values before returning them.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScalingDoubleNodeMapDecorator
public ScalingDoubleNodeMapDecorator(FixedDoubleNodeMap wrappedNodeMap,
double scalingFactor)
- Constructor
- Parameters:
wrappedNodeMap - the double node map to scalescalingFactor - the scaling factor
getDouble
public double getDouble(Node v)
- Description copied from interface:
FixedDoubleNodeMap
- Get the value of a node
- Specified by:
getDouble in interface FixedDoubleNodeMap
- Parameters:
v - the node for which the value shall be retrieved
- Returns:
- the value of the node (null if no value has been set)