public class FairnessRateMeter extends OnePointMeter implements ReflectionConstructable3<SimNode,Parameters,java.lang.Integer>
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 |
CREATE_INSTANCE_METHOD_NAME
Constructor and Description |
---|
FairnessRateMeter(int noOfIds,
double timeBase,
int ldMinBlockSize,
int ldMaxBlockSize,
java.lang.String traceFileName,
SimNode ownNode) |
FairnessRateMeter(int noOfIds,
double timeBase,
int ldMinBlockSize,
int ldMaxBlockSize,
java.lang.String traceFileName,
SimNode ownNode,
int startId) |
FairnessRateMeter(int noOfIds,
double timeBase,
int ldMinBlockSize,
int ldMaxBlockSize,
java.lang.String traceFileName,
SimNode ownNode,
int startId,
int modulo) |
Modifier and Type | Method and Description |
---|---|
static FairnessRateMeter |
createInstance(SimNode ownNode,
Parameters pars,
java.lang.Integer noOfIds)
as required by
ReflectionConstructable |
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, SimNode ownNode, int startId, int modulo)
public FairnessRateMeter(int noOfIds, double timeBase, int ldMinBlockSize, int ldMaxBlockSize, java.lang.String traceFileName, SimNode ownNode, int startId)
public FairnessRateMeter(int noOfIds, double timeBase, int ldMinBlockSize, int ldMaxBlockSize, java.lang.String traceFileName, SimNode ownNode)
public static FairnessRateMeter createInstance(SimNode ownNode, Parameters pars, java.lang.Integer noOfIds)
ReflectionConstructable
protected boolean useMessage(Message msg)
protected void evaluateMessage(Message msg, Port port)
evaluateMessage
in class OnePointMeter