eaLib API Docs
Last Modified : January 7 2002

mss.ea.al
Class ReplicatingSplitter

java.lang.Object
  |
  +--mss.ea.core.GeneticOperator
        |
        +--mss.ea.al.ReplicatingSplitter
All Implemented Interfaces:
IndividualSplitter

public class ReplicatingSplitter
extends GeneticOperator
implements IndividualSplitter

Operator for replication of streams.

Since:
0.2.1
Version:
$Revision: 1.2 $ $Date: 2001/11/20 12:26:47 $
Author:
Andreas Rummler

Field Summary
protected  int size
          Number of streams to split the incoming stream into.
 
Fields inherited from class mss.ea.core.GeneticOperator
description, ID, name
 
Constructor Summary
ReplicatingSplitter(int splitSize)
          Constructor.
 
Method Summary
 int getSplitSize()
          Gets the number of streams.
 IndividualStream[] split(IndividualStream is)
          Splits up the given 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
 

Field Detail

size

protected int size
Number of streams to split the incoming stream into.
Constructor Detail

ReplicatingSplitter

public ReplicatingSplitter(int splitSize)
Constructor.
Parameters:
splitSize - number of streams to split the incoming stream into.
Method Detail

getSplitSize

public int getSplitSize()
Gets the number of streams.
Returns:
number of streams to split the incoming stream into

split

public IndividualStream[] split(IndividualStream is)
Splits up the given stream. This method splits up the stream by replicating the individuals in the input stream. The original stream is sent to output stream 0, all the other output streams contain copies of the individuals from the input stream in the same order.
Specified by:
split in interface IndividualSplitter
Parameters:
is - stream to be splitted up
Returns:
array with new streams

eaLib API Docs
Last Modified : January 7 2002

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