All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Member Functions | Protected Attributes
openfluid::fluidx::AdvancedModelDescriptor Class Reference

#include <fluidx/AdvancedModelDescriptor.hpp>

List of all members.

Public Member Functions

 AdvancedModelDescriptor (openfluid::fluidx::CoupledModelDescriptor &ModelDesc)
 ~AdvancedModelDescriptor ()
void checkModel () const
const std::list
< openfluid::fluidx::ModelItemDescriptor * > & 
getItems () const
openfluid::fluidx::ModelItemDescriptorgetItemAt (unsigned int Index) const
int getFirstItemIndex (std::string ItemID) const
int getFirstItemIndex (openfluid::fluidx::ModelItemDescriptor *Item) const
std::vector< std::string > getOrderedIDs () const
std::string getID (openfluid::fluidx::ModelItemDescriptor *Item) const
void appendItem (openfluid::fluidx::ModelItemDescriptor *Item)
void insertItem (openfluid::fluidx::ModelItemDescriptor *Item, unsigned int Position)
void setItems (std::list< openfluid::fluidx::ModelItemDescriptor * > SimulatorsList)
 Replace existing simulators with SimulatorsList.
void removeItem (unsigned int Position)
void moveItem (unsigned int From, unsigned int To)
unsigned int getItemsCount () const
void getItemsCount (unsigned int &SimCount, unsigned int &GenCount) const
void setGlobalParameter (const openfluid::ware::WareParamKey_t &Key, const openfluid::ware::WareParamValue_t &Value)
void setGlobalParameters (const openfluid::ware::WareParams_t &Params)
openfluid::ware::WareParams_t getGlobalParameters () const
void eraseGlobalParameter (const openfluid::ware::WareParamKey_t &Key)

Protected Member Functions

 AdvancedModelDescriptor ()

Protected Attributes

openfluid::fluidx::CoupledModelDescriptormp_ModelDesc

Constructor & Destructor Documentation


Member Function Documentation

Return the position of the firts Item with ItemID found in the list, or -1 if not found

Parameters:
ItemID
Returns:
Exceptions:
openfluid::base::OFExceptionif Index is out of range
Parameters:
Index
Returns:
void openfluid::fluidx::AdvancedModelDescriptor::getItemsCount ( unsigned int &  SimCount,
unsigned int &  GenCount 
) const

Insert an Item before the given position (positions starts at index 0)

Parameters:
[in]Itemthe ModelItemDescriptor to insert
[in]Positionthe position, should be between zero and list size - 1. To insert an Item at the end of the list, use appendItem instead.
Exceptions:
openfluid::base::OFExceptionif Position is out of range
void openfluid::fluidx::AdvancedModelDescriptor::moveItem ( unsigned int  From,
unsigned int  To 
)

Move the Item located at the given From position to the To position (positions starts at index 0)

Parameters:
From
To
Exceptions:
openfluid::base::OFExceptiona position is out of range

Remove from the list the Item located at the given Position (positions starts at index 0). This doesn't delete the ModelItemDescriptor pointer.

Parameters:
[in]Positionthe position
Exceptions:
openfluid::base::OFExceptionif Position is out of range

Replace existing simulators with SimulatorsList.


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