eaLib API Docs
Last Modified : January 7 2002

mss.ea.core
Interface IndividualSink

All Known Implementing Classes:
GenericSink, XMLSink

public interface IndividualSink

Interface for classes which are able to collect individuals and store them.

Since:
0.1
Version:
$Revision: 1.3 $ $Date: 2001/11/12 16:46:39 $
Author:
Andreas Rummler

Method Summary
 void add(Individual i)
          Adds an individual to the sink.
 void add(Individual[] ia)
          Adds an array of indiviualds to the sink.
 void add(IndividualStream is)
          Adds a stream of individuals to the sink.
 java.lang.Object getContents()
          Returns the contents of this sink.
 

Method Detail

add

public void add(Individual i)
         throws SinkOverflowException
Adds an individual to the sink.
Parameters:
i - individual to add
Throws:
SinkOverflowException - thrown in case that the individual can not be stored

add

public void add(Individual[] ia)
         throws SinkOverflowException
Adds an array of indiviualds to the sink.
Parameters:
ia - array with individuals
Throws:
SinkOverflowException - thrown in case that the individuals can not be stored

add

public void add(IndividualStream is)
         throws SinkOverflowException
Adds a stream of individuals to the sink.
Parameters:
is - stream of individuals
Throws:
SinkOverflowException - thrown in case that the individual stream can not be stored

getContents

public java.lang.Object getContents()
Returns the contents of this sink. This should be called for getting and processing the results of an algorithm.
Returns:
contents of this sink

eaLib API Docs
Last Modified : January 7 2002

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