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:
Inheritance graph
[legend]
Collaboration diagram for openfluid::ware::SimulationInspectorWare:
Collaboration graph
[legend]

Public Member Functions

virtual ~SimulationInspectorWare ()
 
void linkToSpatialGraph (openfluid::core::SpatialGraph *SGraph)
 
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::core::MapValue *Env)
 

Protected Member Functions

virtual bool isLinked () const
 
bool OPENFLUID_IsAttributeExist (const openfluid::core::SpatialUnit *UnitPtr, const openfluid::core::AttributeName_t &AttrName) const
 
void OPENFLUID_GetAttribute (const openfluid::core::SpatialUnit *UnitPtr, const openfluid::core::AttributeName_t &AttrName, openfluid::core::Value &Val) const
 
void OPENFLUID_GetAttribute (const openfluid::core::SpatialUnit *UnitPtr, const openfluid::core::AttributeName_t &AttrName, double &Val) const
 
void OPENFLUID_GetAttribute (const openfluid::core::SpatialUnit *UnitPtr, const openfluid::core::AttributeName_t &AttrName, long &Val) const
 
void OPENFLUID_GetAttribute (const openfluid::core::SpatialUnit *UnitPtr, const openfluid::core::AttributeName_t &AttrName, std::string &Val) const
 
const openfluid::core::ValueOPENFLUID_GetAttribute (const openfluid::core::SpatialUnit *UnitPtr, const openfluid::core::AttributeName_t &AttrName) const
 
bool OPENFLUID_IsVariableExist (const openfluid::core::SpatialUnit *UnitPtr, const openfluid::core::VariableName_t &VarName) const
 
bool OPENFLUID_IsVariableExist (const openfluid::core::SpatialUnit *UnitPtr, const openfluid::core::VariableName_t &VarName, const openfluid::core::TimeIndex_t Index) const
 
bool OPENFLUID_IsVariableExist (const openfluid::core::SpatialUnit *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::SpatialUnit *UnitPtr, const openfluid::core::VariableName_t &VarName, const openfluid::core::Value::Type VarType) const
 
bool OPENFLUID_IsTypedVariableExist (const openfluid::core::SpatialUnit *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::SpatialUnit *UnitPtr, const openfluid::core::VariableName_t &VarName, const openfluid::core::TimeIndex_t Index, openfluid::core::Value &Val) const
 
void OPENFLUID_GetVariable (const openfluid::core::SpatialUnit *UnitPtr, const openfluid::core::VariableName_t &VarName, const openfluid::core::TimeIndex_t Index, double &Val) const
 
void OPENFLUID_GetVariable (const openfluid::core::SpatialUnit *UnitPtr, const openfluid::core::VariableName_t &VarName, const openfluid::core::TimeIndex_t Index, long &Val) const
 
void OPENFLUID_GetVariable (const openfluid::core::SpatialUnit *UnitPtr, const openfluid::core::VariableName_t &VarName, const openfluid::core::TimeIndex_t Index, bool &Val) const
 
void OPENFLUID_GetVariable (const openfluid::core::SpatialUnit *UnitPtr, const openfluid::core::VariableName_t &VarName, const openfluid::core::TimeIndex_t Index, std::string &Val) const
 
const openfluid::core::ValueOPENFLUID_GetVariable (const openfluid::core::SpatialUnit *UnitPtr, const openfluid::core::VariableName_t &VarName, const openfluid::core::TimeIndex_t Index) const
 
void OPENFLUID_GetVariable (const openfluid::core::SpatialUnit *UnitPtr, const openfluid::core::VariableName_t &VarName, openfluid::core::Value &Val) const
 
void OPENFLUID_GetVariable (const openfluid::core::SpatialUnit *UnitPtr, const openfluid::core::VariableName_t &VarName, double &Val) const
 
void OPENFLUID_GetVariable (const openfluid::core::SpatialUnit *UnitPtr, const openfluid::core::VariableName_t &VarName, long &Val) const
 
void OPENFLUID_GetVariable (const openfluid::core::SpatialUnit *UnitPtr, const openfluid::core::VariableName_t &VarName, bool &Val) const
 
void OPENFLUID_GetVariable (const openfluid::core::SpatialUnit *UnitPtr, const openfluid::core::VariableName_t &VarName, std::string &Val) const
 
const openfluid::core::ValueOPENFLUID_GetVariable (const openfluid::core::SpatialUnit *UnitPtr, const openfluid::core::VariableName_t &VarName) const
 
void OPENFLUID_GetLatestVariable (const openfluid::core::SpatialUnit *UnitPtr, const openfluid::core::VariableName_t &VarName, openfluid::core::IndexedValue &IndVal) const
 
