Nemo  2.3.46
Service Class Referenceabstract

Interface for the simulation services (files and stats). More...

#include <service.h>

+ Inheritance diagram for Service:

Public Member Functions

 Service ()
 
virtual ~Service ()
 
virtual bool init ()=0
 Inits internals. More...
 
virtual void notify ()=0
 Notifies all observers to update their state. More...
 
virtual void load (SimComponent *sc)=0
 Interface used by a simulation component to load its obervers onto a service provider. More...
 
virtual void attach (Handler *h)=0
 Adds an observer to the list. More...
 
virtual void reset ()=0
 Clears the observers list. More...
 

Detailed Description

Interface for the simulation services (files and stats).

Implements the observer pattern. Notify the observers (Handler) to update their state. Contains the observer list. Provides interface to attach the observers to the service.

Constructor & Destructor Documentation

Service::Service ( )
inline
47 { }
virtual Service::~Service ( )
inlinevirtual
49 { }

Member Function Documentation

virtual void Service::attach ( Handler h)
pure virtual

Adds an observer to the list.

Implemented in StatServices, FileServices, and UpdaterServices.

virtual bool Service::init ( )
pure virtual

Inits internals.

Implemented in StatServices, FileServices, and UpdaterServices.

virtual void Service::load ( SimComponent sc)
pure virtual

Interface used by a simulation component to load its obervers onto a service provider.

Implemented in StatServices, FileServices, and UpdaterServices.

virtual void Service::notify ( )
pure virtual

Notifies all observers to update their state.

Implemented in StatServices, FileServices, and UpdaterServices.

virtual void Service::reset ( )
pure virtual

Clears the observers list.

Implemented in StatServices, FileServices, and UpdaterServices.


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

Generated for Nemo v2.3.0 by  doxygen 1.8.8 --
Catalogued on GSR