Java.solution
Class Solution

java.lang.Object
  extended by Java.solution.Solution

public class Solution
extends java.lang.Object

Description of a solution to a problem

Since:
1.0

Constructor Summary
Solution(Problem p)
          To read a solution requires reactionsTypes and variables from the problem
 
Method Summary
 java.lang.String getName()
          Get the name of the solution
 int getRAND1()
          Get the number of random starts in local parameter estimation
 int getRAND2()
          Get the number of random starts in global parameter estimation
 int getSEED()
          Get random seed used to generate solution
 double getSmoothingParameter()
          Get the smoothing parameter used to process data in problem
 void read(java.io.File file, int debug)
          Read the solution file
 void saveSBML(java.io.File file, java.lang.String solname, int debug)
          save the solution model as SBML
 java.lang.String toString()
          String value of solution
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Solution

public Solution(Problem p)
To read a solution requires reactionsTypes and variables from the problem

Parameters:
p - the problem from which the solution has been generated
Method Detail

read

public void read(java.io.File file,
                 int debug)
Read the solution file

Parameters:
file - to be read
debug - debug level; 0=none

saveSBML

public void saveSBML(java.io.File file,
                     java.lang.String solname,
                     int debug)
save the solution model as SBML

Parameters:
file - to save in
solname - name of solution
debug - debug level; 0=none

toString

public java.lang.String toString()
String value of solution

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

getSEED

public int getSEED()
Get random seed used to generate solution

Returns:
the seed

getSmoothingParameter

public double getSmoothingParameter()
Get the smoothing parameter used to process data in problem

Returns:
the smoothing parameter

getRAND1

public int getRAND1()
Get the number of random starts in local parameter estimation

Returns:
the number of random starts

getRAND2

public int getRAND2()
Get the number of random starts in global parameter estimation

Returns:
the number of random starts

getName

public java.lang.String getName()
Get the name of the solution

Returns:
the name