Elexis: Das führende OpenSource-Arztpraxisprogamm
im deutschsprachigen Raum
Java doc for Elexis version 2.1.7.dev vom 17.03.2013

ag.ion.bion.officelayer.internal.text.table
Class TextTableFormula

java.lang.Object
  extended by ag.ion.bion.officelayer.internal.text.table.TextTableFormula
All Implemented Interfaces:
IFormula

public class TextTableFormula
extends java.lang.Object
implements IFormula

Class for parsing a formula.


Field Summary
static java.lang.String DIVIDE
           
static java.lang.String E
           
static java.lang.String MEAN
           
static java.lang.String MINUS
           
static java.lang.String MULTIPLY
           
static java.lang.String[] operators
           
static java.lang.String PERCENT
           
static java.lang.String PI
           
static java.lang.String PLUS
           
static java.lang.String POW
           
static java.lang.String ROUND
           
static java.lang.String SQRT
           
 
Constructor Summary
TextTableFormula(TextTableFormulaExpression textTableFormulaExpression)
          Constructs new Formula on the basis of the submitted expression.
 
Method Summary
 double calcFormula()
          Calculates the formula.
 IArgument[] getArguments()
          Returns the arguments of the formula.
 ITextTableCellReferencesService getCellReferencesService()
          Returns text table cell references service.
 java.lang.String getExpression()
          Returns formula expression.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PI

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

E

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

PLUS

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

MINUS

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

DIVIDE

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

MULTIPLY

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

ROUND

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

PERCENT

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

SQRT

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

POW

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

MEAN

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

operators

public static final java.lang.String[] operators
Constructor Detail

TextTableFormula

public TextTableFormula(TextTableFormulaExpression textTableFormulaExpression)
                 throws java.lang.IllegalArgumentException
Constructs new Formula on the basis of the submitted expression.

Parameters:
formulaExpression - formula expression to be used
Throws:
java.lang.IllegalArgumentException - if the submitted formula is not valid
Method Detail

getArguments

public IArgument[] getArguments()
Returns the arguments of the formula.

Specified by:
getArguments in interface IFormula
Returns:
arguments of the formula

calcFormula

public double calcFormula()
                   throws TextException
Calculates the formula.

Specified by:
calcFormula in interface IFormula
Returns:
calculated value
Throws:
TextException - if the formula can not be calculated

getCellReferencesService

public ITextTableCellReferencesService getCellReferencesService()
Returns text table cell references service.

Specified by:
getCellReferencesService in interface IFormula
Returns:
text table cell references service

getExpression

public java.lang.String getExpression()
Returns formula expression.

Specified by:
getExpression in interface IFormula
Returns:
formula expression

Elexis: Das führende OpenSource-Arztpraxisprogamm
im deutschsprachigen Raum
Java doc for Elexis version 2.1.7.dev vom 17.03.2013