roadrunner
2.6.0
Fast simulator for SBML models
|
Initialize library and terminate library instance. More...
Functions | |
C_DECL_SPEC RRHandle rrcCallConv | createRRInstance (void) |
Initialize a new roadRunner instance and return a handle to it. More... | |
C_DECL_SPEC RRHandle rrcCallConv | createRRInstanceEx (const char *tempFolder, const char *compiler) |
Initialize a new roadRunner instance and return a handle to it. More... | |
C_DECL_SPEC bool rrcCallConv | freeRRInstance (RRHandle handle) |
Free the roadRunner instance. More... | |
char * | getInstallFolder (void) |
Returns the folder in which the RoadRunner wrappers is installed. More... | |
C_DECL_SPEC bool rrcCallConv | setInstallFolder (const char *folder) |
Set the internal string containing the folder in where the RoadRunner C wrappers is installed. More... | |
C_DECL_SPEC bool rrcCallConv | setComputeAndAssignConservationLaws (RRHandle handle, const bool On_Or_Off) |
Enable or disable conservation analysis. More... | |
C_DECL_SPEC int rrcCallConv | getComputeAndAssignConservationLaws (RRHandle handle, int *value) |
Get the value of the moiety conservation setting. More... | |
Initialize library and terminate library instance.
RoadRunner C wrappers Library
RoadRunner is a SBML compliant high performance and portable simulation engine for systems and synthetic biology. To run a simple SBML model and generate time series data we would write the following code:
More complex example, using C wrappers:
Would create output as shown below:
Note that if you are using a C++ compiler, you'll need to change the #include lines of both above programs to:
Installation documentation is provided at libRoadRunner.org.
Copyright (C) 2012 University of Washington, Seattle, WA, USA
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
In plain english this means:
You CAN freely download and use this software, in whole or in part, for personal, company internal, or commercial purposes;
You CAN use the software in packages or distributions that you create.
You SHOULD include a copy of the license in any redistribution you may make;
You are NOT required include the source of software, or of any modifications you may have made to it, in any redistribution you may assemble that includes it.
YOU CANNOT:
redistribute any piece of this software without proper attribution;
C_DECL_SPEC RRHandle rrcCallConv createRRInstance | ( | void | ) |
Initialize a new roadRunner instance and return a handle to it.
C_DECL_SPEC RRHandle rrcCallConv createRRInstanceEx | ( | const char * | tempFolder, |
const char * | compiler | ||
) |
Initialize a new roadRunner instance and return a handle to it.
[in] | tempFolder | set roadrunners temporary folder |
[in] | compiler | may be NULL, if NULL, uses default compiler. If LLVM build is enabled, setting compiler to "llvm" enables llvm based model generation. |
C_DECL_SPEC bool rrcCallConv freeRRInstance | ( | RRHandle | handle | ) |
Free the roadRunner instance.
[in] | handle | Handle to a RoadRunner instance |
C_DECL_SPEC int rrcCallConv getComputeAndAssignConservationLaws | ( | RRHandle | handle, |
int * | value | ||
) |
Get the value of the moiety conservation setting.
[in] | handle | Handle to a RoadRunner instance |
[out] | value | A place to store the value |
char* getInstallFolder | ( | void | ) |
Returns the folder in which the RoadRunner wrappers is installed.
C_DECL_SPEC bool rrcCallConv setComputeAndAssignConservationLaws | ( | RRHandle | handle, |
const bool | On_Or_Off | ||
) |
Enable or disable conservation analysis.
[in] | handle | Handle to a RoadRunner instance |
[in] | On_Or_Off | Set true to switch on conservation analysis |
C_DECL_SPEC bool rrcCallConv setInstallFolder | ( | const char * | folder | ) |
Set the internal string containing the folder in where the RoadRunner C wrappers is installed.
[in] | folder | Pointer to string holding the install folder |