ucl.physiol.neuroconstruct.utils.equation
Class Variable

java.lang.Object
  extended by ucl.physiol.neuroconstruct.utils.equation.EquationUnit
      extended by ucl.physiol.neuroconstruct.utils.equation.Variable
All Implemented Interfaces:
Serializable

public class Variable
extends EquationUnit

Helper class for parsing equations

Author:
Padraig Gleeson
See Also:
Serialized Form

Constructor Summary
Variable()
          Default constructor is needed for XMLEncoder.
Variable(String name)
           
 
Method Summary
 Object clone()
           
 boolean equals(Object obj)
           
 double evaluateAt(Argument[] args)
           
 String getNiceString()
           
 int hashCode()
           
 void setName(String name)
           
 String toString()
           
 
Methods inherited from class ucl.physiol.neuroconstruct.utils.equation.EquationUnit
getName, main
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Variable

public Variable(String name)

Variable

public Variable()
Default constructor is needed for XMLEncoder.

Method Detail

evaluateAt

public double evaluateAt(Argument[] args)
                  throws EquationException
Specified by:
evaluateAt in class EquationUnit
Throws:
EquationException

getNiceString

public String getNiceString()
Specified by:
getNiceString in class EquationUnit

toString

public String toString()
Specified by:
toString in class EquationUnit

equals

public boolean equals(Object obj)
Specified by:
equals in class EquationUnit

clone

public Object clone()
Overrides:
clone in class Object

hashCode

public int hashCode()
Specified by:
hashCode in class EquationUnit

setName

public void setName(String name)
Overrides:
setName in class EquationUnit