Component start complete all transport processing and event actions are now allowed. Allowable transitions are Component::stop().
More...
#include <nemlayerstaterunning.h>
|
| ~NEMLayerStateRunning () |
|
void | handlePostStart (NEMStatefulLayer *pStatefulLayer, NEMLayer *pLayer) |
|
void | handleStop (NEMStatefulLayer *pStatefulLayer, NEMLayer *pLayer) |
|
virtual void | processConfiguration (NEMStatefulLayer *pStatefulLayer, NEMLayer *pLayer, const ConfigurationUpdate &update) |
|
void | processDownstreamControl (NEMStatefulLayer *pStatefulLayer, NEMLayer *pLayer, const ControlMessages &msgs) |
|
void | processDownstreamPacket (NEMStatefulLayer *pStatefulLayer, NEMLayer *pLayer, DownstreamPacket &pkt, const ControlMessages &msgs) |
|
void | processUpstreamPacket (NEMStatefulLayer *pStatefulLayer, NEMLayer *pLayer, UpstreamPacket &pkt, const ControlMessages &msgs) |
|
void | processUpstreamControl (NEMStatefulLayer *pStatefulLayer, NEMLayer *pLayer, const ControlMessages &msgs) |
|
void | processEvent (NEMStatefulLayer *pStatefulLayer, NEMLayer *pLayer, const EventId &id, const Serialization &serialization) |
|
void | processTimedEvent (NEMStatefulLayer *pStatefulLayer, NEMLayer *pLayer, TimerEventId eventId, const TimePoint &expireTime, const TimePoint &scheduleTime, const TimePoint &fireTime, const void *arg) |
|
virtual void | handleInitialize (NEMStatefulLayer *pStatefulLayer, NEMLayer *pLayer, Registrar ®istrar) |
|
virtual void | handleConfigure (NEMStatefulLayer *pStatefulLayer, NEMLayer *pLayer, const ConfigurationUpdate &update) |
|
virtual void | handleStart (NEMStatefulLayer *pStatefulLayer, NEMLayer *pLayer) |
|
virtual void | handleDestroy (NEMStatefulLayer *pStatefulLayer, NEMLayer *pLayer) throw () |
|
std::string | getStateName () const |
|
Component start complete all transport processing and event actions are now allowed. Allowable transitions are Component::stop().
Definition at line 50 of file nemlayerstaterunning.h.
◆ ~NEMLayerStateRunning()
EMANE::NEMLayerStateRunning::~NEMLayerStateRunning |
( |
| ) |
|
◆ NEMLayerStateRunning()
EMANE::NEMLayerStateRunning::NEMLayerStateRunning |
( |
| ) |
|
|
protected |
◆ changeState()
◆ destroy()
Destroys the single instance of type T. Once destroyed it cannot be used or recreated. This is not a thread-safe method.
Definition at line 67 of file singleton.h.
◆ getStateName()
std::string EMANE::NEMLayerState::getStateName |
( |
| ) |
const |
|
inherited |
Get state name
- Returns
- state Name of current state
Definition at line 198 of file nemlayerstate.cc.
◆ handleConfigure()
◆ handleDestroy()
Handle destroy
- Parameters
-
pStatefulLayer | Reference to the stateful layer |
pLayer | Reference to the wrapped layer |
- Note
- Default implementation generates a log error
Reimplemented in EMANE::NEMLayerStateStopped.
Definition at line 95 of file nemlayerstate.cc.
◆ handleInitialize()
Handle initialize
- Parameters
-
pStatefulLayer | Reference to the stateful layer |
pLayer | Reference to the wrapped layer |
registrar | Registrar reference |
- Exceptions
-
- Note
- Default implementation generates a log error
Reimplemented in EMANE::NEMLayerStateUninitialized.
Definition at line 43 of file nemlayerstate.cc.
◆ handlePostStart()
Handle post start
- Parameters
-
pStatefulLayer | Reference to the stateful layer |
pLayer | Reference to the wrapped layer |
Layer post start hook
Reimplemented from EMANE::NEMLayerState.
Definition at line 43 of file nemlayerstaterunning.cc.
◆ handleStart()
Handle start
- Parameters
-
pStatefulLayer | Reference to the stateful layer |
pLayer | Reference to the wrapped layer |
- Exceptions
-
- Note
- Default implementation generates a log error
Reimplemented in EMANE::NEMLayerStateConfigured.
Definition at line 65 of file nemlayerstate.cc.
◆ handleStop()
◆ instance()
Provides thread-safe access to a single instance of type T. It does not provide thread-safety for T methods.
- Returns
- A pointer to T
Definition at line 56 of file singleton.h.
◆ processConfiguration()
Process configuration update
- Parameters
-
pStatefulLayer | Reference to the stateful layer |
pLayer | Reference to the wrapped layer |
update | Reference to the configuration update |
Reimplemented from EMANE::NEMLayerState.
Definition at line 56 of file nemlayerstaterunning.cc.
◆ processDownstreamControl()
Process downstream control
- Parameters
-
pStatefulLayer | Reference to the stateful layer |
pLayer | Reference to the wrapped layer |
msgs | Control message |
Layer processing of downstream control
Reimplemented from EMANE::NEMLayerState.
Definition at line 64 of file nemlayerstaterunning.cc.
◆ processDownstreamPacket()
Process downstream packet
- Parameters
-
pStatefulLayer | Reference to the stateful layer |
pLayer | Reference to the wrapped layer |
pkt | Reference to the Downstream packet |
msgs | Reference to the ControlMessage |
Layer processing of downstream packet
Reimplemented from EMANE::NEMLayerState.
Definition at line 71 of file nemlayerstaterunning.cc.
◆ processEvent()
Process event
- Parameters
-
pStatefulLayer | Reference to the stateful layer |
pLayer | Reference to the wrapped layer |
id | Event Id |
serialization | Event object serialization |
Layer processing of event
Reimplemented from EMANE::NEMLayerState.
Definition at line 94 of file nemlayerstaterunning.cc.
◆ processTimedEvent()
Process timed event
- Parameters
-
pStatefulLayer | Reference to the stateful layer |
pLayer | Reference to the wrapped layer |
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 |
Layer processing of timed event
Reimplemented from EMANE::NEMLayerState.
Definition at line 103 of file nemlayerstaterunning.cc.
◆ processUpstreamControl()
Process upstream control
- Parameters
-
pStatefulLayer | Reference to the stateful layer |
pLayer | Reference to the wrapped layer |
msgs | Reference to the Control message |
Layer processing of upstream control
Reimplemented from EMANE::NEMLayerState.
Definition at line 87 of file nemlayerstaterunning.cc.
◆ processUpstreamPacket()
Process downstream packet
- Parameters
-
pStatefulLayer | Reference to the stateful layer |
pLayer | Reference to the wrapped layer |
pkt | Reference to the Upstream packet |
msgs | Reference to the ControlMessage |
Layer processing of upstream packet
Reimplemented from EMANE::NEMLayerState.
Definition at line 79 of file nemlayerstaterunning.cc.
◆ pzStateName_
const char* EMANE::NEMLayerState::pzStateName_ |
|
protectedinherited |
The documentation for this class was generated from the following files: