Public Member Functions
openfluid::core::Unit Class Reference
Inheritance diagram for openfluid::core::Unit:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 Unit (const UnitClass_t aClass, const UnitID_t anID, const PcsOrd_t aPcsOrder, const InstantiationInfo::Type InstType)
 ~Unit ()
unsigned int getProcessOrder () const
UnitID_t getID () const
UnitClass_t getClass () const
bool addToUnit (Unit *aUnit)
bool addFromUnit (Unit *aUnit)
bool addParentUnit (Unit *aUnit)
bool addChildUnit (Unit *aUnit)
UnitsPtrList_tgetToUnits (const UnitClass_t aClass)
const UnitsPtrList_tgetToUnits (const UnitClass_t aClass) const
UnitsPtrList_tgetFromUnits (const UnitClass_t aClass)
const UnitsPtrList_tgetFromUnits (const UnitClass_t aClass) const
UnitsPtrList_tgetParentUnits (const UnitClass_t aClass)
const UnitsPtrList_tgetParentUnits (const UnitClass_t aClass) const
UnitsPtrList_tgetChildrenUnits (const UnitClass_t aClass)
const UnitsPtrList_tgetChildrenUnits (const UnitClass_t aClass) const
InputDatagetInputData ()
const InputDatagetInputData () const
VariablesgetVariables ()
const VariablesgetVariables () const
EventsCollectiongetEvents ()
const EventsCollectiongetEvents () const
void streamContents (std::ostream &OStream)
void setProcessOrder (unsigned int PcsOrder)

Detailed Description

Class defining a spatial unit

example of use:

  openfluid::core::Unit aUnit;
  openfluid::core::Unit* aUnitPtr;
  openfluid::core::UnitClass_t aUnitClass;
  openfluid::core::UnitID_t aUnitID;
  openfluid::core::UnitsPtrList_t* aUnitListPtr;


  // *** get unit ID ***
  aUnitID = aUnit.getID();
  // or (pointed unit)
  aUnitID = aUnitPtr->getID();

  // *** get unit class ***
  aUnitClass = aUnit.getClass();
  // or (pointed unit)
  aUnitClass = aUnitPtr->getClass();

  // *** get connected units (to and from) ***
  aUnitListPtr = aUnit.getToUnits("foo");
  // or
  aUnitListPtr = aUnit.getFromUnits("bar");

Constructor & Destructor Documentation

openfluid::core::Unit::Unit ( const UnitClass_t  aClass,
const UnitID_t  anID,
const PcsOrd_t  aPcsOrder,
const InstantiationInfo::Type  InstType 
)

Member Function Documentation

Returns a list of children units of the requested class. Returns NULL if this unit has no child

Parameters:
[in]aClassthe requested class

Returns the class of the unit

Returns a list of units, of the requested class, connected from this unit. Returns NULL if no units of the requested class are connected from this unit.

Parameters:
[in]aClassthe requested class

Returns the ID of the unit

Returns a list of parent units of the requested class. Returns NULL if this unit has no parent

Parameters:
[in]aClassthe requested class
unsigned int openfluid::core::Unit::getProcessOrder ( ) const [inline]

Returns the process order of the unit

Returns a list of units, of the requested class, connected to this unit. Returns NULL if no units of the requested class are connected to this unit.

Parameters:
[in]aClassthe requested class
void openfluid::core::Unit::setProcessOrder ( unsigned int  PcsOrder) [inline]
void openfluid::core::Unit::streamContents ( std::ostream &  OStream)

Generated using Doxygen 1.7.6.1
Creative Commons License Creative Commons By-NC-ND license