Class HistogramDataSink

java.lang.Object
repast.simphony.chart2.HistogramDataSink
All Implemented Interfaces:
DataSink

public class HistogramDataSink extends Object implements DataSink
DataSink that passes data on to a HistogramDataSet.
Author:
Nick Collier
  • Constructor Details

    • HistogramDataSink

      public HistogramDataSink(String sourceId, AbstractHistogramDataset data)
      Creates a HistogramDataSink that will update the specified histogram dataset with data from the specified source id.
      Parameters:
      data -
      sourceId -
  • Method Details

    • open

      public void open(List<String> sourceIds)
      Description copied from interface: DataSink
      Open this DataSink.
      Specified by:
      open in interface DataSink
      Parameters:
      sourceIds - a list of the DataSource ids for which this is the sink.
    • rowStarted

      public void rowStarted()
      Description copied from interface: DataSink
      Notifies this DataSink that the next append is that start of a "row." of data.
      Specified by:
      rowStarted in interface DataSink
    • append

      public void append(String key, Object value)
      Description copied from interface: DataSink
      Appends the specified data to this sink. The key can be, for example, a column name and the value the current value for that column.
      Specified by:
      append in interface DataSink
      Parameters:
      key - the data's key
      value - the data's value
    • rowEnded

      public void rowEnded()
      Description copied from interface: DataSink
      Notifies this DataSink that the last append was end of a "row."
      Specified by:
      rowEnded in interface DataSink
    • recordEnded

      public void recordEnded()
      Description copied from interface: DataSink
      Notified this DataSink that the current record has ended.
      Specified by:
      recordEnded in interface DataSink
    • flush

      public void flush()
      Description copied from interface: DataSink
      Flushes any data buffered by this DataSink.
      Specified by:
      flush in interface DataSink
    • close

      public void close()
      Description copied from interface: DataSink
      Close this DataSink.
      Specified by:
      close in interface DataSink