All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
openfluid::ware::SimulationInspectorWare Class Reference

#include <ware/SimulationInspectorWare.hpp>

Inheritance diagram for openfluid::ware::SimulationInspectorWare:
openfluid::ware::SimulationDrivenWare openfluid::ware::PluggableWare openfluid::ware::PluggableObserver openfluid::ware::SimulationContributorWare openfluid::ware::PluggableSimulator openfluid::machine::Generator openfluid::machine::FixedGenerator openfluid::machine::InjectGenerator openfluid::machine::InterpGenerator openfluid::machine::RandomGenerator

Public Member Functions

virtual ~SimulationInspectorWare ()
 
void linkToCoreRepository (openfluid::core::CoreRepository *CoreRepos)
 
void linkToDatastore (openfluid::core::Datastore *DStore)
 
- Public Member Functions inherited from openfluid::ware::SimulationDrivenWare
virtual ~SimulationDrivenWare ()
 
void linkToSimulation (const openfluid::base::SimulationStatus *SimStatus)
 
void linkToSimulationLogger (openfluid::base::SimulationLogger *SimLogger)
 
void initializeWare (const WareID_t &ID)
 
void finalizeWare ()
 
void setPreviousTimeIndex (const openfluid::core::TimeIndex_t &TimeIndex)
 
- Public Member Functions inherited from openfluid::ware::PluggableWare
virtual ~PluggableWare ()
 
void linkToRunEnvironment (const openfluid::base::EnvironmentProperties *Env)
 

Protected Member Functions

virtual bool isLinked () const
 
bool OPENFLUID_IsAttributeExist (const openfluid::core::Unit *UnitPtr, const openfluid::core::AttributeName_t &AttrName) const
 
void OPENFLUID_GetAttribute (const openfluid::core::Unit *UnitPtr, const openfluid::core::AttributeName_t &AttrName, openfluid::core::StringValue &Val) const
 
void OPENFLUID_GetAttribute (const openfluid::core::Unit *UnitPtr, const openfluid::core::AttributeName_t &AttrName, openfluid::core::DoubleValue &Val) const
 
void OPENFLUID_GetAttribute (const openfluid::core::Unit *UnitPtr, const openfluid::core::AttributeName_t &AttrName, openfluid::core::VectorValue &Val) const
 
void OPENFLUID_GetAttribute (const openfluid::core::Unit *UnitPtr, const openfluid::core::AttributeName_t &AttrName, openfluid::core::MatrixValue &Val) const
 
void OPENFLUID_GetAttribute (const openfluid::core::Unit *UnitPtr, const openfluid::core::AttributeName_t &AttrName, double &Val) const
 
void OPENFLUID_GetAttribute (const openfluid::core::Unit *UnitPtr, const openfluid::core::AttributeName_t &AttrName, long &Val) const
 
void OPENFLUID_GetAttribute (const openfluid::core::Unit *UnitPtr, const openfluid::core::AttributeName_t &AttrName, std::string &Val) const
 
bool OPENFLUID_IsVariableExist (const openfluid::core::Unit *UnitPtr, const openfluid::core::VariableName_t &VarName) const
 
bool OPENFLUID_IsVariableExist (const openfluid::core::Unit *UnitPtr, const openfluid::core::VariableName_t &VarName, const openfluid::core::TimeIndex_t Index) const
 
bool OPENFLUID_IsVariableExist (const openfluid::core::Unit *UnitPtr, const openfluid::core::VariableName_t &VarName, const openfluid::core::TimeIndex_t Index, const openfluid::core::Value::Type ValueType) const
 
bool OPENFLUID_IsTypedVariableExist (const openfluid::core::Unit *UnitPtr, const openfluid::core::VariableName_t &VarName, const openfluid::core::Value::Type VarType) const
 
bool OPENFLUID_IsTypedVariableExist (const openfluid::core::Unit *UnitPtr, const openfluid::core::VariableName_t &VarName, const openfluid::core::TimeIndex_t Index, const openfluid::core::Value::Type VarType) const
 
