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 |
portHandlerCREATE_INSTANCE_METHOD_NAME| Constructor and Description |
|---|
FairnessRateMeter(int noOfIds,
Duration timeBase,
int ldMinBlockSize,
int ldMaxBlockSize,
java.lang.String traceFileName,
SimNode ownNode) |
FairnessRateMeter(int noOfIds,
Duration timeBase,
int ldMinBlockSize,
int ldMaxBlockSize,
java.lang.String traceFileName,
SimNode ownNode,
int startId) |
FairnessRateMeter(int noOfIds,
Duration 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, attachInputprotected final int startId
protected final int modulo
protected final RateFairnessStatistic rateStatistic
public FairnessRateMeter(int noOfIds,
Duration timeBase,
int ldMinBlockSize,
int ldMaxBlockSize,
java.lang.String traceFileName,
SimNode ownNode,
int startId,
int modulo)
public FairnessRateMeter(int noOfIds,
Duration timeBase,
int ldMinBlockSize,
int ldMaxBlockSize,
java.lang.String traceFileName,
SimNode ownNode,
int startId)
public static FairnessRateMeter createInstance(SimNode ownNode, Parameters pars, java.lang.Integer noOfIds)
ReflectionConstructableprotected boolean useMessage(Message msg)
protected void evaluateMessage(Message msg, Port port)
evaluateMessage in class OnePointMeter