public abstract class ShortTermRateMeter extends OnePointMeter
DistributionRateMeter
and BoundaryRateMeter
extend
this class to collect the throughput measurements in a
DistributionStatistic
or in a BoundaryStatistic
,
respectively.
DistributionRateMeter
,
BoundaryRateMeter
Modifier and Type | Field and Description |
---|---|
protected int |
aggregatedValues |
protected java.util.Map<Port,java.lang.Integer> |
mapOfAggregatedValues |
protected boolean |
measurePortsIndividually |
protected double |
shortTermPeriod |
protected double |
startOfLastInterval |
Constructor and Description |
---|
ShortTermRateMeter(double shortTermPeriod,
boolean measurePortsIndividually,
java.lang.String name,
SimNode parentNode) |
Modifier and Type | Method and Description |
---|---|
void |
attachInput(Entity entity,
java.lang.String localPortName) |
protected void |
evaluateMessage(Message msg,
Port port) |
protected void |
updateStatistic(double value) |
protected abstract void |
updateStatistic(double value,
double weight) |
attachInput, monitorGetMessage, monitorIsMessageAvailable, monitorMessageIndication
protected int aggregatedValues
protected final java.util.Map<Port,java.lang.Integer> mapOfAggregatedValues
protected double startOfLastInterval
protected final double shortTermPeriod
protected final boolean measurePortsIndividually
public ShortTermRateMeter(double shortTermPeriod, boolean measurePortsIndividually, java.lang.String name, SimNode parentNode)
protected void evaluateMessage(Message msg, Port port)
evaluateMessage
in class OnePointMeter
protected abstract void updateStatistic(double value, double weight)
protected final void updateStatistic(double value)
public void attachInput(Entity entity, java.lang.String localPortName)
attachInput
in class OnePointMeter