jadex.application.space.envsupport.evaluation
Class CSVFileDataConsumer

java.lang.Object
  extended by jadex.commons.SimplePropertyObject
      extended by jadex.application.space.envsupport.evaluation.CSVFileDataConsumer
All Implemented Interfaces:
ITableDataConsumer, IPropertyObject

public class CSVFileDataConsumer
extends SimplePropertyObject
implements ITableDataConsumer

Simple file consumer that writes data into a text file.


Field Summary
static String lf
          The linefeed separator.
protected  Writer writer
          The writer.
 
Fields inherited from class jadex.commons.SimplePropertyObject
pcs, properties
 
Constructor Summary
CSVFileDataConsumer()
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface jadex.commons.IPropertyObject
getProperty, getPropertyNames, hasProperty, setProperty
 

Field Detail

lf

public static final String lf
The linefeed separator.


writer

protected Writer writer
The writer.

Constructor Detail

CSVFileDataConsumer

public CSVFileDataConsumer()
Method Detail

consumeData

public void consumeData(long time,
                        double tick)
Consume data from the provider.

Specified by:
consumeData in interface ITableDataConsumer
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.


Copyright © 2010. All Rights Reserved.