EMANE  1.2.1
EMANE::NEMLayerStateStopped Class Reference

Component running state complete. The only allowable transition if Component::destory() More...

#include <nemlayerstatestopped.h>

Inheritance diagram for EMANE::NEMLayerStateStopped:
EMANE::NEMLayerState EMANE::Utils::Singleton< NEMLayerStateStopped >

Public Member Functions

 ~NEMLayerStateStopped ()
 
void handleDestroy (NEMStatefulLayer *pStatefulLayer, NEMLayer *pLayer) throw ()
 
virtual void handleInitialize (NEMStatefulLayer *pStatefulLayer, NEMLayer *pLayer, Registrar &registrar)
 
virtual void handleConfigure (NEMStatefulLayer *pStatefulLayer, NEMLayer *pLayer, const ConfigurationUpdate &update)
 
virtual void handleStart (NEMStatefulLayer *pStatefulLayer, NEMLayer *pLayer)
 
virtual void handlePostStart (NEMStatefulLayer *pStatefulLayer, NEMLayer *pLayer)
 
virtual void handleStop (NEMStatefulLayer *pStatefulLayer, NEMLayer *pLayer)
 
virtual void processConfiguration (NEMStatefulLayer *pStatefulLayer, NEMLayer *pLayer, const ConfigurationUpdate &update)
 
virtual void processDownstreamControl (NEMStatefulLayer *pStatefulLayer, NEMLayer *pLayer, const ControlMessages &msgs)
 
virtual void processDownstreamPacket (NEMStatefulLayer *pStatefulLayer, NEMLayer *pLayer, DownstreamPacket &pkt, const ControlMessages &msgs)
 
virtual void processUpstreamPacket (NEMStatefulLayer *pStatefulLayer, NEMLayer *pLayer, UpstreamPacket &pkt, const ControlMessages &msgs)
 
virtual void processUpstreamControl (NEMStatefulLayer *pStatefulLayer, NEMLayer *pLayer, const ControlMessages &msgs)
 
virtual void processEvent (NEMStatefulLayer *pStatefulLayer, NEMLayer *pLayer, const EventId &id, const Serialization &serialization)
 
virtual void processTimedEvent (NEMStatefulLayer *pStatefulLayer, NEMLayer *pLayer, TimerEventId eventId, const TimePoint &expireTime, const TimePoint &scheduleTime, const TimePoint &fireTime, const void *arg)
 
std::string getStateName () const
 

Static Public Member Functions

static NEMLayerStateStoppedinstance ()
 
static void destroy ()
 

Protected Member Functions

 NEMLayerStateStopped ()
 
void changeState (NEMStatefulLayer *pStatefulLayer, NEMLayerState *pState)
 

Protected Attributes

const char * pzStateName_
 

Detailed Description

Component running state complete. The only allowable transition if Component::destory()

Definition at line 48 of file nemlayerstatestopped.h.

Constructor & Destructor Documentation

◆ ~NEMLayerStateStopped()

EMANE::NEMLayerStateStopped::~NEMLayerStateStopped ( )

Definition at line 40 of file nemlayerstatestopped.cc.

◆ NEMLayerStateStopped()

EMANE::NEMLayerStateStopped::NEMLayerStateStopped ( )
protected

Definition at line 37 of file nemlayerstatestopped.cc.

Member Function Documentation

◆ changeState()

void EMANE::NEMLayerState::changeState ( NEMStatefulLayer pStatefulLayer,
NEMLayerState pState 
)
protectedinherited

Definition at line 192 of file nemlayerstate.cc.

◆ destroy()

static void EMANE::Utils::Singleton< NEMLayerStateStopped >::destroy ( )
inlinestaticinherited

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()

void EMANE::NEMLayerState::handleConfigure ( NEMStatefulLayer pStatefulLayer,
NEMLayer pLayer,
const ConfigurationUpdate update 
)
virtualinherited

Handle configuration

Parameters
pStatefulLayerReference to the stateful layer
pLayerReference to the wrapped layer
updateConfiguration update
Exceptions
ConfigureException
Note
Default implementation generates a log error

Reimplemented in EMANE::NEMLayerStateConfigured, and EMANE::NEMLayerStateInitialized.

Definition at line 54 of file nemlayerstate.cc.

◆ handleDestroy()

void EMANE::NEMLayerStateStopped::handleDestroy ( NEMStatefulLayer pStatefulLayer,
NEMLayer pLayer 
)
throw (
)
virtual

Handle destroy

Parameters
pStatefulLayerReference to the stateful layer
pLayerReference to the wrapped layer
Note
A successful destroy will result in the transition to the NEMLayerStateDestroyed state

Reimplemented from EMANE::NEMLayerState.

Definition at line 42 of file nemlayerstatestopped.cc.

◆ handleInitialize()

void EMANE::NEMLayerState::handleInitialize ( NEMStatefulLayer pStatefulLayer,
NEMLayer pLayer,
Registrar registrar 
)
virtualinherited

Handle initialize

Parameters
pStatefulLayerReference to the stateful layer
pLayerReference to the wrapped layer
registrarRegistrar reference
Exceptions
InitializeException
Note
Default implementation generates a log error

Reimplemented in EMANE::NEMLayerStateUninitialized.

Definition at line 43 of file nemlayerstate.cc.

◆ handlePostStart()

void EMANE::NEMLayerState::handlePostStart ( NEMStatefulLayer pStatefulLayer,
NEMLayer pLayer 
)
virtualinherited

Handle post start

