Package net.simplace.sim.io.interfaces
Class FILEInterface
java.lang.Object
net.simplace.sim.io.interfaces.FWSimInterface<FilePool>
net.simplace.sim.io.interfaces.FILEInterface
- Direct Known Subclasses:
CSVInterface
,NetCDFInterface
,XMLInterface
implementation of the FWSimInterface
giving access to resources from and output to files
- Author:
- Andreas Enders
-
Nested Class Summary
Nested classes/interfaces inherited from class net.simplace.sim.io.interfaces.FWSimInterface
FWSimInterface.INTERFACE_TYPE
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
the file nameprotected FilePool
the file info objectprotected String
the file nameFields inherited from class net.simplace.sim.io.interfaces.FWSimInterface
iColumnMap, iColumnNamesInt, iIntColumnNames
-
Constructor Summary
ModifierConstructorDescriptionFILEInterface
(String aName, int aPoolSize, FWSimInterface.INTERFACE_TYPE aType, String aFileName, String aContent) protected
FILEInterface
(String aName, FWSimInterface.INTERFACE_TYPE aType, org.jdom2.Element aInterfaceElement) -
Method Summary
Modifier and TypeMethodDescriptionvoid
finalize()
getInterface
(FWSimVarMap aVarMap, FWSimVariable.CONTENT_TYPE aContentType) implementation of the get interface method.void
setFilename
(String aFilename) org.jdom2.Element
toXML()
Methods inherited from class net.simplace.sim.io.interfaces.FWSimInterface
checkHeaderForColMode, createInterface, createInterface, createStatisticInterface, getInterfaceType, getName, getPoolSize, read, readColArray, toString, transformArrays, writeToDatabase
-
Field Details
-
iFilename
the file name -
iContent
the file name -
iFileinfo
the file info object
-
-
Constructor Details
-
FILEInterface
protected FILEInterface(String aName, FWSimInterface.INTERFACE_TYPE aType, org.jdom2.Element aInterfaceElement) - Parameters:
aName
- of the interfaceaPoolSize
-aType
- concerning data formataInterfaceElement
- configuration
-
FILEInterface
public FILEInterface(String aName, int aPoolSize, FWSimInterface.INTERFACE_TYPE aType, String aFileName, String aContent) - Parameters:
aName
- of the interfaceaPoolSize
-aType
- concerning data formataFileName
- configuration
-
-
Method Details
-
getInterface
implementation of the get interface method.- Specified by:
getInterface
in classFWSimInterface<FilePool>
- Returns:
- generic interface connection object. for example: database - connection; xml - fileinfo
- See Also:
-
getFilename
- Returns:
- the filename
-
setFilename
- Parameters:
aFilename
- the filename to set
-
toXML
public org.jdom2.Element toXML()- Overrides:
toXML
in classFWSimInterface<FilePool>
- Returns:
- Element containing configuration for this Interface
-
finalize
- Specified by:
finalize
in classFWSimInterface<FilePool>
- Throws:
Exception
- See Also:
-