net.sourceforge.combean.graph.containers.doubleval
Class ScalingDoubleNodeMapDecorator

Package class diagram package ScalingDoubleNodeMapDecorator
java.lang.Object
  extended by 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.


Constructor Summary
ScalingDoubleNodeMapDecorator(FixedDoubleNodeMap wrappedNodeMap, double scalingFactor)
          Constructor
 
Method Summary
 double getDouble(Node v)
          Get 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

ScalingDoubleNodeMapDecorator

public ScalingDoubleNodeMapDecorator(FixedDoubleNodeMap wrappedNodeMap,
                                     double scalingFactor)
Constructor

Parameters:
wrappedNodeMap - the double node map to scale
scalingFactor - the scaling factor
Method Detail

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)