TTEthernet Model for INET Framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
TTEthernetModel::Incoming Class Reference

Base class for the critical traffic conformance check. More...

#include <Incoming.h>

Inheritance diagram for TTEthernetModel::Incoming:
TTEthernetModel::RCIncoming TTEthernetModel::TTIncoming

Public Member Functions

 Incoming ()
 Constructor. More...
 

Protected Member Functions

virtual void initialize ()
 Initialization of the module. More...
 
virtual void handleMessage (cMessage *msg)
 Forwards messages arriving on in-gate to out-gate. 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...
 

Detailed Description

Base class for the critical traffic conformance check.

This base class simply forwards messages from in to out

See Also
RCIncoming, TTIncoming

Definition at line 30 of file Incoming.h.

Constructor & Destructor Documentation

TTEthernetModel::Incoming::Incoming ( )

Constructor.

Definition at line 24 of file Incoming.cc.

24  {
25  hadError = false;
26 }

Member Function Documentation

void TTEthernetModel::Incoming::handleMessage ( cMessage *  msg)
protectedvirtual

Forwards messages arriving on in-gate to out-gate.

Parameters
msgthe incoming message

Reimplemented in TTEthernetModel::TTIncoming, and TTEthernetModel::RCIncoming.

Definition at line 33 of file Incoming.cc.

34 {
35  if(msg->arrivedOn("in")){
36  sendDelayed(msg,SimTime(getParentModule()->par("hardware_delay").doubleValue()),"out");
37  //send(msg,"out");
38  }
39 }
void TTEthernetModel::Incoming::initialize ( )
protectedvirtual

Initialization of the module.

Definition at line 28 of file Incoming.cc.

29 {
30  ctDroppedSignal = registerSignal("ctDropped");
31 }

Member Data Documentation

simsignal_t TTEthernetModel::Incoming::ctDroppedSignal = SIMSIGNAL_NULL
staticprotected

Signal that is emitted when a frame is dropped.

Frames may be dropped when there was a violation of CT rules.

Definition at line 42 of file Incoming.h.

Referenced by TTEthernetModel::RCIncoming::handleMessage(), TTEthernetModel::TTIncoming::handleMessage(), and initialize().

bool TTEthernetModel::Incoming::hadError
protected

set to true if there was an error during runtime

Definition at line 36 of file Incoming.h.

Referenced by TTEthernetModel::TTIncoming::handleMessage(), and Incoming().


The documentation for this class was generated from the following files: