SSAGES
0.9.3
Software Suite for Advanced General Ensemble Simulations
|
Base abstract class for listening in to events fired by "Hook". More...
#include <EventListener.h>
Public Member Functions | |
EventListener (unsigned int frequency) | |
Constructor. More... | |
unsigned int | GetFrequency () const |
Get frequency of event listener. More... | |
virtual void | PreSimulation (Snapshot *snapshot, const class CVManager &cvmanager)=0 |
Method call prior to simulation initiation. More... | |
virtual void | PostIntegration (Snapshot *snapshot, const class CVManager &cvmanager)=0 |
Method call post integration. More... | |
virtual void | PostSimulation (Snapshot *snapshot, const class CVManager &cvmanager)=0 |
Method call post simulation. More... | |
virtual | ~EventListener () |
Destructor. | |
Static Public Member Functions | |
static unsigned int | GetWalkerID (const MPI_Comm &world, const MPI_Comm &comm) |
Get walker ID number of specified communicator. More... | |
static unsigned int | GetNumWalkers (const MPI_Comm &world, const MPI_Comm &comm) |
Get total number of walkers in the simulation. More... | |
static bool | IsMasterRank (const MPI_Comm &comm) |
Check if current processor is master. More... | |
Private Attributes | |
unsigned int | frequency_ |
Frequency for listening. | |
Base abstract class for listening in to events fired by "Hook".
Definition at line 35 of file EventListener.h.
|
inline |
Constructor.
frequency | Frequency for listening. |
Definition at line 45 of file EventListener.h.
|
inline |
Get frequency of event listener.
Definition at line 54 of file EventListener.h.
References frequency_.
|
inlinestatic |
Get total number of walkers in the simulation.
world | MPI communicator for the whole simulation. |
comm | MPI communicator for the local walker. |
Definition at line 100 of file EventListener.h.
|
inlinestatic |
Get walker ID number of specified communicator.
world | MPI communicator for the whole simulation. |
comm | MPI communicator for the local walker. |
Definition at line 89 of file EventListener.h.
|
inlinestatic |
Check if current processor is master.
comm | MPI communicator to check. |
Definition at line 110 of file EventListener.h.
Referenced by SSAGES::DirectForwardFlux::CheckForInterfaceCrossings(), SSAGES::DirectForwardFlux::InitializeQueue(), SSAGES::ANN::PostIntegration(), and SSAGES::ANN::TrainNetwork().
|
pure virtual |
Method call post integration.
snapshot | Pointer to the simulation snapshot. |
cvmanager | Collective variable manager. |
This function will be called at the end of each integration step.
Implemented in SSAGES::StringMethod, SSAGES::Method, SSAGES::ForwardFlux, SSAGES::Umbrella, SSAGES::Swarm, SSAGES::Meta, SSAGES::FiniteTempString, SSAGES::ElasticBand, SSAGES::DirectForwardFlux, SSAGES::CFF, SSAGES::BFS, SSAGES::ANN, SSAGES::ABF, and SSAGES::Logger.
|
pure virtual |
Method call post simulation.
snapshot | Pointer to the simulation snapshot. |
cvmanager | Collective variable manager. |
This function will be called after the simulation has finished.
Implemented in SSAGES::Method, SSAGES::Umbrella, SSAGES::StringMethod, SSAGES::Meta, SSAGES::ForwardFlux, SSAGES::CFF, SSAGES::BFS, SSAGES::ANN, SSAGES::ABF, and SSAGES::Logger.
|
pure virtual |
Method call prior to simulation initiation.
snapshot | Pointer to the simulation snapshot. |
cvmanager | Collective variable manager. |
This function will be called before the simulation is started.
Implemented in SSAGES::Method, SSAGES::Umbrella, SSAGES::StringMethod, SSAGES::Meta, SSAGES::ForwardFlux, SSAGES::CFF, SSAGES::BFS, SSAGES::ANN, SSAGES::ABF, and SSAGES::Logger.