Class NetCDFOutputAdapter
java.lang.Object
net.simplace.sim.io.FWSimIOAdapter
net.simplace.sim.io.output.FWSimOutputAdapter
net.simplace.sim.io.output.adapter.NetCDFOutputAdapter
- 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
ConstructorDescriptionNetCDFOutputAdapter
(String aFile, String aName, String aDivider, int aOrderNumber, FWSimIOAdapter.FREQUENCE aFrequence, String aCacheSize, ProcessTime aProcessTime, FWSimSession aSession) NetCDFOutputAdapter
(FWSimOutputAdapter aOldAdapter, FILEInterface aInterface) NetCDFOutputAdapter
(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) void
updateFile
(FWSimVarMap aVarMap) 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
-
NetCDFOutputAdapter
public NetCDFOutputAdapter(org.jdom2.Element aResourceElement, int aOrderNumber, FWSimVarMap aVarMap) configure Output with XML-Element (jdom)- Parameters:
aResourceElement
-aOrderNumber
-aVarMap
-
-
NetCDFOutputAdapter
public NetCDFOutputAdapter(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
-
-
NetCDFOutputAdapter
- 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
-
-