void OPENFLUID_GetVariable (const openfluid::core::Unit *UnitPtr, const openfluid::core::VariableName_t &VarName, const openfluid::core::TimeIndex_t Index, openfluid::core::Value &Val) const
 
void OPENFLUID_GetVariable (const openfluid::core::Unit *UnitPtr, const openfluid::core::VariableName_t &VarName, const openfluid::core::TimeIndex_t Index, double &Val) const
 
void OPENFLUID_GetVariable (const openfluid::core::Unit *UnitPtr, const openfluid::core::VariableName_t &VarName, const openfluid::core::TimeIndex_t Index, long &Val) const
 
void OPENFLUID_GetVariable (const openfluid::core::Unit *UnitPtr, const openfluid::core::VariableName_t &VarName, const openfluid::core::TimeIndex_t Index, bool &Val) const
 
void OPENFLUID_GetVariable (const openfluid::core::Unit *UnitPtr, const openfluid::core::VariableName_t &VarName, const openfluid::core::TimeIndex_t Index, std::string &Val) const
 
void OPENFLUID_GetVariable (const openfluid::core::Unit *UnitPtr, const openfluid::core::VariableName_t &VarName, openfluid::core::Value &Val) const
 
void OPENFLUID_GetVariable (const openfluid::core::Unit *UnitPtr, const openfluid::core::VariableName_t &VarName, double &Val) const
 
void OPENFLUID_GetVariable (const openfluid::core::Unit *UnitPtr, const openfluid::core::VariableName_t &VarName, long &Val) const
 
void OPENFLUID_GetVariable (const openfluid::core::Unit *UnitPtr, const openfluid::core::VariableName_t &VarName, bool &Val) const
 
void OPENFLUID_GetVariable (const openfluid::core::Unit *UnitPtr, const openfluid::core::VariableName_t &VarName, std::string &Val) const
 
void OPENFLUID_GetLatestVariable (const openfluid::core::Unit *UnitPtr, const openfluid::core::VariableName_t &VarName, openfluid::core::IndexedValue &IndVal)
 
void OPENFLUID_GetLatestVariables (const openfluid::core::Unit *UnitPtr, const openfluid::core::VariableName_t &VarName, const openfluid::core::TimeIndex_t BeginIndex, openfluid::core::IndexedValueList &IndValList)
 
void OPENFLUID_GetVariables (const openfluid::core::Unit *UnitPtr, const openfluid::core::VariableName_t &VarName, const openfluid::core::TimeIndex_t BeginIndex, const openfluid::core::TimeIndex_t EndIndex, openfluid::core::IndexedValueList &IndValList)
 
void OPENFLUID_GetEvents (const openfluid::core::Unit *UnitPtr, const openfluid::core::DateTime BeginDate, const openfluid::core::DateTime EndDate, openfluid::core::EventsCollection &Events) const
 
bool OPENFLUID_IsUnitClassExist (openfluid::core::UnitClass_t ClassName) const
 
bool OPENFLUID_IsUnitExist (openfluid::core::UnitClass_t ClassName, openfluid::core::UnitID_t ID) const
 
void OPENFLUID_GetUnitsCount (unsigned int &UnitsCount) const
 
bool OPENFLUID_GetUnitsCount (const openfluid::core::UnitClass_t ClassName, unsigned int &UnitsCount) const
 
bool OPENFLUID_GetUnit (const openfluid::core::UnitClass_t &ClassName, const openfluid::core::UnitID_t &ID, openfluid::core::Unit *aUnit) const
 
openfluid::core::UnitOPENFLUID_GetUnit (const openfluid::core::UnitClass_t &ClassName, const openfluid::core::UnitID_t &ID) const
 
bool OPENFLUID_IsUnitConnectedTo (openfluid::core::Unit *aUnit, const openfluid::core::UnitClass_t &ClassNameTo, const openfluid::core::UnitID_t &IDTo) const
 
bool OPENFLUID_IsUnitConnectedFrom (openfluid::core::Unit *aUnit, const openfluid::core::UnitClass_t &ClassNameFrom, const openfluid::core::UnitID_t &IDFrom) const
 
