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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
setProcessor
public void setProcessor(SingleStreamProcessor processor,
int index)
- Sets a new stream processor.
- Parameters:
processor
- new stream processorindex
- 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
Copyright © 2000-2001 Technical University of Ilmenau, Department ESS