eaLib API Docs
Last Modified : January 7 2002

mss.ea.core
Class StreamSort

java.lang.Object
  |
  +--mss.ea.core.GeneticOperator
        |
        +--mss.ea.core.StreamSort
All Implemented Interfaces:
SingleStreamProcessor, StreamProcessor

public class StreamSort
extends GeneticOperator
implements SingleStreamProcessor

Operator for sorting a stream of individuals.

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

Fields inherited from class mss.ea.core.GeneticOperator
description, ID, name
 
Constructor Summary
StreamSort()
          Constructor.
StreamSort(IndividualComparator ic)
          Constructor.
 
Method Summary
 Individual getBest(IndividualStream is)
          Gets the best individual in the stream.
 IndividualStream process(IndividualStream is)
          Processes an individual stream.
 IndividualStream sort(IndividualStream is)
          Sorts the stream.
 
Methods inherited from class mss.ea.core.GeneticOperator
getDescription, getID, getName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface mss.ea.core.StreamProcessor
getName
 

Constructor Detail

StreamSort

public StreamSort()
Constructor.

StreamSort

public StreamSort(IndividualComparator ic)
Constructor.
Parameters:
ic - individual comparator to be used for sorting
Method Detail

sort

public IndividualStream sort(IndividualStream is)
Sorts the stream.
Parameters:
is - individual stream to be sorted
Returns:
sorted individual stream

getBest

public Individual getBest(IndividualStream is)
Gets the best individual in the stream.
Parameters:
is - individual stream to search through
Returns:
best individual

process

public IndividualStream process(IndividualStream is)
Description copied from interface: SingleStreamProcessor
Processes an individual stream.
Specified by:
process in interface SingleStreamProcessor
Following copied from interface: mss.ea.core.SingleStreamProcessor
Parameters:
is - individual stream to process
Returns:
processed stream of individuals
Throws:
EAException -  

eaLib API Docs
Last Modified : January 7 2002

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