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

#include <ware/SimulationContributorWare.hpp>

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

List of all members.

Public Member Functions

virtual ~SimulationContributorWare ()

Protected Member Functions

void OPENFLUID_SetAttribute (openfluid::core::Unit *UnitPtr, const openfluid::core::AttributeName_t &AttrName, const openfluid::core::Value &Val)
void OPENFLUID_SetAttribute (openfluid::core::Unit *UnitPtr, const openfluid::core::AttributeName_t &AttrName, const double &Val)
void OPENFLUID_SetAttribute (openfluid::core::Unit *UnitPtr, const openfluid::core::AttributeName_t &AttrName, const long &Val)
void OPENFLUID_SetAttribute (openfluid::core::Unit *UnitPtr, const openfluid::core::AttributeName_t &AttrName, const std::string &Val)
void OPENFLUID_InitializeVariable (openfluid::core::Unit *UnitPtr, const openfluid::core::VariableName_t &VarName, const openfluid::core::Value &Val)
void OPENFLUID_InitializeVariable (openfluid::core::Unit &aUnit, const openfluid::core::VariableName_t &VarName, const openfluid::core::Value &Val)
void OPENFLUID_InitializeVariable (openfluid::core::Unit *UnitPtr, const openfluid::core::VariableName_t &VarName, const double &Val)
void OPENFLUID_InitializeVariable (openfluid::core::Unit *UnitPtr, const openfluid::core::VariableName_t &VarName, const long &Val)
void OPENFLUID_InitializeVariable (openfluid::core::Unit *UnitPtr, const openfluid::core::VariableName_t &VarName, const bool &Val)
void OPENFLUID_InitializeVariable (openfluid::core::Unit *UnitPtr, const openfluid::core::VariableName_t &VarName, const std::string &Val)
void OPENFLUID_AppendVariable (openfluid::core::Unit *UnitPtr, const openfluid::core::VariableName_t &VarName, const openfluid::core::Value &Val)
void OPENFLUID_AppendVariable (openfluid::core::Unit &aUnit, const openfluid::core::VariableName_t &VarName, const openfluid::core::Value &Val)
void OPENFLUID_AppendVariable (openfluid::core::Unit *UnitPtr, const openfluid::core::VariableName_t &VarName, const double &Val)
void OPENFLUID_AppendVariable (openfluid::core::Unit *UnitPtr, const openfluid::core::VariableName_t &VarName, const long &Val)
void OPENFLUID_AppendVariable (openfluid::core::Unit *UnitPtr, const openfluid::core::VariableName_t &VarName, const bool &Val)
void OPENFLUID_AppendVariable (openfluid::core::Unit *UnitPtr, const openfluid::core::VariableName_t &VarName, const std::string &Val)
void OPENFLUID_SetVariable (openfluid::core::Unit *UnitPtr, const openfluid::core::VariableName_t &VarName, const openfluid::core::Value &Val)
void OPENFLUID_SetVariable (openfluid::core::Unit *UnitPtr, const openfluid::core::VariableName_t &VarName, const double &Val)
void OPENFLUID_SetVariable (openfluid::core::Unit *UnitPtr, const openfluid::core::VariableName_t &VarName, const long &Val)
void OPENFLUID_SetVariable (openfluid::core::Unit *UnitPtr, const openfluid::core::VariableName_t &VarName, const bool &Val)
void OPENFLUID_SetVariable (openfluid::core::Unit *UnitPtr, const openfluid::core::VariableName_t &VarName, const std::string &Val)
void OPENFLUID_AppendEvent (openfluid::core::Unit *UnitPtr, openfluid::core::Event &Ev)
void OPENFLUID_AddUnit (openfluid::core::UnitClass_t ClassName, openfluid::core::UnitID_t ID, openfluid::core::PcsOrd_t PcsOrder)
void OPENFLUID_DeleteUnit (openfluid::core::UnitClass_t ClassName, openfluid::core::UnitID_t ID)
bool OPENFLUID_AddFromToConnection (openfluid::core::UnitClass_t ClassNameFrom, openfluid::core::UnitID_t IDFrom, openfluid::core::UnitClass_t ClassNameTo, openfluid::core::UnitID_t IDTo)
bool OPENFLUID_AddFromToConnection (openfluid::core::Unit *FromUnit, openfluid::core::Unit *ToUnit)
bool OPENFLUID_RemoveFromToConnection (openfluid::core::UnitClass_t ClassNameFrom, openfluid::core::UnitID_t IDFrom, openfluid::core::UnitClass_t ClassNameTo, openfluid::core::UnitID_t IDTo)
bool OPENFLUID_RemoveFromToConnection (openfluid::core::Unit *FromUnit, openfluid::core::Unit *ToUnit)
bool OPENFLUID_AddChildParentConnection (openfluid::core::UnitClass_t ClassNameChild, openfluid::core::UnitID_t IDChild, openfluid::core::UnitClass_t ClassNameParent, openfluid::core::UnitID_t IDParent)
bool OPENFLUID_AddChildParentConnection (openfluid::core::Unit *ChildUnit, openfluid::core::Unit *ParentUnit)
bool OPENFLUID_RemoveChildParentConnection (openfluid::core::UnitClass_t ClassNameChild, openfluid::core::UnitID_t IDChild, openfluid::core::UnitClass_t ClassNameParent, openfluid::core::UnitID_t IDParent)
bool OPENFLUID_RemoveChildParentConnection (openfluid::core::Unit *ChildUnit, openfluid::core::Unit *ParentUnit)
void OPENFLUID_BuildUnitsMatrix (const openfluid::core::UnitClass_t &UnitsClass, const unsigned int &ColsNbr, const unsigned int &RowsNbr)
 SimulationContributorWare (WareType WType)

