All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
openfluid::ware::PluggableWare Class Reference

#include <ware/PluggableWare.hpp>

Inheritance diagram for openfluid::ware::PluggableWare:
openfluid::builderext::PluggableBuilderExtension openfluid::ware::SimulationDrivenWare openfluid::builderext::PluggableModalExtension openfluid::builderext::PluggableModelessExtension openfluid::builderext::PluggableWorkspaceExtension openfluid::ware::SimulationInspectorWare openfluid::ware::PluggableObserver openfluid::ware::SimulationContributorWare openfluid::ware::PluggableSimulator openfluid::machine::Generator openfluid::machine::FixedGenerator openfluid::machine::InjectGenerator openfluid::machine::InterpGenerator openfluid::machine::RandomGenerator

List of all members.

Public Types

enum  WareType { UNDEFINED, OBSERVER, SIMULATOR, OTHER }

Public Member Functions

virtual ~PluggableWare ()
void linkToRunEnvironment (const openfluid::base::EnvironmentProperties *Env)
virtual void initializeWare (const WareID_t &ID)
virtual void finalizeWare ()

Static Public Member Functions

static bool isWellFormated (const openfluid::ware::WareParamKey_t &ParameterKey)
static boost::property_tree::ptree getParamsAsPropertyTree (const WareParams_t &Params)

Protected Member Functions

virtual bool isLinked () const
virtual void OPENFLUID_RaiseError (const std::string &Msg)
bool OPENFLUID_GetRunEnvironment (std::string Key, std::string &Val)
bool OPENFLUID_GetRunEnvironment (std::string Key, bool &Val)
WareID_t OPENFLUID_GetWareID () const
 PluggableWare (WareType WType)

Protected Attributes

bool m_Initialized
WareType m_WareType

Member Enumeration Documentation

Enumerator:
UNDEFINED 
OBSERVER 
SIMULATOR 
OTHER 

Constructor & Destructor Documentation


Member Function Documentation

static boost::property_tree::ptree openfluid::ware::PluggableWare::getParamsAsPropertyTree ( const WareParams_t Params) [static]
virtual void openfluid::ware::PluggableWare::initializeWare ( const WareID_t ID) [virtual]
virtual bool openfluid::ware::PluggableWare::isLinked ( ) const [inline, protected, virtual]

Return false if ParameterKey starts nor ends with a dot, true otherwise

bool openfluid::ware::PluggableWare::OPENFLUID_GetRunEnvironment ( std::string  Key,
std::string &  Val 
) [protected]

Gets an environment string value associated to a Key

Parameters:
[in]Keythe sender of the message
[out]Valthe value associated with the environment key
bool openfluid::ware::PluggableWare::OPENFLUID_GetRunEnvironment ( std::string  Key,
bool &  Val 
) [protected]

Gets an environment boolean value associated to a Key

Parameters:
[in]Keythe sender of the message
[out]Valthe value associated with the environment key

Returns the ID of the ware (itself)

Returns:
the ID
virtual void openfluid::ware::PluggableWare::OPENFLUID_RaiseError ( const std::string &  Msg) [protected, virtual]

Raises an error message to the kernel. This stops the simulation the next time the kernel has the control

Parameters:
[in]Msgthe content of the message

Reimplemented in openfluid::ware::SimulationDrivenWare.


Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines