|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectJava.problem.PossibleReaction
public class PossibleReaction
Description of a possible reaction
Constructor Summary | |
---|---|
PossibleReaction()
|
Method Summary | |
---|---|
Range |
getLocalRange(int i)
Get the locally defined range i for this possible reaction |
VariableSet |
getLocalVariableSet(int i)
Get the locally defined variable set i for this possible reaction |
int |
getNumberOfLocalRanges()
Get the number of locally defined ranges for this possible reaction |
int |
getNumberOfLocalVariableSets()
Get the number of locally defined variable sets for this possible reaction |
ReactionType |
getReactionType()
Get type of the reaction |
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<VariableSet> variableSets,
java.util.Vector<Range> ranges)
Read range from input file in form of a buffered reader |
void |
setLocalRange(int i,
Range r)
Set the locally defined range i for this possible reaction |
void |
setLocalVariableSet(int i,
VariableSet vs)
Set the locally defined variable set i for this possible reaction |
void |
setReactionType(ReactionType r)
Set type of the reaction |
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 PossibleReaction()
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<VariableSet> variableSets, 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 typesvariableSets
- vector of variable setsranges
- vector of possible rangespublic ReactionType getReactionType()
public void setReactionType(ReactionType r)
r
- the reaction typepublic VariableSet getLocalVariableSet(int i)
i
- the index of the variable set
public void setLocalVariableSet(int i, VariableSet vs)
i
- the index of the variable setvs
- the variable setpublic int getNumberOfLocalVariableSets()
public Range getLocalRange(int i)
i
- the index of the range
public void setLocalRange(int i, Range r)
i
- the index of the ranger
- the rangepublic int getNumberOfLocalRanges()
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 |