openfluid::core::IndexedValue OPENFLUID_GetLatestVariable (const openfluid::core::SpatialUnit *UnitPtr, const openfluid::core::VariableName_t &VarName) const
 
void OPENFLUID_GetLatestVariables (const openfluid::core::SpatialUnit *UnitPtr, const openfluid::core::VariableName_t &VarName, const openfluid::core::TimeIndex_t BeginIndex, openfluid::core::IndexedValueList &IndValList) const
 
openfluid::core::IndexedValueList OPENFLUID_GetLatestVariables (const openfluid::core::SpatialUnit *UnitPtr, const openfluid::core::VariableName_t &VarName, const openfluid::core::TimeIndex_t BeginIndex) const
 
void OPENFLUID_GetVariables (const openfluid::core::SpatialUnit *UnitPtr, const openfluid::core::VariableName_t &VarName, const openfluid::core::TimeIndex_t BeginIndex, const openfluid::core::TimeIndex_t EndIndex, openfluid::core::IndexedValueList &IndValList) const
 
openfluid::core::IndexedValueList OPENFLUID_GetVariables (const openfluid::core::SpatialUnit *UnitPtr, const openfluid::core::VariableName_t &VarName, const openfluid::core::TimeIndex_t BeginIndex, const openfluid::core::TimeIndex_t EndIndex) const
 
void OPENFLUID_GetEvents (const openfluid::core::SpatialUnit *UnitPtr, const openfluid::core::DateTime BeginDate, const openfluid::core::DateTime EndDate, openfluid::core::EventsCollection &Events) const
 
openfluid::core::EventsCollection OPENFLUID_GetEvents (const openfluid::core::SpatialUnit *UnitPtr, const openfluid::core::DateTime BeginDate, const openfluid::core::DateTime EndDate) const
 
bool OPENFLUID_IsUnitsClassExist (const openfluid::core::UnitsClass_t &ClassName) const
 
bool OPENFLUID_IsUnitClassExist (const openfluid::core::UnitsClass_t &ClassName) const OPENFLUID_DEPRECATED
 
bool OPENFLUID_IsUnitExist (const openfluid::core::UnitsClass_t &ClassName, openfluid::core::UnitID_t ID) const
 
void OPENFLUID_GetUnitsCount (unsigned int &UnitsCount) const
 
unsigned int OPENFLUID_GetUnitsCount () const
 
bool OPENFLUID_GetUnitsCount (const openfluid::core::UnitsClass_t &ClassName, unsigned int &UnitsCount) const
 
unsigned int OPENFLUID_GetUnitsCount (const openfluid::core::UnitsClass_t &ClassName) const
 
bool OPENFLUID_GetUnit (const openfluid::core::UnitsClass_t &ClassName, const openfluid::core::UnitID_t &ID, openfluid::core::SpatialUnit *aUnit) const
 
openfluid::core::SpatialUnitOPENFLUID_GetUnit (const openfluid::core::UnitsClass_t &ClassName, const openfluid::core::UnitID_t &ID) const
 
openfluid::core::UnitsPtrList_t OPENFLUID_GetUnits (const openfluid::core::UnitsClass_t &ClassName)
 
bool OPENFLUID_IsUnitConnectedTo (openfluid::core::SpatialUnit *aUnit, const openfluid::core::UnitsClass_t &ClassNameTo, const openfluid::core::UnitID_t &IDTo) const
 
bool OPENFLUID_IsUnitConnectedFrom (openfluid::core::SpatialUnit *aUnit, const openfluid::core::UnitsClass_t &ClassNameFrom, const openfluid::core::UnitID_t &IDFrom) const
 
bool OPENFLUID_IsUnitChildOf (openfluid::core::SpatialUnit *aUnit, const openfluid::core::UnitsClass_t &ClassNameParent, const openfluid::core::UnitID_t &IDParent) const
 
bool OPENFLUID_IsUnitParentOf (openfluid::core::SpatialUnit *aUnit, const openfluid::core::UnitsClass_t &ClassNameChild, const openfluid::core::UnitID_t &IDChild) const
 
 SimulationInspectorWare (WareType WType)
 
- Protected Member Functions inherited from openfluid::ware::SimulationDrivenWare
void appendToLog (openfluid::tools::FileLogger::LogType LType, const std::string &Msg) const
 
void displayToConsole (openfluid::tools::FileLogger::LogType LType, const std::string &Msg) const
 
openfluid::base::ExceptionContext computeWareContext (const std::string &CodeLoc="") const
 
openfluid::base::ExceptionContext computeFrameworkContext (const std::string &CodeLoc="") const
 
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
 
