com.dandymadeproductions.expressionparser
Class Variable

java.lang.Object
  extended by com.dandymadeproductions.expressionparser.Variable

public class Variable
extends java.lang.Object

A variable in an expression.

Version:
2.0 02/13/2012
Author:
David Wanqian Liu, Dana M. Proctor

Field Summary
static Variable E
           
static Variable PI
           
 
Constructor Summary
Variable()
           
Variable(java.lang.String str)
           
Variable(java.lang.String str, Complex v)
           
Variable(java.lang.String str, double v)
           
 
Method Summary
 java.lang.String getNameString()
           
 double getValue()
           
 Complex getValueComplex()
           
static Variable getVariableX()
           
static Variable getVariableY()
           
static Variable getVariableZ()
           
static void setVariableX(Variable x_val)
           
static void setVariableY(Variable y_val)
           
static void setVariableZ(Variable z_val)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PI

public static final Variable PI

E

public static final Variable E
Constructor Detail

Variable

public Variable()

Variable

public Variable(java.lang.String str)

Variable

public Variable(java.lang.String str,
                double v)

Variable

public Variable(java.lang.String str,
                Complex v)
Method Detail

getVariableX

public static Variable getVariableX()

getVariableY

public static Variable getVariableY()

getVariableZ

public static Variable getVariableZ()

getNameString

public java.lang.String getNameString()

getValue

public double getValue()

getValueComplex

public Complex getValueComplex()

setVariableX

public static void setVariableX(Variable x_val)

setVariableY

public static void setVariableY(Variable y_val)

setVariableZ

public static void setVariableZ(Variable z_val)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object