|
Nemo
2.4.0b
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>
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... | |
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.
|
pure virtual |
Adds an observer to the list.
Implemented in UpdaterServices, StatServices, and FileServices.
|
pure virtual |
Inits internals.
Implemented in UpdaterServices, StatServices, and FileServices.
|
pure virtual |
Interface used by a simulation component to load its obervers onto a service provider.
Implemented in UpdaterServices, StatServices, and FileServices.
|
pure virtual |
Notifies all observers to update their state.
Implemented in UpdaterServices, StatServices, and FileServices.
|
pure virtual |
Clears the observers list.
Implemented in UpdaterServices, StatServices, and FileServices.
1.9.1 -- Nemo is hosted on