Nemo
2.3.56
Simulate forward-in-time genetic evolution in a spatially explicit, individual-based stochastic simulator
|
Interface for the simulation services (files and stats). More...
#include <service.h>
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... | |
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.
|
inline |
|
inlinevirtual |
|
pure virtual |
Adds an observer to the list.
Implemented in FileServices, StatServices, and UpdaterServices.
|
pure virtual |
Inits internals.
Implemented in FileServices, StatServices, and UpdaterServices.
|
pure virtual |
Interface used by a simulation component to load its obervers onto a service provider.
Implemented in FileServices, StatServices, and UpdaterServices.
|
pure virtual |
Notifies all observers to update their state.
Implemented in FileServices, StatServices, and UpdaterServices.
|
pure virtual |
Clears the observers list.
Implemented in FileServices, StatServices, and UpdaterServices.