bool OPENFLUID_IsUnitChildOf (openfluid::core::Unit *aUnit, const openfluid::core::UnitClass_t &ClassNameParent, const openfluid::core::UnitID_t &IDParent) const
 
bool OPENFLUID_IsUnitParentOf (openfluid::core::Unit *aUnit, const openfluid::core::UnitClass_t &ClassNameChild, const openfluid::core::UnitID_t &IDChild) const
 
 SimulationInspectorWare (WareType WType)
 
- Protected Member Functions inherited from openfluid::ware::SimulationDrivenWare
openfluid::core::DateTime OPENFLUID_GetBeginDate () const
 
openfluid::core::DateTime OPENFLUID_GetEndDate () const
 
openfluid::core::DateTime OPENFLUID_GetCurrentDate () const
 
openfluid::core::Duration_t OPENFLUID_GetSimulationDuration () const
 
openfluid::core::Duration_t OPENFLUID_GetDefaultDeltaT () const
 
openfluid::core::TimeIndex_t OPENFLUID_GetCurrentTimeIndex () const
 
openfluid::core::TimeIndex_t OPENFLUID_GetPreviousRunTimeIndex () const
 
openfluid::base::SimulationStatus::SimulationStage OPENFLUID_GetCurrentStage () const
 
openfluid::base::SimulationStatus::SchedulingConstraint OPENFLUID_GetSchedulingConstraint () const
 
virtual void OPENFLUID_RaiseWarning (const std::string &Msg)
 
virtual void OPENFLUID_RaiseWarning (const std::string &Source, const std::string &Msg)
 
virtual void OPENFLUID_RaiseError (const std::string &Msg)
 
virtual void OPENFLUID_RaiseError (const std::string &Source, const std::string &Msg)
 
 SimulationDrivenWare (WareType WType)
 
- Protected Member Functions inherited from openfluid::ware::PluggableWare
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

openfluid::core::CoreRepositorymp_CoreData
 
- Protected Attributes inherited from openfluid::ware::SimulationDrivenWare
openfluid::base::SimulationLoggermp_SimLogger
 
openfluid::base::StdoutAndFileOutputStream OPENFLUID_Logger
 
- Protected Attributes inherited from openfluid::ware::PluggableWare
bool m_Initialized
 
WareType m_WareType
 

Additional Inherited Members

- Public Types inherited from openfluid::ware::PluggableWare
enum  WareType { UNDEFINED, OBSERVER, SIMULATOR, OTHER }
 
- Static Public Member Functions inherited from openfluid::ware::PluggableWare
static bool isWellFormated (const openfluid::ware::WareParamKey_t &ParameterKey)
 
static boost::property_tree::ptree getParamsAsPropertyTree (const WareParams_t &Params)
 

Constructor & Destructor Documentation

openfluid::ware::SimulationInspectorWare::SimulationInspectorWare ( WareType  WType)
inlineprotected
virtual openfluid::ware::SimulationInspectorWare::~SimulationInspectorWare ( )
inlinevirtual

Member Function Documentation

virtual bool openfluid::ware::SimulationInspectorWare::isLinked ( ) const
inlineprotectedvirtual
void openfluid::ware::SimulationInspectorWare::linkToCoreRepository ( openfluid::core::CoreRepository CoreRepos)
inline
void openfluid::ware::SimulationInspectorWare::linkToDatastore ( openfluid::core::Datastore DStore)
inline
void openfluid::ware::SimulationInspectorWare::OPENFLUID_GetAttribute ( const openfluid::core::Unit UnitPtr,
const openfluid::core::AttributeName_t AttrName,
openfluid::core::StringValue Val 
) const
protected

Gets attribute for a unit, as a StringValue

Parameters
[in]UnitPtra Unit
[in]AttrNamethe name of the requested attribute
[out]Valthe value of the requested attribute
void openfluid::ware::SimulationInspectorWare::OPENFLUID_GetAttribute ( const openfluid::core::Unit UnitPtr,
const openfluid::core::AttributeName_t AttrName,
openfluid::core::DoubleValue Val 
) const
protected

