public class Variable
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
Variable(java.lang.String name)
Constructor with name of variable and initial value zero.
|
Modifier and Type | Method and Description |
---|---|
PuComplex |
getComplexValue()
Get current complex value of variable.
|
double |
getValue()
Get current value of variable.
|
boolean |
isComplex()
Return whether double or complex.
|
static Variable |
make(java.lang.String name)
Return the unique variable named `name', or create it if it does not exist yet.
|
void |
set_value(double val)
Deprecated.
use setValue(double) instead
|
void |
setComplex(boolean bVal)
Return whether double or complex.
|
void |
setComplexValue(double u,
double v)
Set current complex value of variable.
|
void |
setComplexValue(PuComplex zval)
Set current complex value of variable.
|
void |
setValue(double val)
Set current value of variable.
|
java.lang.String |
toString()
Create a string representation consisting of name and value.
|
double |
value()
Deprecated.
use setValue(double) instead
|
public Variable(java.lang.String name)
public static Variable make(java.lang.String name)
public java.lang.String toString()
toString
in class java.lang.Object
public double getValue()
public void setValue(double val)
public PuComplex getComplexValue()
public void setComplexValue(PuComplex zval)
public void setComplexValue(double u, double v)
public boolean isComplex()
public void setComplex(boolean bVal)
public double value()
public void set_value(double val)
"