eaLib API Docs
Last Modified : January 7 2002

mss.ea.stat
Class AbstractUnbufferedCollector

java.lang.Object
  |
  +--mss.ea.stat.AbstractUnbufferedCollector
All Implemented Interfaces:
DataCollector, java.util.EventListener, NotificationListener
Direct Known Subclasses:
GenerationCollector, PopulationSizeCollector, ScoreCollector

public abstract class AbstractUnbufferedCollector
extends java.lang.Object
implements DataCollector, NotificationListener

Abstract implementation of an unbuffered data collector.

Since:
0.1
Version:
0.1 (08-21-2001)
Author:
Andreas Rummler

Constructor Summary
AbstractUnbufferedCollector(DataTracker tracker)
          Constructor.
 
Method Summary
abstract  void collect()
          Collects the data.
 java.lang.Object getData()
          Returns the collected data.
 boolean isBuffered()
          Indicates that this tracker is not buffered.
 void notificationSignal()
          Collects data and delivers the data to the tracker.
 void setTracker(DataTracker tracker)
          Sets a new data tracker.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractUnbufferedCollector

public AbstractUnbufferedCollector(DataTracker tracker)
Constructor.
Parameters:
tracker - tracker to send data to
Method Detail

collect

public abstract void collect()
Collects the data.
Specified by:
collect in interface DataCollector

getData

public java.lang.Object getData()
Returns the collected data. This is called from the appropriate tracker.
Specified by:
getData in interface DataCollector
Returns:
collected data object

isBuffered

public boolean isBuffered()
Indicates that this tracker is not buffered.
Specified by:
isBuffered in interface DataCollector
Returns:
always false

notificationSignal

public void notificationSignal()
Collects data and delivers the data to the tracker.
Specified by:
notificationSignal in interface NotificationListener

setTracker

public void setTracker(DataTracker tracker)
Sets a new data tracker.
Parameters:
tracker - new data tracker

eaLib API Docs
Last Modified : January 7 2002

Copyright © 2000-2001 Technical University of Ilmenau, Department ESS