SSAGES
0.9.3
Software Suite for Advanced General Ensemble Simulations
|
Requirements on an object. More...
#include <ObjectRequirement.h>
Public Member Functions | |
ObjectRequirement () | |
Constructor. | |
~ObjectRequirement () | |
Destructor. | |
virtual void | ClearErrors () override |
Clear errors on all Requirements. | |
virtual void | ClearNotices () override |
Clear notices on all Requirements. | |
virtual void | Reset () override |
Reset Requirement. | |
virtual void | Parse (Value json, const std::string &path) override |
Parse JSON value to generate Requirement(s). More... | |
virtual void | Validate (const Value &json, const std::string &path) override |
Validate JSON value. More... | |
Public Member Functions inherited from Json::Requirement | |
bool | HasErrors () |
Check if errors have occured. More... | |
std::vector< std::string > | GetErrors () |
Get list of error messages. More... | |
virtual bool | HasNotices () |
Check if notices have been queued. More... | |
std::vector< std::string > | GetNotices () |
Get list of notices. More... | |
virtual | ~Requirement () |
Destructor. | |
Private Attributes | |
std::map< std::string, std::unique_ptr< Requirement > > | properties_ |
Map of properties the object needs to have. | |
std::map< std::string, std::unique_ptr< Requirement > > | patternProps_ |
Map of patterns the object needs to match. | |
RequireList | extended_ |
List of requirements. | |
std::unique_ptr< DependencyRequirement > | dependency_ |
Dependency requirement. | |
std::vector< std::string > | required_ |
List of requirements. | |
bool | moreProps_ |
If True , more properties need to be set. | |
bool | setMin_ |
If True lower bound is active. | |
bool | setMax_ |
If True upper bound is active. | |
unsigned int | min_ |
Lower bound. | |
unsigned int | max_ |
Upper bound. | |
Additional Inherited Members | |
Protected Member Functions inherited from Json::Requirement | |
void | PushError (const std::string &error) |
Add error to list of error messages. More... | |
void | PushNotice (const std::string ¬ice) |
Add message to list of notices. More... | |
Requirements on an object.
Definition at line 46 of file ObjectRequirement.h.
|
inlineoverridevirtual |
Parse JSON value to generate Requirement(s).
Implements Json::Requirement.
Definition at line 142 of file ObjectRequirement.h.
References dependency_, extended_, Json::RequirementLoader::LoadExtended(), Json::RequirementLoader::LoadRequirement(), max_, min_, moreProps_, patternProps_, properties_, required_, Reset(), setMax_, and setMin_.
Referenced by SSAGES::ResourceHandler::Build(), SSAGES::Logger::Build(), SSAGES::ABF::Build(), SSAGES::ANN::Build(), SSAGES::BFS::Build(), SSAGES::CFF::Build(), SSAGES::ForwardFlux::Build(), SSAGES::Meta::Build(), SSAGES::StringMethod::Build(), SSAGES::Umbrella::Build(), SSAGES::AlphaRMSDCV::Build(), SSAGES::AngleCV::Build(), SSAGES::ANNCV::Build(), SSAGES::AntiBetaRMSDCV::Build(), SSAGES::BoxVolumeCV::Build(), SSAGES::GyrationTensorCV::Build(), SSAGES::PairwiseCV::Build(), SSAGES::ParallelBetaRMSDCV::Build(), SSAGES::ParticleCoordinateCV::Build(), SSAGES::ParticlePositionCV::Build(), SSAGES::ParticleSeparationCV::Build(), SSAGES::RMSDCV::Build(), SSAGES::RouseModeCV::Build(), SSAGES::TorsionalCV::Build(), SSAGES::GaussianPK::Build(), SSAGES::RationalSwitchPK::Build(), SSAGES::Chebyshev::Build(), SSAGES::Legendre::Build(), SSAGES::Fourier::Build(), SSAGES::Grid< T >::BuildGrid(), and SSAGES::Method::BuildMethod().
|
inlineoverridevirtual |
Validate JSON value.
Implements Json::Requirement.
Definition at line 239 of file ObjectRequirement.h.
References dependency_, extended_, Json::Requirement::GetErrors(), Json::Requirement::GetNotices(), Json::Requirement::HasErrors(), Json::Requirement::HasNotices(), max_, min_, moreProps_, patternProps_, properties_, Json::Requirement::PushError(), Json::Requirement::PushNotice(), required_, setMax_, setMin_, and Json::Requirement::Validate().
Referenced by SSAGES::ResourceHandler::Build(), SSAGES::Logger::Build(), SSAGES::ABF::Build(), SSAGES::ANN::Build(), SSAGES::BFS::Build(), SSAGES::CFF::Build(), SSAGES::ForwardFlux::Build(), SSAGES::Meta::Build(), SSAGES::StringMethod::Build(), SSAGES::Umbrella::Build(), SSAGES::AlphaRMSDCV::Build(), SSAGES::AngleCV::Build(), SSAGES::ANNCV::Build(), SSAGES::AntiBetaRMSDCV::Build(), SSAGES::BoxVolumeCV::Build(), SSAGES::GyrationTensorCV::Build(), SSAGES::PairwiseCV::Build(), SSAGES::ParallelBetaRMSDCV::Build(), SSAGES::ParticleCoordinateCV::Build(), SSAGES::ParticlePositionCV::Build(), SSAGES::ParticleSeparationCV::Build(), SSAGES::RMSDCV::Build(), SSAGES::RouseModeCV::Build(), SSAGES::TorsionalCV::Build(), SSAGES::GaussianPK::Build(), SSAGES::RationalSwitchPK::Build(), SSAGES::Chebyshev::Build(), SSAGES::Legendre::Build(), SSAGES::Fourier::Build(), SSAGES::Grid< T >::BuildGrid(), and SSAGES::Method::BuildMethod().