Constructor & Destructor Documentation


Member Function Documentation

Adds a child-parent connection between two units

Parameters:
[in]ClassNameChildclass name of the "child" unit
[in]IDChildID of the "child" unit
[in]ClassNameParentclass name of the "parent" unit
[in]IDParentID of the "parent" unit
Returns:
false if the connection already exists

Adds a child-parent connection between two units

Parameters:
[in]ChildUnitpointer to the "child" unit
[in]ParentUnitpointer to the "parent" unit
Returns:
false if the connection already exists

Adds a from-to connection between two units

Parameters:
[in]ClassNameFromclass name of the "from" unit
[in]IDFromID of the "from" unit
[in]ClassNameToclass name of the "to" unit
[in]IDToID of the "to" unit
Returns:
false if the unit connection already exists

Adds a from-to connection between two units

Parameters:
[in]FromUnitpointer to the "from" unit
[in]ToUnitpointer to the "to" unit
Returns:
false if the connection already exists

Adds a unit to the set of units if not already exists

Parameters:
[in]ClassNameclass name of the added unit
[in]IDID of the added unit
[in]PcsOrderProcess order of the added unit

Appends an event on a unit

Parameters:
[in]UnitPtra Unit
[in]Evthe event to append

Appends a distributed variable value for a unit at the end of the previously added values for this variable

Parameters:
[in]UnitPtra Unit
[in]VarNamethe name of the variable
[in]Valthe added value of the variable
Deprecated:

Appends a distributed variable value for a unit at the end of the previously added values for this variable

Parameters:
[in]aUnita Unit
[in]VarNamethe name of the variable
[in]Valthe added value of the variable
void openfluid::ware::SimulationContributorWare::OPENFLUID_AppendVariable ( openfluid::core::Unit UnitPtr,
const openfluid::core::VariableName_t VarName,
const double &  Val 
) [protected]

Appends a distributed double variable value for a unit at the end of the previously added values for this variable

Parameters:
[in]UnitPtra Unit
[in]VarNamethe name of the variable
[in]Valthe added value of the variable (double)

Appends a distributed long variable value for a unit at the end of the previously added values for this variable

Parameters:
[in]UnitPtra Unit
[in]VarNamethe name of the variable
[in]Valthe added value of the variable (long)

Appends a distributed boolean variable value for a unit at the end of the previously added values for this variable

Parameters:
[in]UnitPtra Unit
[in]VarNamethe name of the variable
[in]Valthe added value of the variable (bool)
void openfluid::ware::SimulationContributorWare::OPENFLUID_AppendVariable ( openfluid::core::Unit UnitPtr,
const openfluid::core::VariableName_t VarName,
const std::string &  Val 
) [protected]

Appends a distributed string variable value for a unit at the end of the previously added values for this variable

Parameters:
[in]UnitPtra Unit
[in]VarNamethe name of the variable
[in]Valthe added value of the variable (string)
void openfluid::ware::SimulationContributorWare::OPENFLUID_BuildUnitsMatrix ( const openfluid::core::UnitClass_t UnitsClass,
const unsigned int &  ColsNbr,
const unsigned int &  RowsNbr 
) [protected]

