|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectDelaySim.Reaction
public class Reaction
A class describing a generic reaction. This reaction is described by - a name; - a stoichiometry vector for reactants, and one for products; - a kinetic constant; - a delay, which can be either greater or equal to 0.
Field Summary | |
---|---|
double |
delay
the delay |
double |
k
the kinetic constant |
java.lang.String |
name
the reaction name |
int[] |
nu_p
the stoichiometry vector for products |
int[] |
nu_r
the stoichiometry vector for reactants |
double |
rate
|
Constructor Summary | |
---|---|
Reaction(java.lang.String name,
int[] reactants,
int[] products,
double constant,
double delay)
Constructor for a Reaction object. |
Method Summary | |
---|---|
void |
insert_producs(int[] state)
Perform insertion of the products in the state vector given as parameter. |
boolean |
is_applicable(int[] state)
Check if reaction is applicable in the state vector given as parameter. |
double |
rate(int[] state)
Evaluate the propensity function for the reaction in the state described by the vector used as parameter. |
void |
remove_reactants(int[] state)
Perform removal of the reactants from the state vector given as parameter. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public int[] nu_r
public int[] nu_p
public double k
public double delay
public java.lang.String name
public double rate
Constructor Detail |
---|
public Reaction(java.lang.String name, int[] reactants, int[] products, double constant, double delay)
name
- the name of the reaction;reactants
- the stoichiometry vector for reactants;products
- the stoichiometry vector for products;constant
- the kinetic constant;delay
- the delay of the reaction.Method Detail |
---|
public double rate(int[] state)
state
- the integer vector describing the state;
public boolean is_applicable(int[] state)
state
- the integer vector describing the state;public void remove_reactants(int[] state)
state
- the integer vector describing the state;public void insert_producs(int[] state)
state
- the integer vector describing the state;public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |