ru.tunegov.mathematic
Class Constant

java.lang.Object
  |
  +--ru.tunegov.mathematic.Constant
All Implemented Interfaces:
java.io.Serializable

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

This is a non-visual component that represents mathematical constants.

Since:
Mathematic 1.0
See Also:
Serialized Form

Field Summary
static int E
          The type of the constant.
static int I
          The type of the constant.
static int PI
          The type of the constant.
 
Constructor Summary
Constant()
          Construct a Constant object.
 
Method Summary
 int getConstant()
          Returns the type of the constant.
 ElementSet getValue()
          Returns the value of constant.
 void setConstant(int value)
          Sets the type of the constant.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PI

public static final int PI
The type of the constant. PI

E

public static final int E
The type of the constant. E

I

public static final int I
The type of the constant. I
Constructor Detail

Constant

public Constant()
Construct a Constant object.
Method Detail

getConstant

public int getConstant()
Returns the type of the constant.
Returns:
the type of the constant

getValue

public ElementSet getValue()
Returns the value of constant.
Returns:
The value of constant

setConstant

public void setConstant(int value)
Sets the type of the constant.
Parameters:
value - The new value