EMANE  1.2.1
EMANE::Application::NEMManagerImpl Class Reference

Implementation of Platform interface. Contains and manages NEMs. More...

#include <nemmanagerimpl.h>

Inheritance diagram for EMANE::Application::NEMManagerImpl:
EMANE::Application::NEMManager EMANE::Component EMANE::Buildable

Public Member Functions

 NEMManagerImpl (const uuid_t &uuid)
 
 ~NEMManagerImpl ()
 
void add (std::unique_ptr< NEM > &pNEM) override
 
void initialize (Registrar &registrar) override
 
void configure (const ConfigurationUpdate &update) override
 
void start () override
 
void postStart () override
 
void stop () override
 
void destroy () override throw ()
 
const uuid_t & getUUID () const
 
BuildId getBuildId () const
 
void setBuildId (BuildId bid)
 

Protected Attributes

uuid_t uuid_
 

Detailed Description

Implementation of Platform interface. Contains and manages NEMs.

Definition at line 55 of file nemmanagerimpl.h.

Constructor & Destructor Documentation

◆ NEMManagerImpl()

EMANE::Application::NEMManagerImpl::NEMManagerImpl ( const uuid_t &  uuid)

Definition at line 46 of file nemmanagerimpl.cc.

◆ ~NEMManagerImpl()

EMANE::Application::NEMManagerImpl::~NEMManagerImpl ( )

Definition at line 49 of file nemmanagerimpl.cc.

Member Function Documentation

◆ add()

void EMANE::Application::NEMManagerImpl::add ( std::unique_ptr< NEM > &  pNEM)
overridevirtual

Add an NEM

Parameters
pNEMNEM reference
Exceptions
PlatformExceptionwhen an error occurs while adding and NEM to a platform

Implements EMANE::Application::NEMManager.

Definition at line 51 of file nemmanagerimpl.cc.

◆ configure()

void EMANE::Application::NEMManagerImpl::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 158 of file nemmanagerimpl.cc.

◆ destroy()

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

Destroy the component.

Implements EMANE::Component.

Definition at line 416 of file nemmanagerimpl.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.

◆ getUUID()

const uuid_t& EMANE::Application::NEMManager::getUUID ( ) const
inlineinherited

Gets the UUID

Returns
UUID

Definition at line 78 of file nemmanager.h.

◆ initialize()

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

Initialize the component.

Exceptions
InitializeExceptionthrown when an error is encountered during initialization

Implements EMANE::Component.

Definition at line 61 of file nemmanagerimpl.cc.

◆ postStart()

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

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

Reimplemented from EMANE::Component.

Definition at line 396 of file nemmanagerimpl.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::NEMManagerImpl::start ( )
overridevirtual

Start the component.

Exceptions
StartExceptionthrown when an error is encountered during start.

Implements EMANE::Component.

Definition at line 353 of file nemmanagerimpl.cc.

◆ stop()

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

Stop the component.

Exceptions
StopExceptionthrown when an error is encountered during stop

Implements EMANE::Component.

Definition at line 405 of file nemmanagerimpl.cc.

Member Data Documentation

◆ uuid_

uuid_t EMANE::Application::NEMManager::uuid_
protectedinherited

Definition at line 94 of file nemmanager.h.


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