EMANE  1.2.1
EMANE::Application::NEMImpl Class Reference

Implementation of the Network emulation module consisting of NEM components, OTA Adapater and network adapter. More...

#include <nemimpl.h>

Inheritance diagram for EMANE::Application::NEMImpl:
EMANE::Application::NEM EMANE::Component EMANE::Buildable

Public Member Functions

 NEMImpl (NEMId id, std::unique_ptr< NEMLayerStack > &pNEMLayerStack, bool bExternalTransport)
 
 ~NEMImpl ()
 
void initialize (Registrar &registrar) override
 
void configure (const ConfigurationUpdate &update) override
 
void start () override
 
void postStart () override
 
void stop () override
 
void destroy () override throw ()
 
NEMId getNEMId () const override
 
BuildId getBuildId () const
 
void setBuildId (BuildId bid)
 

Detailed Description

Implementation of the Network emulation module consisting of NEM components, OTA Adapater and network adapter.

Definition at line 58 of file nemimpl.h.

Constructor & Destructor Documentation

◆ NEMImpl()

EMANE::Application::NEMImpl::NEMImpl ( NEMId  id,
std::unique_ptr< NEMLayerStack > &  pNEMLayerStack,
bool  bExternalTransport 
)

Constructor

Parameters
idNEMid of this NEM
pNEMLayerStackpointer to a NEMLayerStack to contain in this NEM
bExternalTransportFlag inficating use of external transport

Definition at line 43 of file nemimpl.cc.

◆ ~NEMImpl()

EMANE::Application::NEMImpl::~NEMImpl ( )

Definition at line 55 of file nemimpl.cc.

Member Function Documentation

◆ configure()

void EMANE::Application::NEMImpl::configure ( const ConfigurationUpdate update)
overridevirtual

Configure the component.

Parameters
updateConfiguration update values
Exceptions
ConfigureExceptionthrown when a unexpected configuration item is encountered or there is a problem with the specified item value

Implements EMANE::Component.

Definition at line 86 of file nemimpl.cc.

◆ destroy()

void EMANE::Application::NEMImpl::destroy ( )
throw (
)
overridevirtual

Destroy the component.

Implements EMANE::Component.

Definition at line 173 of file nemimpl.cc.

◆ getBuildId()

EMANE::BuildId EMANE::Buildable::getBuildId ( ) const
inlineinherited

Gets the application wide unique BuildId of this object.

Returns
the BuildId

Definition at line 34 of file buildable.inl.

◆ getNEMId()

EMANE::NEMId EMANE::Application::NEMImpl::getNEMId ( ) const
overridevirtual

Get the NEM's NEMId

Returns
the NEM's NEMId

Implements EMANE::Application::NEM.

Definition at line 179 of file nemimpl.cc.

◆ initialize()

void EMANE::Application::NEMImpl::initialize ( Registrar registrar)
overridevirtual

Initialize the component.

Exceptions
InitializeExceptionthrown when an error is encountered during initialization

Implements EMANE::Component.

Definition at line 57 of file nemimpl.cc.

◆ postStart()

void EMANE::Application::NEMImpl::postStart ( )
overridevirtual

Hook to run any post start functionaililty. Called after all the components have been started.

Reimplemented from EMANE::Component.

Definition at line 156 of file nemimpl.cc.

◆ setBuildId()

void EMANE::Buildable::setBuildId ( BuildId  bid)
inlineinherited

Sets the application wide unique BuildId of this object. Builders assign a BuildId to objects at instantiation.

Parameters
bidthe BuildId
Note
: This method is for internal framework use only.

Definition at line 40 of file buildable.inl.

◆ start()

void EMANE::Application::NEMImpl::start ( )
overridevirtual

Start the component.

Exceptions
StartExceptionthrown when an error is encountered during start.

Implements EMANE::Component.

Definition at line 135 of file nemimpl.cc.

◆ stop()

void EMANE::Application::NEMImpl::stop ( )
overridevirtual

Stop the component.

Exceptions
StopExceptionthrown when an error is encountered during stop

Implements EMANE::Component.

Definition at line 161 of file nemimpl.cc.


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