public class FairnessRateMeter extends OnePointMeter
FairnessRateMeter
the rates of different connections on one
or more ports can be measured. A connection is identified by the destination
id of their packets (of type IPPacket
). The fairness is
evaluated using a fairness statistic.Modifier and Type | Field and Description |
---|---|
protected int |
modulo |
protected RateFairnessStatistic |
rateStatistic |
protected int |
startId |
Constructor and Description |
---|
FairnessRateMeter(int noOfIds,
double timeBase,
int ldMinBlockSize,
int ldMaxBlockSize,
java.lang.String traceFileName,
java.lang.String name,
SimNode parentNode) |
FairnessRateMeter(int noOfIds,
double timeBase,
int ldMinBlockSize,
int ldMaxBlockSize,
java.lang.String traceFileName,
java.lang.String name,
SimNode parentNode,
int startId) |
FairnessRateMeter(int noOfIds,
double timeBase,
int ldMinBlockSize,
int ldMaxBlockSize,
java.lang.String traceFileName,
java.lang.String name,
SimNode parentNode,
int startId,
int modulo) |
Modifier and Type | Method and Description |
---|---|
protected void |
evaluateMessage(Message msg,
Port port) |
protected boolean |
useMessage(Message msg) |
attachInput, attachInput, monitorGetMessage, monitorIsMessageAvailable, monitorMessageIndication
protected final int startId
protected final int modulo
protected final RateFairnessStatistic rateStatistic
public FairnessRateMeter(int noOfIds, double timeBase, int ldMinBlockSize, int ldMaxBlockSize, java.lang.String traceFileName, java.lang.String name, SimNode parentNode, int startId, int modulo)
public FairnessRateMeter(int noOfIds, double timeBase, int ldMinBlockSize, int ldMaxBlockSize, java.lang.String traceFileName, java.lang.String name, SimNode parentNode, int startId)
public FairnessRateMeter(int noOfIds, double timeBase, int ldMinBlockSize, int ldMaxBlockSize, java.lang.String traceFileName, java.lang.String name, SimNode parentNode)
protected boolean useMessage(Message msg)
protected void evaluateMessage(Message msg, Port port)
evaluateMessage
in class OnePointMeter