Gets attribute for a unit, as a DoubleValue

Parameters
[in]UnitPtra Unit
[in]AttrNamethe name of the requested attribute
[out]Valthe value of the requested attribute
void openfluid::ware::SimulationInspectorWare::OPENFLUID_GetAttribute ( const openfluid::core::Unit UnitPtr,
const openfluid::core::AttributeName_t AttrName,
openfluid::core::VectorValue Val 
) const
protected

Gets attribute for a unit, as a VectorValue

Parameters
[in]UnitPtra Unit
[in]AttrNamethe name of the requested attribute
[out]Valthe value of the requested attribute
void openfluid::ware::SimulationInspectorWare::OPENFLUID_GetAttribute ( const openfluid::core::Unit UnitPtr,
const openfluid::core::AttributeName_t AttrName,
openfluid::core::MatrixValue Val 
) const
protected

Gets attribute for a unit, as a MatrixValue

Parameters
[in]UnitPtra Unit
[in]AttrNamethe name of the requested attribute
[out]Valthe value of the requested attribute
void openfluid::ware::SimulationInspectorWare::OPENFLUID_GetAttribute ( const openfluid::core::Unit UnitPtr,
const openfluid::core::AttributeName_t AttrName,
double &  Val 
) const
protected

Gets attribute for a unit, as a double

Parameters
[in]UnitPtra Unit
[in]AttrNamethe name of the requested attribute
[out]Valthe value of the requested attribute
void openfluid::ware::SimulationInspectorWare::OPENFLUID_GetAttribute ( const openfluid::core::Unit UnitPtr,
const openfluid::core::AttributeName_t AttrName,
long &  Val 
) const
protected

Gets attribute for a unit, as a long integer

Parameters
[in]UnitPtra Unit
[in]AttrNamethe name of the requested attribute
[out]Valthe value of the requested attribute
void openfluid::ware::SimulationInspectorWare::OPENFLUID_GetAttribute ( const openfluid::core::Unit UnitPtr,
const openfluid::core::AttributeName_t AttrName,
std::string &  Val 
) const
protected

Gets attribute for a unit, as a string

Parameters
[in]UnitPtra Unit
[in]AttrNamethe name of the requested attribute
[out]Valthe value of the requested attribute
void openfluid::ware::SimulationInspectorWare::OPENFLUID_GetEvents ( const openfluid::core::Unit UnitPtr,
const openfluid::core::DateTime  BeginDate,
const openfluid::core::DateTime  EndDate,
openfluid::core::EventsCollection Events 
) const
protected

Gets discrete events happening on a unit during a time period

Parameters
[in]UnitPtra Unit
[in]BeginDatethe beginning of the time period
[in]EndDatethe ending of the time period
[out]Eventsthe collection of event corresponding to the request
void openfluid::ware::SimulationInspectorWare::OPENFLUID_GetLatestVariable ( const openfluid::core::Unit UnitPtr,
const openfluid::core::VariableName_t VarName,
openfluid::core::IndexedValue IndVal 
)
protected

Gets the latest available variable for a unit

Parameters
[in]UnitPtra Unit
[in]VarNamethe name of the requested variable
[out]IndValthe value and timeindex of the requested variable
void openfluid::ware::SimulationInspectorWare::OPENFLUID_GetLatestVariables ( const openfluid::core::Unit UnitPtr,
const openfluid::core::VariableName_t VarName,
const openfluid::core::TimeIndex_t  BeginIndex,
openfluid::core::IndexedValueList IndValList 
)
protected

Gets the latest available variables for a unit since the given time index

Parameters
[in]UnitPtra Unit
[in]VarNamethe name of the requested variable
[in]BeginIndexThe beginning time index of the search period
[out]IndValListthe list of time-indexed values of the requested variable
bool openfluid::ware::SimulationInspectorWare::OPENFLUID_GetUnit ( const openfluid::core::UnitClass_t ClassName,
const openfluid::core::UnitID_t ID,
openfluid::core::Unit aUnit 
) const
protected

