TinkeCell API
1.0.0
C/Python/Octave/Ruby API
|
get/set parameters, equations, and so on More...
Functions | |
BEGIN_C_DECLS TCAPIEXPORT tc_matrix | tc_getParameters (tc_items a) |
get all the parameters for the given items. use tc_allItems() as argument to get all parameters | |
TCAPIEXPORT tc_matrix | tc_getInitialValues (tc_items a) |
get initial values of the given items. Fixed varianbles are included. use tc_allItems() for all items in the model. | |
TCAPIEXPORT void | tc_setInitialValues (tc_items items, tc_matrix values) |
set initial values of the given items. | |
TCAPIEXPORT tc_matrix | tc_getFixedVariables (tc_items a) |
get all fixed variables | |
TCAPIEXPORT tc_matrix | tc_getParametersAndFixedVariables (tc_items a) |
get all the parameters and fixed variables | |
TCAPIEXPORT double | tc_getParameter (long item, const char *attribute) |
get the parameter with the given name for the given item | |
TCAPIEXPORT tc_matrix | tc_getParametersNamed (tc_items a, tc_strings attibutes) |
get all numerical Modeling with the given names for the given items | |
TCAPIEXPORT tc_matrix | tc_getParametersExcept (tc_items a, tc_strings attributes) |
get all numerical Modeling EXCEPT the given names | |
TCAPIEXPORT void | tc_setParameter (long item, const char *attribute, double value) |
set a parameter value for the given item | |
TCAPIEXPORT void | tc_setParameterByName (const char *attribute, double value) |
set a parameter value | |
TCAPIEXPORT void | tc_setParameters (tc_matrix parameters, int permanentOrTemporary) |
set parameter for multiple items | |
BEGIN_C_DECLS TCAPIEXPORT tc_strings | tc_getEventTriggers () |
get the event triggers for a set of items | |
TCAPIEXPORT tc_strings | tc_getEventResponses () |
get the event responses for a set of items | |
TCAPIEXPORT void | tc_addEvent (const char *trigger, const char *event) |
set the event trigger and response | |
TCAPIEXPORT tc_strings | tc_getForcingFunctionNames (tc_items a) |
get the forcing function names for a set of items | |
TCAPIEXPORT tc_strings | tc_getForcingFunctionAssignments (tc_items a) |
get the forcing function definitions for a set of items | |
TCAPIEXPORT void | tc_addForcingFunction (long item, const char *variable, const char *formula) |
set the forcing function for an item | |
BEGIN_C_DECLS TCAPIEXPORT tc_matrix | tc_getStoichiometry (tc_items A) |
get Modeling for the given items | |
TCAPIEXPORT void | tc_setStoichiometry (tc_items A, tc_matrix N) |
set Modeling for the given items (must be labeled) | |
TCAPIEXPORT tc_strings | tc_getRates (tc_items A) |
get rates for the given items | |
TCAPIEXPORT void | tc_setRates (tc_items A, tc_strings rates) |
set rates for the given items (same order as N) | |
TCAPIEXPORT tc_matrix | tc_getStoichiometryFor (long x) |
get Modeling for the given items | |
TCAPIEXPORT const char * | tc_getRate (long x) |
get rate for the given items | |
TCAPIEXPORT void | tc_setRate (long x, const char *r) |
set rate for the given items | |
TCAPIEXPORT void | tc_setStoichiometryFor (long x, tc_matrix N) |
set Modeling for the given items | |
TCAPIEXPORT void | tc_StoichiometryTool_api (tc_matrix(*getStoichiometry)(tc_items), void(*setStoichiometry)(tc_items, tc_matrix), tc_strings(*getRates)(tc_items), void(*setRates)(tc_items, tc_strings)) |
initialize stiochiometry plug-in |
get/set parameters, equations, and so on
TCAPIEXPORT void tc_addEvent | ( | const char * | trigger, |
const char * | event | ||
) |
set the event trigger and response
string | trigger, e.g. a > 2 |
string | response to trigger, e.g. x = 5 |
TCAPIEXPORT void tc_addForcingFunction | ( | long | item, |
const char * | variable, | ||
const char * | formula | ||
) |
set the forcing function for an item
int | address of an item, e.g. obtained from tc_find |
string | name of existing variable or new variable |
string | formula for the variable |
TCAPIEXPORT tc_strings tc_getEventResponses | ( | ) |
get the event responses for a set of items
BEGIN_C_DECLS TCAPIEXPORT tc_strings tc_getEventTriggers | ( | ) |
get the event triggers for a set of items
TCAPIEXPORT tc_strings tc_getForcingFunctionAssignments | ( | tc_items | a | ) |
get the forcing function definitions for a set of items
tc_items | list of items. use tc_allItems() to get all forcing functions |
TCAPIEXPORT tc_strings tc_getForcingFunctionNames | ( | tc_items | a | ) |
get the forcing function names for a set of items
tc_items | list of items. use tc_allItems() to get all forcing functions |
get initial values of the given items. Fixed varianbles are included. use tc_allItems() for all items in the model.
tc_items | list of items for which the initial values are returned |
TCAPIEXPORT double tc_getParameter | ( | long | item, |
const char * | attribute | ||
) |
get the parameter with the given name for the given item
int | item in the model, e.g. something returned from tc_find |
string | name of the parameter |
get all the parameters for the given items. use tc_allItems() as argument to get all parameters
tc_items | list of items for which the parameters are returned |
get all the parameters and fixed variables
tc_items | list of items. use tc_allItems() to get all items in the model |
TCAPIEXPORT tc_matrix tc_getParametersExcept | ( | tc_items | a, |
tc_strings | attributes | ||
) |
get all numerical Modeling EXCEPT the given names
tc_items | a list of items |
tc_strings | a list of parameter names that exist in one or more of the given items |
TCAPIEXPORT tc_matrix tc_getParametersNamed | ( | tc_items | a, |
tc_strings | attibutes | ||
) |
get all numerical Modeling with the given names for the given items
tc_items | a list of items |
tc_strings | a list of parameter names that exist in one or more of the given items |
TCAPIEXPORT const char* tc_getRate | ( | long | x | ) |
get rate for the given items
int | address of a connection item |
TCAPIEXPORT tc_strings tc_getRates | ( | tc_items | A | ) |
get rates for the given items
tc_items | list of items to get reaction rate equations from. use tc_allItems() for whole model. |
get Modeling for the given items
tc_items | list of items to get stoichiometry matrix from. use tc_allItems() for whole model. |
TCAPIEXPORT tc_matrix tc_getStoichiometryFor | ( | long | x | ) |
get Modeling for the given items
int | address of a connection item |
TCAPIEXPORT void tc_setParameter | ( | long | item, |
const char * | attribute, | ||
double | value | ||
) |
set a parameter value for the given item
int | item in model |
string | name of parameter |
TCAPIEXPORT void tc_setParameterByName | ( | const char * | attribute, |
double | value | ||
) |
set a parameter value
string | full name of parameter, e.g. A.k0 or A_k0 |
double | value |
TCAPIEXPORT void tc_setParameters | ( | tc_matrix | parameters, |
int | permanentOrTemporary | ||
) |
set parameter for multiple items
tc_table | table with rownames as the parameter full names |
int | 0=temporarily (just for simulation, fast), 1 = permanent (slower) |
TCAPIEXPORT void tc_setRate | ( | long | x, |
const char * | r | ||
) |
set rate for the given items
int | address of a connection item |
tc_matrix | reaction rate equations for given item |
TCAPIEXPORT void tc_setRates | ( | tc_items | A, |
tc_strings | rates | ||
) |
set rates for the given items (same order as N)
tc_items | list of items to set reaction rate equations for. use tc_allItems() for whole model. |
set Modeling for the given items (must be labeled)
tc_items | list of items to set stoichiometry matrix for. use tc_allItems() for whole model. |
tc_matrix | new stoichiometry matrix with rownames (molecules) and column names (reactions) \ |