Class CacheOutputAdapter
java.lang.Object
net.simplace.sim.io.FWSimIOAdapter
net.simplace.sim.io.output.FWSimOutputAdapter
net.simplace.sim.io.output.adapter.CacheOutputAdapter
- All Implemented Interfaces:
FWSimFieldContainer
interfaces between
FWSimOutput
and FWSimInterface
storing the output in the memory for later use in
the application (diagram, calibration, ...)- Author:
- Andreas Enders
-
Nested Class Summary
Nested classes/interfaces inherited from class net.simplace.sim.io.FWSimIOAdapter
FWSimIOAdapter.FREQUENCE
-
Field Summary
Fields inherited from class net.simplace.sim.io.output.FWSimOutputAdapter
iCacheSize, iQueue
Fields inherited from class net.simplace.sim.io.FWSimIOAdapter
iArrayMode, iFieldcount, iFrequence, iHeaderVariables, iInterface, iJexlRule, iKeyMap, iName, iOrderNumber, iProcessTime, iResourceElement, iSession, iSourceKey
-
Constructor Summary
ConstructorDescriptionCacheOutputAdapter
(String aName, int aOrderNumber, FWSimIOAdapter.FREQUENCE aFrequence, String aCacheSize, ProcessTime aProcessTime, FWSimSession aSession) CacheOutputAdapter
(String aName, FWSimIOAdapter.FREQUENCE aFrequence, LinkedHashMap<String, FWSimVariable<?>> aVarList, FWSimVarMap aVarMap) Constructor only used for CalibrationOutputCacheOutputAdapter
(FWSimOutputAdapter aOldAdapter, MEMORYInterface aInterface) CacheOutputAdapter
(org.jdom2.Element aResourceElement, int aOrderNumber, FWSimVarMap aVarMap) configure Output with XML-Element (jdom) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
finalize()
getDataContainer
(String aSimulationID) getResultCache
(String aID) protected void
init
(FWSimVarMap aVarMap) boolean
void
registerSimulation
(FWSimSimulation aFwSimSimulation) protected void
writeData
(FWSimQueueObjectMap aObjectToWrite) write data to csv-file - done in different thread than getting data as outputMethods inherited from class net.simplace.sim.io.output.FWSimOutputAdapter
createAdapter, createOutputFromObservable, getContentType, getInputVariables, getInterface, getOutputVariables, getQueueLenth, getResetScript, getStatistics, getStatisticsAdapter, getStatisticsHeaderVariables, getStatisticsResultCache, getVarMap, hasStatistics, initialize, isActive, isWriting, receiveData, toHTMLTablestring, toXML, updateAdapter, writeData
Methods inherited from class net.simplace.sim.io.FWSimIOAdapter
addProcessTime, addVariable, checkCondition, createFormFields, createVariables, getCreateFormXML, getEditFormXML, getFieldMap, getFrequence, getHeaderVariables, getHeaderXML, getJexlRule, getKeyMap, getName, getOrderNumber, getVariable, isConditionCheck, removeVariable, setInterface, setOrderNumber, toString, writeHeaderList
-
Constructor Details
-
CacheOutputAdapter
public CacheOutputAdapter(org.jdom2.Element aResourceElement, int aOrderNumber, FWSimVarMap aVarMap) configure Output with XML-Element (jdom)- Parameters:
aResourceElement
-aOrderNumber
-aVarMap
-
-
CacheOutputAdapter
public CacheOutputAdapter(String aName, int aOrderNumber, FWSimIOAdapter.FREQUENCE aFrequence, String aCacheSize, ProcessTime aProcessTime, FWSimSession aSession) - Parameters:
aName
-aOrderNumber
-aFrequence
-aCacheSize
-aSession
-
-
CacheOutputAdapter
public CacheOutputAdapter(String aName, FWSimIOAdapter.FREQUENCE aFrequence, LinkedHashMap<String, FWSimVariable<?>> aVarList, FWSimVarMap aVarMap) Constructor only used for CalibrationOutput- Parameters:
aName
-aFrequence
-aVarList
-aVarMap
-
-
CacheOutputAdapter
- Parameters:
aOldAdapter
-aInterface
-
-
-
Method Details
-
init
- Specified by:
init
in classFWSimOutputAdapter
-
isArrayMode
public boolean isArrayMode()- Overrides:
isArrayMode
in classFWSimIOAdapter
- Returns:
- if the Adapter is used in ArrayMode
-
writeData
write data to csv-file - done in different thread than getting data as output- Specified by:
writeData
in classFWSimOutputAdapter
- See Also:
-
registerSimulation
- Parameters:
aFwSimSimulation
-
-
getResultCache
- Parameters:
aID
-- Returns:
- the resultCache
-
getDataContainer
-
finalize
- Overrides:
finalize
in classFWSimIOAdapter
- Throws:
Exception
- See Also:
-
clearSimulation
public void clearSimulation()
-