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 MeanElement

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

public class MeanElement
extends java.lang.Object
implements ITextTableFormulaElement

Class for mean elements.


Constructor Summary
MeanElement(java.lang.String formula)
          Constructs new mean element on the basis of the submitted expression.
 
Method Summary
 void addArgument(Argument argument)
          Addes a formula argument.
 double calculate()
          Calculates the mean element.
 java.lang.String getFormula()
          Returns the formula of the bracket element.
 int getMeanArgumentsCount()
          Retunrs the count of the mean arguments.
 java.lang.String replace()
          Replaces the mean.
 void setMeanElements(MeanElement[] meanElements)
          Sets the internal bracket elements.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MeanElement

public MeanElement(java.lang.String formula)
Constructs new mean 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

calculate

public double calculate()
                 throws TextException
Calculates the mean element.

Specified by:
calculate in interface ITextTableFormulaElement
Returns:
the result of the mean
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

setMeanElements

public void setMeanElements(MeanElement[] meanElements)
Sets the internal bracket elements.

Parameters:
meanElements - the bracket elements

getMeanArgumentsCount

public int getMeanArgumentsCount()
Retunrs the count of the mean arguments.

Returns:
the count of the mean arguments

replace

public java.lang.String replace()
Replaces the mean.

Returns:
the replaces string

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