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
FieldsModifier and TypeFieldDescriptionprotected Stringthe file nameprotected FilePoolthe file info objectprotected Stringthe file nameFields inherited from class net.simplace.sim.io.interfaces.FWSimInterface
iColumnMap, iColumnNamesInt, iIntColumnNames -
Constructor Summary
ConstructorsModifierConstructorDescriptionFILEInterface(String aName, int aPoolSize, FWSimInterface.INTERFACE_TYPE aType, String aFileName, String aContent) protectedFILEInterface(String aName, FWSimInterface.INTERFACE_TYPE aType, org.jdom2.Element aInterfaceElement) -
Method Summary
Modifier and TypeMethodDescriptionvoidfinalize()getInterface(FWSimVarMap aVarMap, FWSimVariable.CONTENT_TYPE aContentType) implementation of the get interface method.voidsetFilename(String aFilename) org.jdom2.ElementtoXML()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:
getInterfacein 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:
toXMLin classFWSimInterface<FilePool>- Returns:
- Element containing configuration for this Interface
-
finalize
- Specified by:
finalizein classFWSimInterface<FilePool>- Throws:
Exception- See Also:
-