Builds a ColsNbr x RowsNbr unix matrix with bi-directionnal connections

Parameters:
[in]UnitsClassthe name of units class
[in]ColsNbrthe number of units on the X axis
[in]RowsNbrthe number of units on the Y axis

Deletes a unit from the set of units if exists

Parameters:
[in]ClassNameclass name of the removed unit
[in]IDID of the added unit
Returns:
true if the unit has been correctly deleted

Initializes a distributed variable value for a unit

Parameters:
[in]UnitPtra Unit
[in]VarNamethe name of the variable
[in]Valthe added value of the variable
Deprecated:

Initializes a distributed variable value for a unit

Parameters:
[in]aUnita Unit
[in]VarNamethe name of the variable
[in]Valthe added value of the variable

Initializes a distributed double variable value for a unit

Parameters:
[in]UnitPtra Unit
[in]VarNamethe name of the variable
[in]Valthe added value of the variable (double)

Initializes a distributed long variable value for a unit

Parameters:
[in]UnitPtra Unit
[in]VarNamethe name of the variable
[in]Valthe added value of the variable (long)

Initializes a distributed boolean variable value for a unit

Parameters:
[in]UnitPtra Unit
[in]VarNamethe name of the variable
[in]Valthe added value of the variable (bool)
void openfluid::ware::SimulationContributorWare::OPENFLUID_InitializeVariable ( openfluid::core::Unit UnitPtr,
const openfluid::core::VariableName_t VarName,
const std::string &  Val 
) [protected]

Initializes a distributed string variable value for a unit

Parameters:
[in]UnitPtra Unit
[in]VarNamethe name of the variable
[in]Valthe added value of the variable (string)

Removes a child-parent connection between two units

Parameters:
[in]ClassNameChildclass name of the "child" unit
[in]IDChildID of the "child" unit
[in]ClassNameParentclass name of the "parent" unit
[in]IDParentID of the "parent" unit
Returns:
false if the connection does not exist

Removes a child-parent connection between two units

Parameters:
[in]ChildUnitpointer to the "child" unit
[in]ParentUnitpointer to the "parent" unit
Returns:
false if the connection does not exist

Removes a from-to connection between two units

Parameters:
[in]ClassNameFromclass name of the "from" unit
[in]IDFromID of the "from" unit
[in]ClassNameToclass name of the "to" unit
[in]IDToID of the "to" unit
Returns:
false if the unit connection does not exist

Removes a from-to connection between two units

Parameters:
[in]FromUnitpointer to the "from" unit
[in]ToUnitpointer to the "to" unit
Returns:
false if the connection does not exist

Sets attribute for a unit

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

Sets attribute for a unit, as a double

Parameters:
[in]UnitPtra Unit
[in]AttrNamethe name of the set attribute
[in]Valthe value of the set attribute

Sets attribute for a unit, as a long integer

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

Sets attribute for a unit, as a string

Parameters:
[in]UnitPtra Unit
[in]AttrNamethe name of the set attribute
[out]Valthe value of the set attribute

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

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

Sets a distributed double variable value for a unit at the current time index

Parameters:
[in]UnitPtra Unit
[in]VarNamethe name of the variable
[in]Valthe added value of the variable (double)
void openfluid::ware::SimulationContributorWare::OPENFLUID_SetVariable ( openfluid::core::Unit UnitPtr,
const openfluid::core::VariableName_t VarName,
const long &  Val 
) [protected]

Sets a distributed double variable value for a unit at the current time index

Parameters:
[in]UnitPtra Unit
[in]VarNamethe name of the variable
[in]Valthe added value of the variable (long)
void openfluid::ware::SimulationContributorWare::OPENFLUID_SetVariable ( openfluid::core::Unit UnitPtr,
const openfluid::core::VariableName_t VarName,
const bool &  Val 
) [protected]

Sets a distributed double variable value for a unit at the current time index

Parameters:
[in]UnitPtra Unit
[in]VarNamethe name of the variable
[in]Valthe added value of the variable (bool)
void openfluid::ware::SimulationContributorWare::OPENFLUID_SetVariable ( openfluid::core::Unit UnitPtr,
const openfluid::core::VariableName_t VarName,
const std::string &  Val 
) [protected]

Sets a distributed double variable value for a unit at the current time index

Parameters:
[in]UnitPtra Unit
[in]VarNamethe name of the variable
[in]Valthe added value of the variable (string)

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