std::string OPENFLUID_GetCurrentStageAsString () 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) OPENFLUID_DEPRECATED
 
virtual void OPENFLUID_RaiseError (const std::string &Msg)
 
virtual void OPENFLUID_RaiseError (const std::string &Source, const std::string &Msg) OPENFLUID_DEPRECATED
 
 SimulationDrivenWare (WareType WType)
 
- Protected Member Functions inherited from openfluid::ware::PluggableWare
bool OPENFLUID_GetRunEnvironment (const std::string &Key, std::string &Val)
 
bool OPENFLUID_GetRunEnvironment (const std::string &Key, bool &Val)
 
WareID_t OPENFLUID_GetWareID () const
 
WareType OPENFLUID_GetWareType () const
 
 PluggableWare (WareType WType)
 

Protected Attributes

openfluid::core::SpatialGraphmp_SpatialData
 
- Protected Attributes inherited from openfluid::ware::PluggableWare
bool m_Initialized
 

Additional Inherited Members

- Static Public Member Functions inherited from openfluid::ware::PluggableWare
static bool isWellFormated (const openfluid::ware::WareParamKey_t &ParameterKey)
 

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::linkToDatastore ( openfluid::core::Datastore DStore)
inline
void openfluid::ware::SimulationInspectorWare::linkToSpatialGraph ( openfluid::core::SpatialGraph SGraph)
inline
void openfluid::ware::SimulationInspectorWare::OPENFLUID_GetAttribute ( const openfluid::core::SpatialUnit UnitPtr,
const openfluid::core::AttributeName_t AttrName,
openfluid::core::Value Val 
) const
protected

Gets attribute for a unit

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::SpatialUnit 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::SpatialUnit 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::SpatialUnit 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
const openfluid::core::Value* openfluid::ware::SimulationInspectorWare::OPENFLUID_GetAttribute ( const openfluid::core::SpatialUnit UnitPtr,
const openfluid::core::AttributeName_t AttrName 
) const
protected

Returns attribute for a unit, as a StringValue

