Java.problem
Class PossibleReaction

java.lang.Object
  extended by Java.problem.PossibleReaction

public class PossibleReaction
extends java.lang.Object

Description of a possible reaction

Since:
1.0

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

PossibleReaction

public PossibleReaction()
Method Detail

read

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)
Read range from input file in form of a buffered reader

Parameters:
commands - vector of strings on first line to read
in - buffered reader
line_no - current line in the buffered reader (i.e., problem file)
debug - debug level
variables - vector of variables
reactionTypes - vector of possible reaction types
variableSets - vector of variable sets
ranges - vector of possible ranges

getReactionType

public ReactionType getReactionType()
Get type of the reaction

Returns:
the reaction type

setReactionType

public void setReactionType(ReactionType r)
Set type of the reaction

Parameters:
r - the reaction type

getLocalVariableSet

public VariableSet getLocalVariableSet(int i)
Get the locally defined variable set i for this possible reaction

Parameters:
i - the index of the variable set
Returns:
the variable set

setLocalVariableSet

public void setLocalVariableSet(int i,
                                VariableSet vs)
Set the locally defined variable set i for this possible reaction

Parameters:
i - the index of the variable set
vs - the variable set

getNumberOfLocalVariableSets

public int getNumberOfLocalVariableSets()
Get the number of locally defined variable sets for this possible reaction

Returns:
the number of sets

getLocalRange

public Range getLocalRange(int i)
Get the locally defined range i for this possible reaction

Parameters:
i - the index of the range
Returns:
the range

setLocalRange

public void setLocalRange(int i,
                          Range r)
Set the locally defined range i for this possible reaction

Parameters:
i - the index of the range
r - the range

getNumberOfLocalRanges

public int getNumberOfLocalRanges()
Get the number of locally defined ranges for this possible reaction

Returns:
the number of ranges

toString

public java.lang.String toString()
Get string representation

Overrides:
toString in class java.lang.Object
Returns:
the string