Java.problem
Class ErrorFunction

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

public class ErrorFunction
extends java.lang.Object

Description of the error function

Since:
1.0

Constructor Summary
ErrorFunction()
           
 
Method Summary
 java.lang.String getEquation()
          Get the equation in string form
 double getLambda()
          Get the lambda parameter
 java.lang.String getType()
          Get the type
 int read(java.lang.String[] commands, java.io.BufferedReader in, int line_no, int debug)
          Read error function from input file in form of a buffered reader
 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

ErrorFunction

public ErrorFunction()
Method Detail

read

public int read(java.lang.String[] commands,
                java.io.BufferedReader in,
                int line_no,
                int debug)
Read error function 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

getType

public java.lang.String getType()
Get the type

Returns:
the type

getLambda

public double getLambda()
Get the lambda parameter

Returns:
lambda

getEquation

public java.lang.String getEquation()
Get the equation in string form

Returns:
the equation

toString

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

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