jv.thirdParty.expr

## Class Variable

- java.lang.Object
- - jv.thirdParty.expr.Variable

- All Implemented Interfaces:
    java.io.Serializable

      public class Variable
      extends java.lang.Object
      implements java.io.Serializable

  Variables associate values with names. Copyright 1996 by Darius Bacon; see the file COPYING.
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Variable(java.lang.String name)` Constructor with name of variable and initial value zero.

  - ### Method Summary

    Methods
    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

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### Variable

          public Variable(java.lang.String name)

      Constructor with name of variable and initial value zero.

  - ### Method Detail

    - #### make

          public static Variable make(java.lang.String name)

      Return the unique variable named `name', or create it if it does not exist yet.

    - #### toString

          public java.lang.String toString()

      Create a string representation consisting of name and value.
      Overrides:
        `toString` in class `java.lang.Object`

    - #### getValue

          public double getValue()

      Get current value of variable.

    - #### setValue

          public void setValue(double val)

      Set current value of variable.

    - #### getComplexValue

          public PuComplex getComplexValue()

      Get current complex value of variable.

    - #### setComplexValue

          public void setComplexValue(PuComplex zval)

      Set current complex value of variable.

    - #### setComplexValue

          public void setComplexValue(double u,
                             double v)

      Set current complex value of variable.

    - #### isComplex

          public boolean isComplex()

      Return whether double or complex.

    - #### setComplex

          public void setComplex(boolean bVal)

      Return whether double or complex.

    - #### value

          public double value()

      Deprecated. use setValue(double) instead
      Get current value of variable.

    - #### set_value

          public void set_value(double val)

      Deprecated. use setValue(double) instead
      Set current value of variable.

"

The software JavaView? is copyright protected. All Rights Reserved.
"