Returns a pointer to the queried unit if exists

Parameters
[in]ClassNamethe queried class name
[in]IDthe queried unit ID
[out]aUnita pointer to the requested Unit, NULL if the unit does not exist
Returns
false if the unit does not exist
openfluid::core::Unit* openfluid::ware::SimulationInspectorWare::OPENFLUID_GetUnit ( const openfluid::core::UnitClass_t ClassName,
const openfluid::core::UnitID_t ID 
) const
protected
void openfluid::ware::SimulationInspectorWare::OPENFLUID_GetUnitsCount ( unsigned int &  UnitsCount) const
protected

Returns the total number of units

Parameters
[out]UnitsCountthe queried class name
bool openfluid::ware::SimulationInspectorWare::OPENFLUID_GetUnitsCount ( const openfluid::core::UnitClass_t  ClassName,
unsigned int &  UnitsCount 
) const
protected

Returns the number of units of the class if the queried unit class exists

Parameters
[in]ClassNamethe queried class name
[out]UnitsCountthe queried class name
Returns
false if the unit class does not exist
void openfluid::ware::SimulationInspectorWare::OPENFLUID_GetVariable ( const openfluid::core::Unit UnitPtr,
const openfluid::core::VariableName_t VarName,
const openfluid::core::TimeIndex_t  Index,
openfluid::core::Value Val 
) const
protected

Gets the distributed variable value for a unit at a time index

Parameters
[in]UnitPtra Unit
[in]VarNamethe name of the requested variable
[in]Indexthe time index for the value of the requested variable
[out]Valthe value of the requested variable
void openfluid::ware::SimulationInspectorWare::OPENFLUID_GetVariable ( const openfluid::core::Unit UnitPtr,
const openfluid::core::VariableName_t VarName,
const openfluid::core::TimeIndex_t  Index,
double &  Val 
) const
protected

Gets the distributed variable value for a unit at a time index

Parameters
[in]UnitPtra Unit
[in]VarNamethe name of the requested variable
[in]Indexthe time index for the value of the requested variable
[out]Valthe value of the requested variable
void openfluid::ware::SimulationInspectorWare::OPENFLUID_GetVariable ( const openfluid::core::Unit UnitPtr,
const openfluid::core::VariableName_t VarName,
const openfluid::core::TimeIndex_t  Index,
long &  Val 
) const
protected

Gets the distributed variable value for a unit at a time index

Parameters
[in]UnitPtra Unit
[in]VarNamethe name of the requested variable
[in]Indexthe time index for the value of the requested variable
[out]Valthe value of the requested variable
void openfluid::ware::SimulationInspectorWare::OPENFLUID_GetVariable ( const openfluid::core::Unit UnitPtr,
const openfluid::core::VariableName_t VarName,
const openfluid::core::TimeIndex_t  Index,
bool &  Val 
) const
protected

Gets the distributed variable value for a unit at a time index

Parameters
[in]UnitPtra Unit
[in]VarNamethe name of the requested variable
[in]Indexthe time index for the value of the requested variable
[out]Valthe value of the requested variable
void openfluid::ware::SimulationInspectorWare::OPENFLUID_GetVariable ( const openfluid::core::Unit UnitPtr,
const openfluid::core::VariableName_t VarName,
const openfluid::core::TimeIndex_t  Index,
std::string &  Val 
) const
protected

Gets the distributed variable value for a unit at a time index

Parameters
[in]UnitPtra Unit
[in]VarNamethe name of the requested variable
[in]Indexthe time index for the value of the requested variable
[out]Valthe value of the requested variable
void openfluid::ware::SimulationInspectorWare::OPENFLUID_GetVariable ( const openfluid::core::Unit UnitPtr,
const openfluid::core::VariableName_t VarName,
openfluid::core::Value Val 
) const
protected

Gets the distributed variable value for a unit at the current time index

