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
Modifier and TypeFieldDescriptionprotected FWSimOutputAdapter
of the Adapterprotected FWSimIOAdapter.FREQUENCE
Frequence of Outputprotected String
Name of Outputprotected HashMap<String,
FWSimOutputCache> The cache of the outputsprotected JexlRuleScript
Rule of Outputprotected FWSimProject.PROJECT_MODE
protected JexlRuleScript
-
Constructor Summary
ModifierConstructorDescriptionprotected
FWSimOutput
(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 TypeMethodDescriptionvoid
calculateStatistics
(String aSimulationID) calculate the statisticsprotected void
finalize()
getName()
boolean
void
initialize
(FWSimVarMap aVarMap) boolean
void
OUTPUT
(LocalDateTime aCurrentDate, FWSimVarMap aVarMap, FWSimProject.PROJECT_MODE aCurrentProjectMode) Use this method to put output data to the output queue.void
removeSimulationCache
(FWSimVarMap aVarMap) void
run()
runs writing of data for the attached adaptertoString()
void
updateAdapter
(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
-