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
FWSimInterfaceFWSimInterface.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, iFilenameFields inherited from class net.simplace.sim.io.interfaces.FWSimInterface
iColumnMap, iColumnNamesInt, iIntColumnNames -
Constructor Summary
ConstructorsModifierConstructorDescriptionNetCDFInterface(String aName, int aPoolSize, String aFileName, Integer aSimulationCount) protectedNetCDFInterface(String aName, org.jdom2.Element aInterfaceElement) -
Method Summary
Modifier and TypeMethodDescriptiongetInterface(FWSimVarMap aVarMap, FWSimVariable.CONTENT_TYPE aContentType) implementation of the get interface method.intread(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, toXMLMethods 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:
getInterfacein 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:FWSimInterfacefactory method creating an interface instance concerning the given data type- Specified by:
readin classFWSimInterface<FilePool>- Returns:
- generic
FWSimResourceCache - Throws:
MissingSimResourceException
-
getSimulationCount
public int getSimulationCount()- Returns:
-
getSectionSpec
- Returns:
-