Package net.simplace.sim.io.interfaces
Class NetCDFInterface
java.lang.Object
net.simplace.sim.io.interfaces.FWSimInterface<FilePool>
net.simplace.sim.io.interfaces.FILEInterface
net.simplace.sim.io.interfaces.NetCDFInterface
implementation of the
giving access to resources from and output to files
divider can be given in xml-configuration tag. If not given divider will by default be 'tab' or '\t'
Use Interface by
FWSimInterface
FWSimInterface.getInterface(FWSimVarMap, CONTENT_TYPE)
.getLinesOfFile();- Author:
- Andreas Enders
-
Nested Class Summary
Nested classes/interfaces inherited from class net.simplace.sim.io.interfaces.FWSimInterface
FWSimInterface.INTERFACE_TYPE
-
Field Summary
Fields inherited from class net.simplace.sim.io.interfaces.FILEInterface
iContent, iFileinfo, iFilename
Fields inherited from class net.simplace.sim.io.interfaces.FWSimInterface
iColumnMap, iColumnNamesInt, iIntColumnNames
-
Constructor Summary
ModifierConstructorDescriptionNetCDFInterface
(String aName, int aPoolSize, String aFileName, Integer aSimulationCount) protected
NetCDFInterface
(String aName, org.jdom2.Element aInterfaceElement) -
Method Summary
Modifier and TypeMethodDescriptiongetInterface
(FWSimVarMap aVarMap, FWSimVariable.CONTENT_TYPE aContentType) implementation of the get interface method.int
read
(FWSimSession aFwSimSession, String aProjectID, Object aCache, LinkedHashMap<String, String> aKeyMap, FWSimInputAdapter aResourceAdapter, String aUniqueID, FWSimInterface.INTERFACE_TYPE aInterfaceType) factory method creating an interface instance concerning the given data typeMethods inherited from class net.simplace.sim.io.interfaces.FILEInterface
finalize, getFilename, setFilename, toXML
Methods inherited from class net.simplace.sim.io.interfaces.FWSimInterface
checkHeaderForColMode, createInterface, createInterface, createStatisticInterface, getInterfaceType, getName, getPoolSize, readColArray, toString, transformArrays, writeToDatabase
-
Constructor Details
-
NetCDFInterface
- Parameters:
aName
-aPoolSize
-aInterfaceElement
-
-
NetCDFInterface
- Parameters:
aName
-aPoolSize
-aFileName
-aSimulationCount
-aDivider
-
-
-
Method Details
-
getInterface
implementation of the get interface method.- Overrides:
getInterface
in classFILEInterface
- Returns:
- generic interface connection object. for example: database - connection; xml - fileinfo
- See Also:
-
read
public FWSimResourceCache read(FWSimSession aFwSimSession, String aProjectID, Object aCache, LinkedHashMap<String, String> aKeyMap, FWSimInputAdapter aResourceAdapter, String aUniqueID, FWSimInterface.INTERFACE_TYPE aInterfaceType) throws MissingSimResourceExceptionDescription copied from class:FWSimInterface
factory method creating an interface instance concerning the given data type- Specified by:
read
in classFWSimInterface<FilePool>
- Returns:
- generic
FWSimResourceCache
- Throws:
MissingSimResourceException
-
getSimulationCount
public int getSimulationCount()- Returns:
-
getSectionSpec
- Returns:
-