eaLib API Docs
Last Modified : January 7 2002

mss.ea.al
Class DefaultIndividualConduit

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

public class DefaultIndividualConduit
extends GeneticOperator
implements IndividualConduit

Default implementation of an individual stream conduit. This conduit contains a number of stream processors. The incoming stream are processed by these operators and the resulting streams are returned. The streams and the processors are mapped in a one to one manner. So incoming stream number i is processed by processor number i and returned at the i'th position in the output array. The processing sequence starts from index 0.

Since:
0.2.3
Version:
$Revision: 1.2 $ $Date: 2001/12/10 14:02:34 $
Author:
Andreas Rummler

Fields inherited from class mss.ea.core.GeneticOperator
description, ID, name
 
Constructor Summary
DefaultIndividualConduit(int conduitSize)
          Constructor with number of processor slots.
DefaultIndividualConduit(SingleStreamProcessor[] array)
          Constructor with processor array.
 
Method Summary
 SingleStreamProcessor getProcessor(int index)
          Gets a stream processor from the internal array.
 IndividualStream[] process(IndividualStream[] isa)
          Processes an stream array.
 void setProcessor(SingleStreamProcessor processor, int index)
          Sets a new stream processor.
 
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
 

Constructor Detail

DefaultIndividualConduit

public DefaultIndividualConduit(int conduitSize)
Constructor with number of processor slots.
Parameters:
conduitSize - number of processors

DefaultIndividualConduit

public DefaultIndividualConduit(SingleStreamProcessor[] array)
Constructor with processor array.
Parameters:
array - processor array
Method Detail

setProcessor

public void setProcessor(SingleStreamProcessor processor,
                         int index)
Sets a new stream processor.
Parameters:
processor - new stream processor
index - index of the processor

getProcessor

public SingleStreamProcessor getProcessor(int index)
Gets a stream processor from the internal array.
Parameters:
index - index of the processor
Returns:
processor from the internal array

process

public IndividualStream[] process(IndividualStream[] isa)
Processes an stream array. In case that one of the internal stream processors fails, an empty stream is generated at this position.
Specified by:
process in interface IndividualConduit
Parameters:
isa - array of individual streams to be processed
Returns:
processed individual stream array

eaLib API Docs
Last Modified : January 7 2002

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