Package: inet.protocolelement.transceiver
PacketReceiver
simple moduleReceives signals from the physical medium (wire) as a whole. It also sends up packets to the upper layer as a whole.
Inheritance diagram
The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.
Used in compound modules
| Name | Type | Description |
|---|---|---|
| ReceiverHost | compound module | (no description) |
| ServerHost2 | compound module | (no description) |
| ServerHost3 | compound module | (no description) |
| ServerHost4 | compound module | (no description) |
| ServerHost5 | compound module | (no description) |
| ServerHost6 | compound module | (no description) |
| ServerHost7 | compound module | (no description) |
Used in
| Name | Type | Description |
|---|---|---|
| InputQueueSwitching | network | (no description) |
| OutputQueueSwitching | network | (no description) |
Extends
| Name | Type | Description |
|---|---|---|
| StreamingReceiverBase | simple module | (no description) |
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| displayStringTextFormat | string | "processed %p pk (%l)" |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
| datarate | double |
Properties
| Name | Value | Description |
|---|---|---|
| class | PacketReceiver | |
| display | i=block/wrx |
Gates
| Name | Direction | Size | Description |
|---|---|---|---|
| in | input | ||
| out | output |
Signals
| Name | Type | Unit | Description |
|---|---|---|---|
| receptionEnded | inet::physicallayer::Signal | ||
| receptionStarted | inet::physicallayer::Signal |
Statistics
| Name | Title | Source | Record | Unit | Interpolation Mode | Description |
|---|---|---|---|---|---|---|
| propagationTime | propagation time | s |
TODO @statistic[utilization](title="utilization"; unit=%; source=100 * utilization(count(receptionStarted) - count(receptionEnded)); record=vector,histogram; interpolationmode=linear); |
|||
| throughput | throughput | throughput(receptionEnded) | vector, histogram | bps | linear |
TODO @statistic[receiving](title="transmitting"; type=int; source=count(receptionStarted) - count(receptionEnded); record=vector; interpolationmode=sample-hold); |
| receptionTime | reception time | packetDuration(receptionEnded) | vector, histogram | s | none | |
| flowReceptionTime | flow reception time | packetDuration(demuxFlow(receptionEnded)) | vector, histogram | s | none |
Source code
// // Receives signals from the physical medium (wire) as a whole. It // also sends up packets to the upper layer as a whole. // simple PacketReceiver extends StreamingReceiverBase like IPacketReceiver { parameters: @class(PacketReceiver); }File: src/inet/protocolelement/transceiver/PacketReceiver.ned