Package repast.simphony.integration
Class DefaultDataFile
java.lang.Object
repast.simphony.integration.DefaultDataFile
- All Implemented Interfaces:
DataFile
,IntegrationSource
,Reader
,Writer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves the reader that will be used to perform reads.Retrieves the writer that will be used to perform writes.void
read()
void
setReadDescriptorFileName
(String readDescriptorFileName) void
Sets the reader to write with.void
setReadFileName
(String fileName) void
setWriteDescriptorFileName
(String descriptorFileName) void
setWriteFileName
(String fileName) void
Sets the writer to write with.void
setWrittenObject
(Queryable queryable) void
write()
-
Constructor Details
-
DefaultDataFile
public DefaultDataFile()
-
-
Method Details
-
getReadDescriptorFileName
- Specified by:
getReadDescriptorFileName
in interfaceDataFile
-
setReadDescriptorFileName
- Specified by:
setReadDescriptorFileName
in interfaceDataFile
-
write
- Specified by:
write
in interfaceWriter
- Throws:
org.jdom.JDOMException
IOException
-
read
- Specified by:
read
in interfaceReader
- Throws:
IOException
org.jdom.JDOMException
-
getWriteDescriptorFileName
- Specified by:
getWriteDescriptorFileName
in interfaceDataFile
-
setWriteDescriptorFileName
- Specified by:
setWriteDescriptorFileName
in interfaceDataFile
-
setReadFileName
- Specified by:
setReadFileName
in interfaceDataFile
-
getReadObject
- Specified by:
getReadObject
in interfaceDataFile
-
setWriteFileName
- Specified by:
setWriteFileName
in interfaceDataFile
-
setWriter
Description copied from interface:IntegrationSource
Sets the writer to write with.- Specified by:
setWriter
in interfaceIntegrationSource
- Parameters:
writer
- the writer to use
-
getWriter
Description copied from interface:IntegrationSource
Retrieves the writer that will be used to perform writes.- Specified by:
getWriter
in interfaceIntegrationSource
- Returns:
- the writer that will be used to perform writes
-
setReader
Description copied from interface:IntegrationSource
Sets the reader to write with.- Specified by:
setReader
in interfaceIntegrationSource
- Parameters:
reader
- the reader to use
-
getReader
Description copied from interface:IntegrationSource
Retrieves the reader that will be used to perform reads.- Specified by:
getReader
in interfaceIntegrationSource
- Returns:
- the reader that will be used to perform reads
-
setWrittenObject
- Specified by:
setWrittenObject
in interfaceWriter
-