de.cesr.more.measures.node
Class MNodeMeasures

java.lang.Object
  extended by de.cesr.more.measures.node.MNodeMeasures

public class MNodeMeasures
extends Object

Extension for NetworkChangeNodes to store network measures.

Date:
24.05.2008

Field Summary
protected  HashMap<MoreNetwork<? extends MoreNodeMeasureSupport,?>,HashMap<MMeasureDescription,Number>> objectMeasures
           
protected  Double temp
           
 
Constructor Summary
MNodeMeasures()
          Instantiates an new HashMap
 
Method Summary
 Number getNetworkMeasureObject(MoreNetwork<? extends MoreNodeMeasureSupport,?> network, MMeasureDescription key)
          Returns the stored value belonging to the given measure key for the given network
 void setNetworkMeasureObject(MoreNetwork<? extends MoreNodeMeasureSupport,?> network, MMeasureDescription key, Number value)
          Stores the measure value of the given measure key for the give network in a map
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

objectMeasures

protected HashMap<MoreNetwork<? extends MoreNodeMeasureSupport,?>,HashMap<MMeasureDescription,Number>> objectMeasures

temp

protected Double temp
Constructor Detail

MNodeMeasures

public MNodeMeasures()
Instantiates an new HashMap

Method Detail

setNetworkMeasureObject

public void setNetworkMeasureObject(MoreNetwork<? extends MoreNodeMeasureSupport,?> network,
                                    MMeasureDescription key,
                                    Number value)
Stores the measure value of the given measure key for the give network in a map

Parameters:
network - The network that measure is calculated for
key - The Key of the measure
value - the value to set
Date:
10.07.2008

getNetworkMeasureObject

public Number getNetworkMeasureObject(MoreNetwork<? extends MoreNodeMeasureSupport,?> network,
                                      MMeasureDescription key)
Returns the stored value belonging to the given measure key for the given network

Parameters:
network - The network for which the returned measure value shall be calculated for
key - The key of the measure
Returns:
the value of that measure for the given network
Date:
10.07.2008