Class CSVOutputAdapter
java.lang.Object
net.simplace.sim.io.FWSimIOAdapter
net.simplace.sim.io.output.FWSimOutputAdapter
net.simplace.sim.io.output.adapter.CSVOutputAdapter
- All Implemented Interfaces:
FWSimFieldContainer
interfaces between
FWSimOutput
and FWSimInterface
writing
output to CSV-File- 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
ConstructorDescriptionCSVOutputAdapter
(String aFile, String aName, String aDivider, int aOrderNumber, FWSimIOAdapter.FREQUENCE aFrequence, String aCacheSize, ProcessTime aProcessTime, FWSimSession aSession) CSVOutputAdapter
(FWSimOutputAdapter aOldAdapter, CSVInterface aInterface) CSVOutputAdapter
(org.jdom2.Element aResourceElement, int aOrderNumber, FWSimVarMap aVarMap) configure Output with XML-Element (jdom) -
Method Summary
Modifier and TypeMethodDescriptionvoid
finalize()
close the file accessprotected void
init
(FWSimVarMap aVarMap) boolean
updateFile
(FWSimVarMap aVarMap, long aSkipAboveSize) 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, isArrayMode, isConditionCheck, removeVariable, setInterface, setOrderNumber, toString, writeHeaderList
-
Constructor Details
-
CSVOutputAdapter
configure Output with XML-Element (jdom)- Parameters:
aResourceElement
-aOrderNumber
-aVarMap
-
-
CSVOutputAdapter
public CSVOutputAdapter(String aFile, String aName, String aDivider, int aOrderNumber, FWSimIOAdapter.FREQUENCE aFrequence, String aCacheSize, ProcessTime aProcessTime, FWSimSession aSession) - Parameters:
aFile
-aName
-aDivider
-aOrderNumber
-aFrequence
-aCacheSize
-aProcessTime
-aSession
-
-
CSVOutputAdapter
- Parameters:
aOldAdapter
-aInterface
-
-
-
Method Details
-
init
- Specified by:
init
in classFWSimOutputAdapter
-
writeData
write data to csv-file - done in different thread than getting data as output- Specified by:
writeData
in classFWSimOutputAdapter
- See Also:
-
finalize
close the file access- Overrides:
finalize
in classFWSimIOAdapter
- Throws:
Exception
- See Also:
-
updateFile
- Parameters:
aVarMap
-aSkipAboveSize
-- Returns:
- if file already exists
-