|
EMANE
1.2.1
|
A layer stack that enforces component state transition rules. The stateful layer is not a fully functional layer it wraps a real NEM layer allowing only correct transitions and state actions. More...
#include <nemstatefullayer.h>
Static Public Attributes | |
| static const ControlMessages | empty |
| static const ControlMessages | empty |
Protected Attributes | |
| NEMId | id_ |
| PlatformServiceProvider * | pPlatformService_ |
A layer stack that enforces component state transition rules. The stateful layer is not a fully functional layer it wraps a real NEM layer allowing only correct transitions and state actions.
Definition at line 54 of file nemstatefullayer.h.
| EMANE::NEMStatefulLayer::NEMStatefulLayer | ( | NEMId | id, |
| NEMLayer * | pLayer, | ||
| EMANE::PlatformServiceProvider * | pPlatformService | ||
| ) |
Constructor
| id | NEM id |
| pLayer | Layer to statefully wrap |
| pPlatformService | pointer to the PlatformServiceProvider |
Definition at line 38 of file nemstatefullayer.cc.
| EMANE::NEMStatefulLayer::~NEMStatefulLayer | ( | ) |
Definition at line 45 of file nemstatefullayer.cc.
| void EMANE::NEMStatefulLayer::changeState | ( | NEMLayerState * | pState | ) |
Change state
| pState | New state to transition to |
Definition at line 121 of file nemstatefullayer.cc.
|
overridevirtual |
Configure the component.
| update | Configuration update values |
| ConfigureException | thrown when a unexpected configuration item is encountered or there is a problem with the specified item value |
Implements EMANE::Component.
Definition at line 52 of file nemstatefullayer.cc.
|
overridevirtual | |||||||||||||
Destroy the component.
Implements EMANE::Component.
Definition at line 72 of file nemstatefullayer.cc.
|
inlineinherited |
Gets the application wide unique BuildId of this object.
Definition at line 34 of file buildable.inl.
|
inlineinherited |
|
overridevirtual |
|
overridevirtual |
Hook to run any post start functionaililty. Called after all the components have been started.
Reimplemented from EMANE::Component.
Definition at line 62 of file nemstatefullayer.cc.
|
overridevirtual |
Process dynamic running-state configuration updates
| update | Configuration update |
Reimplemented from EMANE::RunningStateMutable.
Definition at line 78 of file nemstatefullayer.cc.
|
overridevirtual |
Process downstream control message
| msgs | Reference to the ControlMessages |
Implements EMANE::DownstreamTransport.
Definition at line 83 of file nemstatefullayer.cc.
|
overridevirtual |
Process downstream packet
| pkt | Reference to the DownstreamPacket to process |
| msgs | optional reference to the ControlMessages |
Implements EMANE::DownstreamTransport.
Definition at line 88 of file nemstatefullayer.cc.
|
overridevirtual |
Process an event.
| eventId | event identifier corresponding to the serialized event |
| serialization | opaque event object data |
Reimplemented from EMANE::EventServiceUser.
Definition at line 105 of file nemstatefullayer.cc.
|
overridevirtual |
Process a timed event
| eventId | Identifier corresponding to the timer being processed |
| expireTime | The time the timer was scheduled to expire |
| scheduleTime | The Time the timer was scheduled |
| fireTime | Time time The time the timer actually fired |
| arg | Opaque timed event data |
Reimplemented from EMANE::TimerServiceUser.
Definition at line 126 of file nemstatefullayer.cc.
|
overridevirtual |
Process upstream control message
| msgs | reference to the ControlMessages |
Implements EMANE::UpstreamTransport.
Definition at line 100 of file nemstatefullayer.cc.
|
overridevirtual |
Process upstream packet
| pkt | reference to the UpstreamPacket to process |
| msgs | optional reference to the ControlMessages |
Implements EMANE::UpstreamTransport.
Definition at line 94 of file nemstatefullayer.cc.
|
inlineinherited |
Send downstream control message
| msgs | reference to the ControlMessages |
Definition at line 44 of file upstreamtransport.inl.
|
inlineinherited |
Send downsteam packet
| pkt | reference to the DownstreamPacket to process |
| msgs | optional reference to the ControlMessages |
Definition at line 37 of file upstreamtransport.inl.
|
inlineinherited |
Send upstream control message
| msgs | Reference to the ControlMessages |
Definition at line 44 of file downstreamtransport.inl.
|
inlineinherited |
Send upstream packet
| pkt | Reference to the UpstreamPacket to process |
| msgs | optional reference to the ControlMessages |
Definition at line 37 of file downstreamtransport.inl.
|
inlineinherited |
Sets the application wide unique BuildId of this object. Builders assign a BuildId to objects at instantiation.
| bid | the BuildId |
Definition at line 40 of file buildable.inl.
|
overridevirtual |
Set the downstream transport.
| pDownstreamTransport | Pointer to the downstream transport of this upstream transport. |
Reimplemented from EMANE::UpstreamTransport.
Definition at line 116 of file nemstatefullayer.cc.
|
overridevirtual |
Set the upstream transport.
| pUpstreamTransport | Pointer to the upstream transport of this downstream transport. |
Reimplemented from EMANE::DownstreamTransport.
Definition at line 111 of file nemstatefullayer.cc.
|
overridevirtual |
Start the component.
| StartException | thrown when an error is encountered during start. |
Implements EMANE::Component.
Definition at line 57 of file nemstatefullayer.cc.
|
overridevirtual |
Stop the component.
| StopException | thrown when an error is encountered during stop |
Implements EMANE::Component.
Definition at line 67 of file nemstatefullayer.cc.
|
staticinherited |
Definition at line 102 of file downstreamtransport.h.
|
staticinherited |
Definition at line 106 of file upstreamtransport.h.
|
protectedinherited |
Definition at line 81 of file nemlayer.h.
|
protectedinherited |
Definition at line 64 of file platformserviceuser.h.