PacketGate
Package: inet.queueing.gate
PacketGate
simple moduleAllows or forbids packets to pass through depending on whether the gate is open or closed.
Inheritance diagram
The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.
Used in
| Name | Type | Description |
|---|---|---|
| Gate1TutorialStep | network | (no description) |
| Gate2TutorialStep | network | (no description) |
Extends
| Name | Type | Description |
|---|---|---|
| PacketGateBase | simple module |
Base module for various packet gate modules. |
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| displayStringTextFormat | string | "passed %p pk (%l)" |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
| bitrate | double | nan bps | |
| extraLength | int | 0b | |
| extraDuration | double | 0s | |
| clockModule | string | "" |
Relative path of a module that implements IClock(1,2); optional |
| initiallyOpen | bool | false | |
| openTime | double | ||
| closeTime | double |
Properties
| Name | Value | Description |
|---|---|---|
| class | PacketGate | |
| display | i=block/cogwheel |
Gates
| Name | Direction | Size | Description |
|---|---|---|---|
| in | input | ||
| out | output |
Signals
| Name | Type | Unit | Description |
|---|---|---|---|
| gateStateChanged | bool |
Statistics
| Name | Title | Source | Record | Unit | Interpolation Mode | Description |
|---|---|---|---|---|---|---|
| gateState | gate state | gateStateChanged | vector | sample-hold |
Source code
// // Allows or forbids packets to pass through depending on whether // the gate is open or closed. // simple PacketGate extends PacketGateBase like IPacketGate { parameters: string clockModule = default(""); // Relative path of a module that implements IClock; optional bool initiallyOpen = default(false); double openTime @unit(s); double closeTime @unit(s); @class(PacketGate); }File: src/inet/queueing/gate/PacketGate.ned