fr.expression4j.basic
Interface MathematicalElement

All Known Implementing Classes:
BooleanMathematicalElement, ComplexImpl, RealImpl, StringMathematicalElement

public interface MathematicalElement


Field Summary
static java.lang.String COMPLEX_VALUE
           
static java.lang.String REAL_VALUE
           
 
Method Summary
 double getComplexValue()
          get the complex value of the number
 java.util.Properties getProperties()
          Get ptoperties used to initialize element (to store it in xml property file).
 double getRealValue()
          get the real value of the number
 int getType()
          Return the unique identifier of an element type (1 for real, 2 for complex ...).
 java.lang.Object getValue()
          get generic value of mathematical element.
 void setProperties(java.util.Properties properties)
          Set properties for initialisation (when stored in xml property file)
 

Field Detail

REAL_VALUE

static final java.lang.String REAL_VALUE
See Also:
Constant Field Values

COMPLEX_VALUE

static final java.lang.String COMPLEX_VALUE
See Also:
Constant Field Values
Method Detail

getValue

java.lang.Object getValue()
get generic value of mathematical element. Used to get value of custom element define by user.

Returns:
the value of the custom element.

getRealValue

double getRealValue()
get the real value of the number

Returns:
the real value of the number

getComplexValue

double getComplexValue()
                       throws MathematicalException
get the complex value of the number

Returns:
the complex value of the number
Throws:
MathematicalException

getType

int getType()
Return the unique identifier of an element type (1 for real, 2 for complex ...).

Returns:
the unique identifier of a MathematicalElement type.

setProperties

void setProperties(java.util.Properties properties)
Set properties for initialisation (when stored in xml property file)

Parameters:
properties - properties to set

getProperties

java.util.Properties getProperties()
Get ptoperties used to initialize element (to store it in xml property file).

Returns:
element properties.