Parameters
pStatefulLayerReference to the stateful layer
pLayerReference to the wrapped layer
Note
Default implementation generates a log error

Reimplemented in EMANE::NEMLayerStateRunning.

Definition at line 75 of file nemlayerstate.cc.

◆ handleStart()

void EMANE::NEMLayerState::handleStart ( NEMStatefulLayer pStatefulLayer,
NEMLayer pLayer 
)
virtualinherited

Handle start

Parameters
pStatefulLayerReference to the stateful layer
pLayerReference to the wrapped layer
Exceptions
StartException
Note
Default implementation generates a log error

Reimplemented in EMANE::NEMLayerStateConfigured.

Definition at line 65 of file nemlayerstate.cc.

◆ handleStop()

void EMANE::NEMLayerState::handleStop ( NEMStatefulLayer pStatefulLayer,
NEMLayer pLayer 
)
virtualinherited

Handle stop

Parameters
pStatefulLayerReference to the stateful layer
pLayerReference to the wrapped layer
Exceptions
StopException
Note
Default implementation generates a log error

Reimplemented in EMANE::NEMLayerStateRunning.

Definition at line 85 of file nemlayerstate.cc.

◆ instance()

static NEMLayerStateStopped * EMANE::Utils::Singleton< NEMLayerStateStopped >::instance ( )
inlinestaticinherited

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()

void EMANE::NEMLayerState::processConfiguration ( NEMStatefulLayer pStatefulLayer,
NEMLayer pLayer,
const ConfigurationUpdate update 
)
virtualinherited

Process configuration update

Parameters
pStatefulLayerReference to the stateful layer
pLayerReference to the wrapped layer
updateReference to the configuration update
Note
Default implementation generates a log error

Reimplemented in EMANE::NEMLayerStateRunning.

Definition at line 106 of file nemlayerstate.cc.

◆ processDownstreamControl()

void EMANE::NEMLayerState::processDownstreamControl ( NEMStatefulLayer pStatefulLayer,
NEMLayer pLayer,
const ControlMessages msgs 
)
virtualinherited

Process downstream control

Parameters
pStatefulLayerReference to the stateful layer
pLayerReference to the wrapped layer
msgsReference to the Control message
Note
Default implementation generates a log error

Reimplemented in EMANE::NEMLayerStateRunning.

Definition at line 117 of file nemlayerstate.cc.

◆ processDownstreamPacket()

void EMANE::NEMLayerState::processDownstreamPacket ( NEMStatefulLayer pStatefulLayer,
NEMLayer pLayer,
DownstreamPacket pkt,
const ControlMessages msgs 
)
virtualinherited

Process downstream packet

Parameters
pStatefulLayerReference to the stateful layer
pLayerReference to the wrapped layer
pktReference to the Downstream packet
msgsreference to the ControlMessage
Note
Default implementation generates a log error

Reimplemented in EMANE::NEMLayerStateRunning.

Definition at line 128 of file nemlayerstate.cc.

◆ processEvent()

void EMANE::NEMLayerState::processEvent ( NEMStatefulLayer pStatefulLayer,
NEMLayer pLayer,
const EventId id,
const Serialization serialization 
)
virtualinherited

Process event

Parameters
pStatefulLayerReference to the stateful layer
pLayerReference to the wrapped layer
idEvent Id
serializationEvent object serialization
Note
Default implementation generates a log error

Reimplemented in EMANE::NEMLayerStateRunning.

Definition at line 163 of file nemlayerstate.cc.

◆ processTimedEvent()

void EMANE::NEMLayerState::processTimedEvent ( NEMStatefulLayer pStatefulLayer,
NEMLayer pLayer,
TimerEventId  eventId,
const TimePoint expireTime,
const TimePoint scheduleTime,
const TimePoint fireTime,
const void *  arg 
)
virtualinherited

Process timed event

Parameters
pStatefulLayerReference to the stateful layer
pLayerReference to the wrapped layer
eventIdIdentifier corresponding to the timer being processed
expireTimeThe time the timer was scheduled to expire
scheduleTimeThe Time the timer was scheduled
fireTimeTime time The time the timer actually fired
argOpaque timed event data
Note
Default implementation generates a log error

Reimplemented in EMANE::NEMLayerStateRunning.

Definition at line 176 of file nemlayerstate.cc.

◆ processUpstreamControl()

void EMANE::NEMLayerState::processUpstreamControl ( NEMStatefulLayer pStatefulLayer,
NEMLayer pLayer,
const ControlMessages msgs 
)
virtualinherited

Process upstream control

Parameters
pStatefulLayerReference to the stateful layer
pLayerReference to the wrapped layer
msgsReference to the Control message
Note
Default implementation generates a log error

Reimplemented in EMANE::NEMLayerStateRunning.

Definition at line 152 of file nemlayerstate.cc.

◆ processUpstreamPacket()

void EMANE::NEMLayerState::processUpstreamPacket ( NEMStatefulLayer pStatefulLayer,
NEMLayer pLayer,
UpstreamPacket pkt,
const ControlMessages msgs 
)
virtualinherited

Process downstream packet

Parameters
pStatefulLayerReference to the stateful layer
pLayerReference to the wrapped layer
pktReference to the Upstream packet
msgsreference to the ControlMessage
Note
Default implementation generates a log error

Reimplemented in EMANE::NEMLayerStateRunning.

Definition at line 140 of file nemlayerstate.cc.

Member Data Documentation

◆ pzStateName_

const char* EMANE::NEMLayerState::pzStateName_
protectedinherited

Definition at line 252 of file nemlayerstate.h.


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