Evolvica Core API Version 0.6.2
Last Modified: June 29 2004

org.evolvica.core.common
Class Collector

java.lang.Object
  extended byorg.evolvica.engine.AbstractOperator
      extended byorg.evolvica.core.common.AbstractGeneticOperator
          extended byorg.evolvica.core.common.Collector
All Implemented Interfaces:
IGeneticOperator, IJoin, IOperator, java.io.Serializable

public class Collector
extends AbstractGeneticOperator
implements IJoin

An individual collector. A collector collects individual sets from its inputs and sends them immediately to its output.

Since:
0.4.0
Version:
$Revision: 1.10 $ $Date: 2004/05/26 11:57:58 $
Author:
Andreas Rummler
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.evolvica.engine.AbstractOperator
descriptor, element, id, name
 
Constructor Summary
Collector()
          Constructor.
 
Method Summary
 int getInputSize()
           
 boolean isActivatable(java.lang.Object[] input)
          Checks if this join can be activated with given input data.
 java.lang.Object join(java.lang.Object[] input)
          Performs the join operation and returns a single data object.
 void setInputSize(int inputSize)
          Sets the inputSize.
 
Methods inherited from class org.evolvica.engine.AbstractOperator
attachDescriptor, attachElement, descriptor, element, getId, getName, setId, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.evolvica.engine.IOperator
attachDescriptor, attachElement, descriptor, element, getId, getName, setId, setName
 

Constructor Detail

Collector

public Collector()
Constructor. Sets the default input size to 2.

Method Detail

join

public java.lang.Object join(java.lang.Object[] input)
Description copied from interface: IJoin
Performs the join operation and returns a single data object. Note that the input array may contain NULL values.

Specified by:
join in interface IJoin
Parameters:
input - array of input data objects
Returns:
combined data object
See Also:
IJoin.join(java.lang.Object[])

isActivatable

public boolean isActivatable(java.lang.Object[] input)
Description copied from interface: IJoin
Checks if this join can be activated with given input data.

Specified by:
isActivatable in interface IJoin
Parameters:
input - input data
Returns:
true if this join can be activated, false otherwise
See Also:
IJoin.isActivatable(java.lang.Object[])

getInputSize

public int getInputSize()
Returns:
int

setInputSize

public void setInputSize(int inputSize)
Sets the inputSize.

Parameters:
inputSize - The inputSize to set

Evolvica Core API Version 0.6.2
Last Modified: June 29 2004

Copyright © 2000-2004 Technical University of Ilmenau, Department Electronic Circuits and Systems