TTEthernet Model for INET Framework
|
Represents the part of a port that receives messages (RX) More...
#include <TTEInput.h>
Public Member Functions | |
TTEInput () | |
Constructor. More... | |
virtual void | handleParameterChange (const char *parname) |
Indicates a parameter has changed. More... | |
Protected Member Functions | |
virtual void | initialize () |
Adds an incoming module to the list. More... | |
virtual void | handleMessage (cMessage *msg) |
Forwards frames to the appropriate incoming modules. More... | |
Protected Attributes | |
bool | hadError |
set to true if there was an error during runtime More... | |
Static Protected Attributes | |
static simsignal_t | ctDroppedSignal = SIMSIGNAL_NULL |
Signal that is emitted when a frame is dropped. More... | |
Private Member Functions | |
virtual bool | isCT (EtherFrame *frame) |
Helper function checks whether a Frame is critical traffic. More... | |
virtual uint16_t | getCTID (EtherFrame *frame) |
Returns the critical traffic id for a given frame. More... | |
Private Attributes | |
std::map< uint16_t, std::list < Incoming * > > | incomings |
Lists of incoming modules for each critical traffic id. More... | |
uint32_t | ctMask |
caches ct_mask parameter More... | |
uint32_t | ctMarker |
caches ct_marker parameter More... | |
bool | promiscuous |
caches promiscuous parameter More... | |
Represents the part of a port that receives messages (RX)
*Critical traffic arriving on in-gate is forwarded to the incoming modules or dropped if there is no module configured. Best-effort frames are forwarded through the out-gate.
Definition at line 39 of file TTEInput.h.
TTEInput::TTEInput | ( | ) |
|
privatevirtual |
Returns the critical traffic id for a given frame.
frame | Pointer to the frame to get critical traffic id from. |
Definition at line 168 of file TTEInput.cc.
Referenced by handleMessage().
|
protectedvirtual |
Forwards frames to the appropriate incoming modules.
Critical traffic arriving on in-gate is forwarded to the incoming modules or dropped if there is no module configured. Best-effort frames are forwarded through the out-gate. The function timestamps messages using the received and received_total parameters.
msg | incoming message |
Definition at line 43 of file TTEInput.cc.
|
virtual |
Indicates a parameter has changed.
parname | Name of the changed parameter or NULL if multiple parameter changed. |
Definition at line 122 of file TTEInput.cc.
|
protectedvirtual |
Adds an incoming module to the list.
ctID | critical traffic id of the incoming module |
incoming | Pointer to the Incoming module Initialization of the module |
Definition at line 33 of file TTEInput.cc.
|
privatevirtual |
Helper function checks whether a Frame is critical traffic.
frame | Pointer to the frame to check. |
Definition at line 154 of file TTEInput.cc.
Referenced by handleMessage().
|
staticprotected |
Signal that is emitted when a frame is dropped.
Frames may be dropped when no incoming module is configured.
Definition at line 69 of file TTEInput.h.
Referenced by handleMessage(), and initialize().
|
private |
caches ct_marker parameter
Definition at line 54 of file TTEInput.h.
Referenced by handleParameterChange(), and isCT().
|
private |
caches ct_mask parameter
Definition at line 50 of file TTEInput.h.
Referenced by handleParameterChange(), and isCT().
|
protected |
set to true if there was an error during runtime
Definition at line 63 of file TTEInput.h.
Referenced by handleMessage(), and TTEInput().
|
private |
Lists of incoming modules for each critical traffic id.
Definition at line 45 of file TTEInput.h.
Referenced by handleMessage(), and handleParameterChange().
|
private |
caches promiscuous parameter
Definition at line 58 of file TTEInput.h.
Referenced by handleMessage(), and handleParameterChange().