Nemo  2.3.56
Simulate forward-in-time genetic evolution in a spatially explicit, individual-based stochastic simulator
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::Service ( )
inline
47{ }

◆ ~Service()

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

Member Function Documentation

◆ attach()

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

Adds an observer to the list.

Implemented in FileServices, StatServices, and UpdaterServices.

◆ init()

virtual bool Service::init ( )
pure virtual

Inits internals.

Implemented in FileServices, StatServices, and UpdaterServices.

◆ load()

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

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

Implemented in FileServices, StatServices, and UpdaterServices.

◆ notify()

virtual void Service::notify ( )
pure virtual

Notifies all observers to update their state.

Implemented in FileServices, StatServices, and UpdaterServices.

◆ reset()

virtual void Service::reset ( )
pure virtual

Clears the observers list.

Implemented in FileServices, StatServices, and UpdaterServices.


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

Generated for Nemo v2.3.56 by  doxygen 1.9.0 -- Nemo is hosted on  Download Nemo

Locations of visitors to this page
Catalogued on GSR