|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsbrt.kernel.fba.AbstractRxn
public abstract class AbstractRxn
This class is a skeleton implementation of ChemicalRxn. It performs basic functions that are useful for most classes implementing ChemicalRxn.
Constructor Summary | |
---|---|
AbstractRxn(LinearComb<java.lang.String> reactants,
LinearComb<java.lang.String> products)
Constructs a new chemical reaction from the provided reactants and products with the given name. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Returns obj == this . |
LinearComb<java.lang.String> |
getProducts()
Returns the products of this reaction. |
LinearComb<java.lang.String> |
getReactants()
Returns the reactants of this reaction. |
int |
hashCode()
Returns a content-based hash code for this reaction. |
abstract java.lang.String |
toString()
Returns an appropriate string representation of this reaction. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface sbrt.kernel.fba.ChemRxn |
---|
isReversible |
Constructor Detail |
---|
public AbstractRxn(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 chemical species in common,
• either linear combination contains a non-zero constant,
• a stoichiometric coefficient is NaN, infinite, or ≤ 0.
Method Detail |
---|
public final LinearComb<java.lang.String> getReactants()
getReactants
in interface ChemRxn
public final LinearComb<java.lang.String> getProducts()
getProducts
in interface ChemRxn
public abstract java.lang.String toString()
toString
in interface ChemRxn
toString
in class java.lang.Object
public int hashCode()
hashCode
in interface ChemRxn
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
obj == this
.
equals
in interface ChemRxn
equals
in class java.lang.Object
obj
- the reference object with which to compare.
obj == this
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |