Skip to content

Commit e5e863f

Browse files
committed
queueing: Added packetLifeTime @statistics everywhere meanBitLifeTimePerPacket is present.
This helps the user because the other statistic is difficult to understand (name and description) and often they are the same.
1 parent ed6f74e commit e5e863f

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

src/inet/queueing/base/ActivePacketSinkBase.ned

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ simple ActivePacketSinkBase extends PacketSinkBase
2727
@statistic[bitLifeTime](title="bit life time"; source=weightTimes(lengthWeightedValuePerRegion(lifeTimePerRegion(packetPulled))); record=histogram?; unit=s; interpolationmode=none);
2828
// the statistical value is the time difference of the current simulation time and the creation time of any bit in the region
2929
@statistic[meanBitLifeTimePerPacket](title="mean bit life time per packet"; source=weightedMeanPerGroup(groupRegionsPerPacket(lifeTimePerRegion(packetPulled))); record=vector,histogram; unit=s; interpolationmode=none);
30+
// the statistical value is the time difference of the current simulation time and the creation time of the whole packet data, nan if not all bits have the same value
31+
@statistic[packetLifeTime](title="packet life time"; source=packetLifeTime(packetPulled); record=vector,histogram; unit=s; interpolationmode=none);
3032
// the statistical value is the difference of subsequent values of the mean bit elapsed time per packet
3133
@statistic[packetJitter](title="packet jitter"; source=jitter(weightedMeanPerGroup(groupRegionsPerPacket(lifeTimePerRegion(packetPulled)))); record=vector,histogram; unit=s; interpolationmode=none);
3234
// the statistical value is the difference of the current and the mean bit elapsed time per packet

src/inet/queueing/base/PassivePacketSinkBase.ned

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ simple PassivePacketSinkBase extends PacketSinkBase
3737
@statistic[bitLifeTime](title="bit life time"; source=weightTimes(lengthWeightedValuePerRegion(lifeTimePerRegion(packetPushed))); record=histogram?; unit=s; interpolationmode=none);
3838
// the statistical value is the time difference of the current simulation time and the creation time of any bit in the region
3939
@statistic[meanBitLifeTimePerPacket](title="mean bit life time per packet"; source=weightedMeanPerGroup(groupRegionsPerPacket(lifeTimePerRegion(packetPushed))); record=vector,histogram; unit=s; interpolationmode=none);
40+
// the statistical value is the time difference of the current simulation time and the creation time of the whole packet data, nan if not all bits have the same value
41+
@statistic[packetLifeTime](title="packet life time"; source=packetLifeTime(packetPushed); record=vector,histogram; unit=s; interpolationmode=none);
4042
// the statistical value is the difference of subsequent values of the mean bit elapsed time per packet
4143
@statistic[packetJitter](title="packet jitter"; source=jitter(weightedMeanPerGroup(groupRegionsPerPacket(lifeTimePerRegion(packetPushed)))); record=vector,histogram; unit=s; interpolationmode=none);
4244
// the statistical value is the difference of the current and the mean bit elapsed time per packet

src/inet/queueing/flow/FlowMeasurementRecorder.ned

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ simple FlowMeasurementRecorder extends PacketFlowBase like IPacketFlow
8686
@statistic[meanTotalBitTransmissionTimePerPacket](title="mean total bit transmission time per packet"; source=weightedMeanPerGroup(groupRegionsPerPacket(transmissionTimePerRegion(demuxFlow(packetFlowMeasured)))); record=vector,histogram; unit=s; interpolationmode=none);
8787
// the statistical value is the sum of the transmission duration of the complete packets for all transmitters where the particular bit of the region was transmitted
8888
@statistic[meanTotalPacketTransmissionTime](title="mean total packet transmission time"; source=weightedMeanPerGroup(groupRegionsPerPacket(packetTransmissionTimePerRegion(demuxFlow(packetFlowMeasured)))); record=vector,histogram; unit=s; interpolationmode=none);
89+
// the statistical value is the time difference of the current simulation time and the creation time of the whole packet data, nan if not all bits have the same value
90+
@statistic[packetLifeTime](title="packet life time"; source=packetLifeTime(demuxFlow(packetFlowMeasured)); record=vector,histogram; unit=s; interpolationmode=none);
8991
// the statistical value is the difference of subsequent values of the mean bit elapsed time per packet
9092
@statistic[packetJitter](title="packet jitter"; source=jitter(weightedMeanPerGroup(groupRegionsPerPacket(elapsedTimePerRegion(demuxFlow(packetFlowMeasured))))); record=vector,histogram; unit=s; interpolationmode=none);
9193
// the statistical value is the difference of the current and the mean bit elapsed time per packet

0 commit comments

Comments
 (0)