org.lucci.madhoc.simulation.measure
Class DistributionSensor

java.lang.Object
  extended by org.lucci.madhoc.simulation.measure.Sensor
      extended by org.lucci.madhoc.simulation.measure.DistributionSensor
Direct Known Subclasses:
ConnectionBandwithDistributionMeasure, DegreeDistributionMeasure, LoadDistributionMeasure, PartitionDistributionMeasure

public abstract class DistributionSensor
extends Sensor

Author:
luc.hogie

Constructor Summary
DistributionSensor()
           
 
Method Summary
abstract  double getTargetedValue(java.lang.Object object)
          Iterating on the set given by getTargetSet() each element is asked for providing a specific value.
abstract  java.util.Collection getTargetSet(Projection projection)
          The set to iterate for harversting values.
abstract  java.lang.String getTargetSetName()
          Return the name of the set to iterate on.
 java.lang.Class getValueClass()
           
abstract  Unit getYUnit()
          Return the unit of the distribution.
 java.lang.Object takeNewValue(Projection projection)
           
 
Methods inherited from class org.lucci.madhoc.simulation.measure.Sensor
createMeasureHistory, equals, getMonitor, getName, hashCode, isValueValid, setMonitor
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DistributionSensor

public DistributionSensor()
Method Detail

getTargetedValue

public abstract double getTargetedValue(java.lang.Object object)
Iterating on the set given by getTargetSet() each element is asked for providing a specific value. This value is used for building the distribution of this value.

Parameters:
object -
Returns:

getTargetSet

public abstract java.util.Collection getTargetSet(Projection projection)
The set to iterate for harversting values. It is typically the set of stations in the network, or the set of station applications of a certain sort.

Returns:

getTargetSetName

public abstract java.lang.String getTargetSetName()
Return the name of the set to iterate on. This is used only for presentation purposes.

Returns:

getYUnit

public abstract Unit getYUnit()
Return the unit of the distribution. This is used for presentation purposes only.

Returns:

getValueClass

public java.lang.Class getValueClass()
Specified by:
getValueClass in class Sensor

takeNewValue

public java.lang.Object takeNewValue(Projection projection)
Specified by:
takeNewValue in class Sensor