Parameters
[in]UnitPtra Unit
[in]VarNamethe name of the requested variable
[out]Valthe value of the requested variable
void openfluid::ware::SimulationInspectorWare::OPENFLUID_GetVariable ( const openfluid::core::Unit UnitPtr,
const openfluid::core::VariableName_t VarName,
double &  Val 
) const
protected

Gets the distributed variable value for a unit at the current time index

Parameters
[in]UnitPtra Unit
[in]VarNamethe name of the requested variable
[out]Valthe value of the requested variable
void openfluid::ware::SimulationInspectorWare::OPENFLUID_GetVariable ( const openfluid::core::Unit UnitPtr,
const openfluid::core::VariableName_t VarName,
long &  Val 
) const
protected

Gets the distributed variable value for a unit at the current time index

Parameters
[in]UnitPtra Unit
[in]VarNamethe name of the requested variable
[out]Valthe value of the requested variable
void openfluid::ware::SimulationInspectorWare::OPENFLUID_GetVariable ( const openfluid::core::Unit UnitPtr,
const openfluid::core::VariableName_t VarName,
bool &  Val 
) const
protected

Gets the distributed variable value for a unit at the current time index

Parameters
[in]UnitPtra Unit
[in]VarNamethe name of the requested variable
[out]Valthe value of the requested variable
void openfluid::ware::SimulationInspectorWare::OPENFLUID_GetVariable ( const openfluid::core::Unit UnitPtr,
const openfluid::core::VariableName_t VarName,
std::string &  Val 
) const
protected

Gets the distributed variable value for a unit at the current time index

Parameters
[in]UnitPtra Unit
[in]VarNamethe name of the requested variable
[out]Valthe value of the requested variable
void openfluid::ware::SimulationInspectorWare::OPENFLUID_GetVariables ( const openfluid::core::Unit UnitPtr,
const openfluid::core::VariableName_t VarName,
const openfluid::core::TimeIndex_t  BeginIndex,
const openfluid::core::TimeIndex_t  EndIndex,
openfluid::core::IndexedValueList IndValList 
)
protected

Gets the available variables for a unit during a given period (between two time indexes)

Parameters
[in]UnitPtra Unit
[in]VarNamethe name of the requested variable
[in]BeginIndexthe time index for the beginning of the period
[in]EndIndexthe time index for the end of the period
[out]IndValListthe list of time-indexed values of the requested variable
bool openfluid::ware::SimulationInspectorWare::OPENFLUID_IsAttributeExist ( const openfluid::core::Unit UnitPtr,
const openfluid::core::AttributeName_t AttrName 
) const
protected

Returns true if a distributed attribute exists, false otherwise

Parameters
[in]UnitPtra Unit
[in]AttrNamethe name of the queried attribute
bool openfluid::ware::SimulationInspectorWare::OPENFLUID_IsTypedVariableExist ( const openfluid::core::Unit UnitPtr,
const openfluid::core::VariableName_t VarName,
const openfluid::core::Value::Type  VarType 
) const
protected

Returns true if a distributed variable exists and if the type set for this variable is the given type, false otherwise

Parameters
[in]UnitPtra Unit
[in]VarNamethe name of the requested variable
[in]VarTypethe type of the variable
bool openfluid::ware::SimulationInspectorWare::OPENFLUID_IsTypedVariableExist ( const openfluid::core::Unit UnitPtr,
const openfluid::core::VariableName_t VarName,
const openfluid::core::TimeIndex_t  Index,
const openfluid::core::Value::Type  VarType 
) const
protected

Returns true if a distributed variable exists and if a value has been set for the given index and if the type set for this variable is the given type, false otherwise

Parameters
[in]UnitPtra Unit
[in]VarNamethe name of the requested variable
[in]Indexthe time index for the value of the variable
[in]VarTypethe type of the variable
bool openfluid::ware::SimulationInspectorWare::OPENFLUID_IsUnitChildOf ( openfluid::core::Unit aUnit,
const openfluid::core::UnitClass_t ClassNameParent,
const openfluid::core::UnitID_t IDParent 
) const
protected

Returns true if a given unit is "a child of" another unit

