Set and Get information on compartments.
More...
Set and Get information on compartments.
bool getCompartmentByIndex |
( |
RRHandle |
handle, |
|
|
const int |
index, |
|
|
double * |
value |
|
) |
| |
Retrieve the compartment volume for a particular compartment.
- Parameters
-
[in] | handle | Handle to a RoadRunner instance |
[in] | index | The index to the compartment (corresponds to position in getCompartmentIds(RRHandle handle)) |
[in] | value | The value returned by the method |
- Returns
- Returns true if successful, false otherwise
Obtain the list of compartment Ids.
Example:
- Parameters
-
[in] | handle | Handle to a RoadRunner instance |
- Returns
- Returns -1 if it fails, if succesful it returns a pointer to a RRStringArrayPtr struct
int getNumberOfCompartments |
( |
RRHandle |
handle | ) |
|
Returns the number of compartments in the model.
- Parameters
-
[in] | handle | Handle to a RoadRunner instance |
- Returns
- Returns number of compartments
bool setCompartmentByIndex |
( |
RRHandle |
handle, |
|
|
const int |
index, |
|
|
const double |
value |
|
) |
| |
Set the volume for a particular compartment.
- Parameters
-
[in] | handle | Handle to a RoadRunner instance |
[in] | index | The index to the compartment (corresponds to position in getCompartmentIds(RRHandle handle)) |
[in] | value | The volume of the compartment to set |
- Returns
- Returns true if successful, false otherwise