|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsbrt.kernel.fba.AbstractRxn
sbrt.kernel.fba.RevRxn
public final class RevRxn
This class is used to represent reversible chemical reactions.
Instances of this class are immutable.
Constructor Summary | |
---|---|
RevRxn(LinearComb<java.lang.String> reactants,
LinearComb<java.lang.String> products)
Constructs a new reversible reaction from the provided reactants and products. |
Method Summary | |
---|---|
boolean |
isReversible()
Returns true . |
java.lang.String |
toString()
Returns an appropriate string representation of this reversible reaction. |
Methods inherited from class sbrt.kernel.fba.AbstractRxn |
---|
equals, getProducts, getReactants, hashCode |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RevRxn(LinearComb<java.lang.String> reactants, LinearComb<java.lang.String> products)
reactants
- the linear combination of chemical species representing the
"left-hand side" of the reaction.products
- the linear combination of chemical species representing the
"right-hand side" of the reaction.
java.lang.NullPointerException
- if the reactants or products are null
, or if any
chemical species within them is null
.
java.lang.IllegalArgumentException
- if
• the reactants or products contain a common chemical species,
• either linear combination contains a non-zero constant,
• a stoichiometric coefficient is NaN, infinite, or ≤ 0.
Method Detail |
---|
public boolean isReversible()
true
.
true
.public java.lang.String toString()
toString
in interface ChemRxn
toString
in class AbstractRxn
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |