SSAGES
0.1
A MetaDynamics Package
|
Interface for Constraint implementations. More...
#include <Constraint.h>
Public Member Functions | |
Constraint (unsigned int frequency, boost::mpi::communicator &comm) | |
Constructor. More... | |
virtual | ~Constraint () |
Destructor. | |
virtual void | PreSimulation (Snapshot *snapshot, const CVList &cvs) override=0 |
Method call prior to simulation initiation. More... | |
virtual void | PostIntegration (Snapshot *snapshot, const CVList &cvs) override=0 |
Method call post integration. More... | |
virtual void | PostSimulation (Snapshot *snapshot, const CVList &cvs) override=0 |
Method call post simulation. More... | |
![]() | |
EventListener (uint frequency) | |
Constructor. More... | |
uint | 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 Constraint * | BuildConstraint (const Json::Value &json, boost::mpi::communicator &comm) |
Build a constraint from a JSON node. More... | |
static Constraint * | BuildConstraint (const Json::Value &json, boost::mpi::communicator &comm, const std::string &path) |
Overloaded function allowing JSON path specification. More... | |
static void | BuildConstraint (const Json::Value &json, ConstraintList &clist, boost::mpi::communicator &comm, const std::string &path) |
Build constraint. More... | |
Protected Attributes | |
boost::mpi::communicator | comm_ |
MPI global communicator. | |
Interface for Constraint implementations.
Definition at line 41 of file Constraint.h.
|
inline |
Constructor.
frequency | Frequency of sampling. |
comm | MPI global communicator. |
Definition at line 55 of file Constraint.h.
|
static |
Build a constraint from a JSON node.
json | JSON value containing input information. |
comm | MPI communicator. |
nullptr
in case of an unknown error.This function builds a constraint from a JSON node. Returns a pointer to the built constraint. If an unknown error occured, the return value is nullptr
, but in general, a BuildException will be thrown on failure.
Definition at line 33 of file Constraint.cpp.
|
static |
Overloaded function allowing JSON path specification.
json | JSON value containing input information. |
comm | MPI global communicator. |
path | Path for JSON path specification. |
nullptr
in case of an unknown error. Definition at line 39 of file Constraint.cpp.
References Json::Requirement::GetErrors(), Json::Requirement::HasErrors(), Json::ObjectRequirement::Parse(), and Json::ObjectRequirement::Validate().
|
static |
Build constraint.
json | JSON value containing input information. |
clist | List of constraints. |
comm | MPI global communicator. |
path | Path for JSON path specification. |
This function builds a new constraint and adds it to the specified list of constraints. On failure, an exception is thrown.
Definition at line 102 of file Constraint.cpp.
References BuildConstraint(), Json::Requirement::GetErrors(), Json::Requirement::HasErrors(), Json::ArrayRequirement::Parse(), and Json::ArrayRequirement::Validate().
Referenced by BuildConstraint().
|
overridepure virtual |
Method call post integration.
snapshot | Pointer to current snapshot. |
cvs | List of CVs. |
Implemented in SSAGES::COPSSImage, and SSAGES::COPSS.
|
overridepure virtual |
Method call post simulation.
snapshot | Pointer to current snapshot. |
cvs | List of CVs. |
Implemented in SSAGES::COPSSImage, and SSAGES::COPSS.
|
overridepure virtual |
Method call prior to simulation initiation.
snapshot | Simulation snapshot. |
cvs | List of CVs. |
Implemented in SSAGES::COPSSImage, and SSAGES::COPSS.