Package net.simplace.sim.io.output
Class FWSimStatisticVariable
java.lang.Object
net.simplace.sim.io.output.FWSimStatisticVariable
- Direct Known Subclasses:
DefaultSimStatistic
- Author:
- Andreas Enders
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedFWSimStatisticVariable(org.jdom2.Element aStatElement, FWSimOutputAdapter aFwSimOutputAdapter) hidden constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Doubleimplement this method to calculate the statistical value for the given modecalculateStatistics(Object[] aDataArray, Object[] aDataArray2) calculates the statistics for the given modestatic FWSimStatisticVariablecreateStatistic(org.jdom2.Element aStatElement, FWSimOutputAdapter aFwSimOutputAdapter) reads from sources likegetUnit()org.jdom2.ElementtoXML()
-
Constructor Details
-
FWSimStatisticVariable
protected FWSimStatisticVariable(org.jdom2.Element aStatElement, FWSimOutputAdapter aFwSimOutputAdapter) hidden constructor- Parameters:
aStatElement-aFwSimOutputAdapter-
-
-
Method Details
-
createStatistic
public static FWSimStatisticVariable createStatistic(org.jdom2.Element aStatElement, FWSimOutputAdapter aFwSimOutputAdapter) reads from sources like- Parameters:
aStatElement-aFwSimOutputAdapter-- Returns:
- the newly created statistics container
-
calculateStatistics
calculates the statistics for the given mode- Parameters:
aDataArray-aDataArray2-- Returns:
-
calculate
implement this method to calculate the statistical value for the given mode- Parameters:
aDataArray-aDataArray2-aStatMode-- Returns:
-
getStatID
- Returns:
- the statID
-
getStatSimVarID
- Returns:
- the statSimVarID
-
getStatObsVarID
- Returns:
- the statObsVarID
-
getStatMode
- Returns:
- the statMode
-
getUnit
- Returns:
- the statMode
-
getDescription
- Returns:
- the statMode
-
toXML
public org.jdom2.Element toXML()- Returns:
- the Element of the variable with all needed values
-