Parameters
[in]UnitPtra Unit
[in]AttrNamethe name of the requested attribute
Returns
constant pointer to the value of the requested attribute
void openfluid::ware::SimulationInspectorWare::OPENFLUID_GetEvents ( const openfluid::core::SpatialUnit 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
openfluid::core::EventsCollection openfluid::ware::SimulationInspectorWare::OPENFLUID_GetEvents ( const openfluid::core::SpatialUnit UnitPtr,
const openfluid::core::DateTime  BeginDate,
const openfluid::core::DateTime  EndDate 
) const
protected

Returns 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
Returns
the collection of event corresponding to the request
void openfluid::ware::SimulationInspectorWare::OPENFLUID_GetLatestVariable ( const openfluid::core::SpatialUnit UnitPtr,
const openfluid::core::VariableName_t VarName,
openfluid::core::IndexedValue IndVal 
) const
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
openfluid::core::IndexedValue openfluid::ware::SimulationInspectorWare::OPENFLUID_GetLatestVariable ( const openfluid::core::SpatialUnit UnitPtr,
const openfluid::core::VariableName_t VarName 
) const
protected

Returns the latest available variable for a unit

Parameters
[in]UnitPtra Unit
[in]VarNamethe name of the requested variable
Returns
the value and timeindex of the requested variable
void openfluid::ware::SimulationInspectorWare::OPENFLUID_GetLatestVariables ( const openfluid::core::SpatialUnit UnitPtr,
const openfluid::core::VariableName_t VarName,
const openfluid::core::TimeIndex_t  BeginIndex,
openfluid::core::IndexedValueList IndValList 
) const
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
openfluid::core::IndexedValueList openfluid::ware::SimulationInspectorWare::OPENFLUID_GetLatestVariables ( const openfluid::core::SpatialUnit UnitPtr,
const openfluid::core::VariableName_t VarName,
const openfluid::core::TimeIndex_t  BeginIndex 
) const
protected

Returns 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
Returns
the list of time-indexed values of the requested variable
bool openfluid::ware::SimulationInspectorWare::OPENFLUID_GetUnit ( const openfluid::core::UnitsClass_t ClassName,
const openfluid::core::UnitID_t ID,
openfluid::core::SpatialUnit 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, nullptr if the unit does not exist
Returns
false if the unit does not exist
openfluid::core::SpatialUnit* openfluid::ware::SimulationInspectorWare::OPENFLUID_GetUnit ( const openfluid::core::UnitsClass_t ClassName,
const openfluid::core::UnitID_t ID 
) const
protected
openfluid::core::UnitsPtrList_t openfluid::ware::SimulationInspectorWare::OPENFLUID_GetUnits ( const openfluid::core::UnitsClass_t ClassName)
protected

Returns a list of units of the requested class Returns an empty list if the units class does not exist.

Parameters
[in]ClassNamethe requested class
void openfluid::ware::SimulationInspectorWare::OPENFLUID_GetUnitsCount ( unsigned int &  UnitsCount) const
protected

Returns the total number of units

Parameters
[out]UnitsCountthe total units count
unsigned int openfluid::ware::SimulationInspectorWare::OPENFLUID_GetUnitsCount ( ) const
protected

Returns the total number of units

Returns
the total units count
bool openfluid::ware::SimulationInspectorWare::OPENFLUID_GetUnitsCount ( const openfluid::core::UnitsClass_t ClassName,
unsigned int &  UnitsCount 
) const
protected

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

Parameters
[in]ClassNamethe queried class name
[out]UnitsCountthe number of units in the queried class
Returns
false if the unit class does not exist
unsigned int openfluid::ware::SimulationInspectorWare::OPENFLUID_GetUnitsCount ( const openfluid::core::UnitsClass_t ClassName) const
protected

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

Parameters
[in]ClassNamethe queried class name
Returns
the number of units in the queried class, or 0 if the units class does not exist
void openfluid::ware::SimulationInspectorWare::OPENFLUID_GetVariable ( const openfluid::core::SpatialUnit 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::SpatialUnit 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::SpatialUnit 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::SpatialUnit 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::SpatialUnit 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
const openfluid::core::Value* openfluid::ware::SimulationInspectorWare::OPENFLUID_GetVariable ( const openfluid::core::SpatialUnit UnitPtr,
const openfluid::core::VariableName_t VarName,
const openfluid::core::TimeIndex_t  Index 
) const
protected

Returns 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
Returns
a constant pointer the value of the requested variable
void openfluid::ware::SimulationInspectorWare::OPENFLUID_GetVariable ( const openfluid::core::SpatialUnit 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::SpatialUnit 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::SpatialUnit 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::SpatialUnit 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::SpatialUnit 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
const openfluid::core::Value* openfluid::ware::SimulationInspectorWare::OPENFLUID_GetVariable ( const openfluid::core::SpatialUnit UnitPtr,
const openfluid::core::VariableName_t VarName 
) const
protected

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

Parameters
[in]UnitPtra Unit
[in]VarNamethe name of the requested variable
Returns
a constant pointer the value of the requested variable
void openfluid::ware::SimulationInspectorWare::OPENFLUID_GetVariables ( const openfluid::core::SpatialUnit UnitPtr,
const openfluid::core::VariableName_t VarName,
const openfluid::core::TimeIndex_t  BeginIndex,
const openfluid::core::TimeIndex_t  EndIndex,
openfluid::core::IndexedValueList IndValList 
) const
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
openfluid::core::IndexedValueList openfluid::ware::SimulationInspectorWare::OPENFLUID_GetVariables ( const openfluid::core::SpatialUnit UnitPtr,
const openfluid::core::VariableName_t VarName,
const openfluid::core::TimeIndex_t  BeginIndex,
const openfluid::core::TimeIndex_t  EndIndex 
) const
protected

Returns 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
Returns
the list of time-indexed values of the requested variable
bool openfluid::ware::SimulationInspectorWare::OPENFLUID_IsAttributeExist ( const openfluid::core::SpatialUnit 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::SpatialUnit 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::SpatialUnit 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::SpatialUnit aUnit,
const openfluid::core::UnitsClass_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 ( const openfluid::core::UnitsClass_t ClassName) const
inlineprotected
bool openfluid::ware::SimulationInspectorWare::OPENFLUID_IsUnitConnectedFrom ( openfluid::core::SpatialUnit aUnit,
const openfluid::core::UnitsClass_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::SpatialUnit aUnit,
const openfluid::core::UnitsClass_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 ( const openfluid::core::UnitsClass_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::SpatialUnit aUnit,
const openfluid::core::UnitsClass_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_IsUnitsClassExist ( const openfluid::core::UnitsClass_t ClassName) const
protected

Returns true if the queried unit class exists

Parameters
[in]ClassNamethe queried class name
bool openfluid::ware::SimulationInspectorWare::OPENFLUID_IsVariableExist ( const openfluid::core::SpatialUnit 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::SpatialUnit 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::SpatialUnit 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::SpatialGraph* openfluid::ware::SimulationInspectorWare::mp_SpatialData
protected

Pointer to the spatial graph. It should be used with care. Prefer using the OPENFLUID_Xxxx methods.


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