DatarateChannel
Package: ned
DatarateChannel
channel(no description)
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| disabled | bool | false | |
| delay | double | 0s |
propagation delay |
| datarate | double | 0bps |
bits per second; 0=infinite |
| ber | double | 0 |
bit error rate (BER) |
| per | double | 0 |
packet error rate (PER) |
Properties
| Name | Value | Description |
|---|---|---|
| class | cDatarateChannel |
Signals
| Name | Type | Unit | Description |
|---|---|---|---|
| channelBusy | long | ||
| messageSent | omnetpp::cMessage | ||
| messageDiscarded | omnetpp::cMessage |
Statistics
| Name | Title | Source | Record | Unit | Interpolation Mode | Description |
|---|---|---|---|---|---|---|
| busy | channel busy state | channelBusy | vector? | sample-hold | ||
| averageUtilization | average channel utilization | timeavg(channelBusy) | last? | |||
| packets | packets sent | constant1(messageSent) | count? | none | ||
| packetBytes | packet bytes sent | packetBytes(messageSent) | sum? | B | none | |
| packetsDiscarded | packets discarded | constant1(messageDiscarded) | count? | none | ||
| averageThroughput | average throughput | sumPerDuration(packetBits(messageSent)) | last? | bps |
Source code
channel DatarateChannel { @class(cDatarateChannel); @signal[channelBusy](type=long); @signal[messageSent](type=omnetpp::cMessage); @signal[messageDiscarded](type=omnetpp::cMessage); @statistic[busy](title="channel busy state"; source=channelBusy; record=vector?; interpolationmode=sample-hold); @statistic[averageUtilization](title="average channel utilization"; source=timeavg(channelBusy); record=last?); @statistic[packets](title="packets sent"; source=constant1(messageSent); record=count?; interpolationmode=none); @statistic[packetBytes](title="packet bytes sent"; source=packetBytes(messageSent); record=sum?; unit=B; interpolationmode=none); @statistic[packetsDiscarded](title="packets discarded"; source=constant1(messageDiscarded); record=count?; interpolationmode=none); @statistic[averageThroughput](title="average throughput"; source=sumPerDuration(packetBits(messageSent)); record=last?; unit=bps); bool disabled @mutable = default(false); double delay @mutable @unit(s) = default(0s); // propagation delay double datarate @mutable @unit(bps) = default(0bps); // bits per second; 0=infinite double ber @mutable = default(0); // bit error rate (BER) double per @mutable = default(0); // packet error rate (PER) }File: Built-in type