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 CalculateFormula

java.lang.Object
  extended by ag.ion.bion.officelayer.internal.text.table.CalculateFormula

public class CalculateFormula
extends java.lang.Object

Class for calculating a formula.


Constructor Summary
CalculateFormula()
           
 
Method Summary
static double calculate(java.util.ArrayList toCalc)
          Calculates the element.
static double calculate(ITextTableFormulaElement[] elements, Arguments arguments, java.lang.String formula)
          Calculates the formula.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CalculateFormula

public CalculateFormula()
Method Detail

calculate

public static double calculate(ITextTableFormulaElement[] elements,
                               Arguments arguments,
                               java.lang.String formula)
                        throws TextException
Calculates the formula.

Parameters:
elements - the elements of the formula
arguments - the arguments of the formula
Returns:
the result of the formula
Throws:
TextException - if the formula can not be calculated

calculate

public static double calculate(java.util.ArrayList toCalc)
                        throws TextException
Calculates the element.

Returns:
the result of the element
Throws:
TextException - if the formula can not be calculated

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