Parameters
[in]aUnitthe given unit
[in]ClassNameParentthe class name of the other unit to test
[in]IDParentthe ID of the other unit to test
Returns
true if the given unit is "a child of" the other unit
bool openfluid::ware::SimulationInspectorWare::OPENFLUID_IsUnitClassExist ( openfluid::core::UnitClass_t  ClassName) const
protected

Returns true if the queried unit class exists

Parameters
[in]ClassNamethe queried class name
bool openfluid::ware::SimulationInspectorWare::OPENFLUID_IsUnitConnectedFrom ( openfluid::core::Unit aUnit,
const openfluid::core::UnitClass_t ClassNameFrom,
const openfluid::core::UnitID_t IDFrom 
) const
protected

Returns true if a given unit is connected "from" another unit

Parameters
[in]aUnitthe given unit
[in]ClassNameFromthe class name of the other unit to test
[in]IDFromthe ID of the other unit to test
Returns
true if the given unit is connected "from" the other unit
bool openfluid::ware::SimulationInspectorWare::OPENFLUID_IsUnitConnectedTo ( openfluid::core::Unit aUnit,
const openfluid::core::UnitClass_t ClassNameTo,
const openfluid::core::UnitID_t IDTo 
) const
protected

Returns true if a given unit is connected "to" another unit

Parameters
[in]aUnitthe given unit
[in]ClassNameTothe class name of the other unit to test
[in]IDTothe ID of the other unit to test
Returns
true if the given unit is connected "to" the other unit
bool openfluid::ware::SimulationInspectorWare::OPENFLUID_IsUnitExist ( openfluid::core::UnitClass_t  ClassName,
openfluid::core::UnitID_t  ID 
) const
protected

Returns true if the queried unit exists

Parameters
[in]ClassNamethe class of the queried unit
[in]IDthe ID of the queried unit
bool openfluid::ware::SimulationInspectorWare::OPENFLUID_IsUnitParentOf ( openfluid::core::Unit aUnit,
const openfluid::core::UnitClass_t ClassNameChild,
const openfluid::core::UnitID_t IDChild 
) const
protected

Returns true if a given unit is "parent of" another unit

Parameters
[in]aUnitthe given unit
[in]ClassNameChildthe class name of the other unit to test
[in]IDChildthe ID of the other unit to test
Returns
true if the given unit is "parent of" the other unit
bool openfluid::ware::SimulationInspectorWare::OPENFLUID_IsVariableExist ( const openfluid::core::Unit UnitPtr,
const openfluid::core::VariableName_t VarName 
) const
protected

Returns true if a distributed variable exists, false otherwise

Parameters
[in]UnitPtra Unit
[in]VarNamethe name of the requested variable
bool openfluid::ware::SimulationInspectorWare::OPENFLUID_IsVariableExist ( const openfluid::core::Unit UnitPtr,
const openfluid::core::VariableName_t VarName,
const openfluid::core::TimeIndex_t  Index 
) const
protected

Returns true if a distributed variable exists and if a value has been set for the given index, false otherwise

Parameters
[in]UnitPtra Unit
[in]VarNamethe name of the requested variable
[in]Indexthe time index for the value of the variable
bool openfluid::ware::SimulationInspectorWare::OPENFLUID_IsVariableExist ( const openfluid::core::Unit UnitPtr,
const openfluid::core::VariableName_t VarName,
const openfluid::core::TimeIndex_t  Index,
const openfluid::core::Value::Type  ValueType 
) const
protected

Returns true if a distributed variable exists and if a value has been set for the given index and if the value type is the given type, false otherwise

Parameters
[in]UnitPtra Unit
[in]VarNamethe name of the requested variable
[in]Indexthe time index for the value of the variable
[in]ValueTypethe type of the value

Member Data Documentation

openfluid::core::CoreRepository* openfluid::ware::SimulationInspectorWare::mp_CoreData
protected

Pointer to the core repository (const). It should be used with care. Prefer to use the OPENFLUID_Xxxx methods.


The documentation for this class was generated from the following file: