|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfern.network.sbml.MathTree
public class MathTree
Representation of am evaluation tree. Within a sbml file, MathML branches may occur at different positions. These are represented as MathTrees in FERN.
Nested Class Summary | |
---|---|
static class |
MathTree.ConstLeaf
|
static class |
MathTree.GlobalLeaf
|
static class |
MathTree.InnerNode
|
static class |
MathTree.Node
|
static class |
MathTree.VarLeaf
|
Constructor Summary | |
---|---|
MathTree(Network net,
org.sbml.libsbml.ASTNode ast,
Map<String,Double> globals,
Map<String,Double> locals,
Map<String,Integer> bindings)
Creates a MathTree from an libsbml ASTNode . |
Method Summary | |
---|---|
double |
calculate(AmountManager amount,
Simulator sim)
Evaluate the MathTree. |
MathTree.Node |
getRoot()
Gets the root of this MathTree. |
List<Integer> |
getSpecies()
Gets the species present in this tree. |
static String |
inferStringFromSBMLConstant(String prefix,
Object c)
Uses reflection to get a string representation of a libsml constant. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MathTree(Network net, org.sbml.libsbml.ASTNode ast, Map<String,Double> globals, Map<String,Double> locals, Map<String,Integer> bindings)
ASTNode
.
net
- sbml networkast
- ASTNodeglobals
- pointer to the global variable mappinglocals
- pointer to the local variable mapping of this entitybindings
- mapping of the variable names to their indicesMethod Detail |
---|
public List<Integer> getSpecies()
public MathTree.Node getRoot()
public double calculate(AmountManager amount, Simulator sim)
amount
- AmountManagersim
- Simulator
public static String inferStringFromSBMLConstant(String prefix, Object c)
prefix
- a prefix for the constant name e.g. ASTc
- the libsml constant
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |