Class CSVFileDataConsumer
- java.lang.Object
-
- jadex.commons.SimplePropertyObject
-
- jadex.extension.envsupport.evaluation.CSVFileDataConsumer
-
- All Implemented Interfaces:
IPropertyObject
,ITableDataConsumer
public class CSVFileDataConsumer extends SimplePropertyObject implements ITableDataConsumer
Simple file consumer that writes data into a text file.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
lf
The linefeed separator.protected java.io.Writer
writer
The writer.-
Fields inherited from class jadex.commons.SimplePropertyObject
pcs, properties
-
-
Constructor Summary
Constructors Constructor Description CSVFileDataConsumer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
consumeData(long time, double tick)
Consume data from the provider.AbstractEnvironmentSpace
getSpace()
Get the space.protected ITableDataProvider
getTableDataProvider()
Get the table data provider.-
Methods inherited from class jadex.commons.SimplePropertyObject
addPropertyChangeListener, getProperties, getProperty, getPropertyNames, hasProperty, removePropertyChangeListener, setProperties, setProperty, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jadex.commons.IPropertyObject
getProperty, getPropertyNames, hasProperty, setProperty
-
-
-
-
Method Detail
-
consumeData
public void consumeData(long time, double tick)
Consume data from the provider.- Specified by:
consumeData
in interfaceITableDataConsumer
- Parameters:
time
- The current time.tick
- The current tick.
-
getSpace
public AbstractEnvironmentSpace getSpace()
Get the space.- Returns:
- The space.
-
getTableDataProvider
protected ITableDataProvider getTableDataProvider()
Get the table data provider.- Returns:
- The table data provider.
-
-