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 MaxMinElement

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

public class MaxMinElement
extends java.lang.Object
implements ITextTableFormulaElement

Class for maximum and minimum elements.


Constructor Summary
MaxMinElement(java.lang.String formula, boolean max)
          Constructs new bracket element on the basis of the submitted expression.
 
Method Summary
 void addArgument(Argument argument)
          Addes a formula argument.
 double calculate()
          Calculates the maximum or minimum element.
 java.lang.String getFormula()
          Returns the formula of the bracket element.
 void setArguments(Arguments arguments)
          Addes a formula argument.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MaxMinElement

public MaxMinElement(java.lang.String formula,
                     boolean max)
Constructs new bracket element on the basis of the submitted expression.

Parameters:
formula - formula expression to be used
Method Detail

addArgument

public void addArgument(Argument argument)
Addes a formula argument.

Specified by:
addArgument in interface ITextTableFormulaElement
Parameters:
argument - the argument

setArguments

public void setArguments(Arguments arguments)
Addes a formula argument.

Parameters:
arguments - the arguments

calculate

public double calculate()
                 throws TextException
Calculates the maximum or minimum element.

Specified by:
calculate in interface ITextTableFormulaElement
Returns:
the result of the maximum or minimum
Throws:
TextException - if the formula can not be calculated

getFormula

public java.lang.String getFormula()
Returns the formula of the bracket element.

Specified by:
getFormula in interface ITextTableFormulaElement
Returns:
the formula of the bracket element

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