DirectionTag
classThis tag specifies the intended direction of the packet as one of inbound, outbound, or undefined. The direction should be set to:
- outbound when
- a new packet is generated (e.g. in an application or in a protocol like TCP)
- a packet is sent to the lower layer
- a packet is received from the upper layer
- inbound when
- a packet is forwarded (e.g. in a protocol like IP)
- a packet is received from the lower layer
- a packet is sent to the upper layer
Usage diagram
The following diagram shows usage relationships between types. Unresolved types are missing from the diagram.
Inheritance diagram
The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.
Extends
| Name | Type | Description |
|---|---|---|
| TagBase | class |
This is an abstract base class that should not be directly added to a message as a tag. It is used as the base class of all tags, thus it doesn't have any fields. |
Fields
| Name | Type | Description |
|---|---|---|
| direction | Direction |
Source code
// // This tag specifies the intended direction of the packet as one of inbound, // outbound, or undefined. The direction should be set to: // - outbound when // - a new packet is generated (e.g. in an application or in a protocol like TCP) // - a packet is sent to the lower layer // - a packet is received from the upper layer // - inbound when // - a packet is forwarded (e.g. in a protocol like IP) // - a packet is received from the lower layer // - a packet is sent to the upper layer // class DirectionTag extends TagBase { Direction direction = DIRECTION_UNDEFINED; }File: src/inet/common/DirectionTag.msg