|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectJava.problem.Reaction
public class Reaction
Description of a reaction given in the model
If an initial model in a problem, then one range for each parameter
stored in a Vector called localRanges
If a solution model, then one value for each parameter
stored in a Vector called localParameters
Constructor Summary | |
---|---|
Reaction()
|
Method Summary | |
---|---|
double |
getLocalParameter(int i)
Get local parameter i |
Range |
getLocalRange(int i)
Get local range i |
Variable |
getLocalVariable(int i)
Get local variable i |
int |
getNumberOfLocalParameters()
Get number of local parameters |
int |
getNumberOfLocalRanges()
Get number of local ranges |
int |
getNumberOfLocalVariables()
Get number of local variables |
ReactionType |
getReactionType()
|
int |
read(java.lang.String[] commands,
java.io.BufferedReader in,
int line_no,
int debug,
java.util.Vector<Variable> variables,
java.util.Vector<ReactionType> reactionTypes,
java.util.Vector<Range> ranges)
Read reaction from input file in form of a buffered reader |
void |
setLocalRange(int i,
Range r)
Set the local range for parameter i of this reaction |
void |
setLocalVariable(int i,
Variable v)
Set the local variable i of this reaction |
void |
setReactionType(ReactionType r)
Set the reaction type |
java.lang.String |
toString()
Get string representation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Reaction()
Method Detail |
---|
public int read(java.lang.String[] commands, java.io.BufferedReader in, int line_no, int debug, java.util.Vector<Variable> variables, java.util.Vector<ReactionType> reactionTypes, java.util.Vector<Range> ranges)
commands
- vector of strings on first line to readin
- buffered readerline_no
- current line in the buffered reader (i.e., problem file)debug
- debug levelvariables
- vector of variablesreactionTypes
- vector of possible reaction typesranges
- vector of possible rangespublic ReactionType getReactionType()
public Variable getLocalVariable(int i)
i
- the index
public int getNumberOfLocalVariables()
public Range getLocalRange(int i)
i
- the index
public int getNumberOfLocalRanges()
public double getLocalParameter(int i)
i
- the index
public int getNumberOfLocalParameters()
public void setReactionType(ReactionType r)
r
- the typepublic void setLocalVariable(int i, Variable v)
i
- the indexv
- the variablepublic void setLocalRange(int i, Range r)
i
- the indexr
- the rangepublic 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 |