Package net.simplace.sim.io.output
Class FWSimOutput
java.lang.Object
net.simplace.sim.io.output.FWSimOutput
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
FWSimCalibrationOutput
- Author:
- Andreas Enders
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected FWSimOutputAdapterof the Adapterprotected FWSimIOAdapter.FREQUENCEFrequence of Outputprotected StringName of Outputprotected HashMap<String,FWSimOutputCache> The cache of the outputsprotected JexlRuleScriptRule of Outputprotected FWSimProject.PROJECT_MODEprotected JexlRuleScript -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedFWSimOutput(String aName, FWSimIOAdapter.FREQUENCE aFrequence, FWSimVarMap aVarMap, String aRule, String aResetRule) Constructor from output Element: format likeFWSimOutput(org.jdom2.Element aOutputElement, int aOrderNumber, FWSimVarMap aVarMap, FWSimProject.PROJECT_MODE aProjectMode) Constructor from output Element: format like -
Method Summary
Modifier and TypeMethodDescriptionvoidcalculateStatistics(String aSimulationID) calculate the statisticsprotected voidfinalize()getName()booleanvoidinitialize(FWSimVarMap aVarMap) booleanvoidOUTPUT(LocalDateTime aCurrentDate, FWSimVarMap aVarMap, FWSimProject.PROJECT_MODE aCurrentProjectMode) Use this method to put output data to the output queue.voidremoveSimulationCache(FWSimVarMap aVarMap) voidrun()runs writing of data for the attached adaptertoString()voidupdateAdapter(FWSimInterface<?> aInterface, FWSimVarMap aVarMap)
-
Field Details
-
iName
Name of Output -
iFrequence
Frequence of Output -
iOutputScript
Rule of Output -
iResetScript
-
iAdapter
of the Adapter -
iOutputCache
The cache of the outputs -
iProjectMode
-
-
Constructor Details
-
FWSimOutput
public FWSimOutput(org.jdom2.Element aOutputElement, int aOrderNumber, FWSimVarMap aVarMap, FWSimProject.PROJECT_MODE aProjectMode) Constructor from output Element: format like- Parameters:
aOutputElement-aOrderNumber-aVarMap-aProjectMode-
-
FWSimOutput
protected FWSimOutput(String aName, FWSimIOAdapter.FREQUENCE aFrequence, FWSimVarMap aVarMap, String aRule, String aResetRule) Constructor from output Element: format like- Parameters:
aName-aFrequence-aVarMap-aProjectMode-aRule-aResetRule-
-
-
Method Details
-
updateAdapter
- Parameters:
aInterface-aVarMap-
-
initialize
- Parameters:
aVarMap-
-
OUTPUT
public void OUTPUT(LocalDateTime aCurrentDate, FWSimVarMap aVarMap, FWSimProject.PROJECT_MODE aCurrentProjectMode) Use this method to put output data to the output queue. The VarMap is filtered for the configuredO output fields and used accordingly- Parameters:
aCurrentDate-aVarMap-aCurrentProjectMode-
-
getName
- Returns:
- the name
-
getFrequence
- Returns:
- the frequency the Output is accessed
-
getOutputScript
- Returns:
- the rule
-
getResetScript
- Returns:
- the rule
-
hasStatistics
public boolean hasStatistics()- Returns:
- if a statistics is populated
-
calculateStatistics
calculate the statistics- Parameters:
aSimulationID-
-
removeSimulationCache
- Parameters:
aVarMap-
-
getProjectMode
- Returns:
- project mode
-
run
public void run()runs writing of data for the attached adapter -
isWriting
public boolean isWriting()- Returns:
- if Output is still writing or not
-
finalize
-
getAdapter
- Returns:
- the Adapter of the Output
-
toString
-