Evolvica Core API Version 0.6.2
Last Modified: June 29 2004

org.evolvica.engine
Class AbstractOperator

java.lang.Object
  extended byorg.evolvica.engine.AbstractOperator
All Implemented Interfaces:
IOperator, java.io.Serializable
Direct Known Subclasses:
AbstractGeneticOperator

public abstract class AbstractOperator
extends java.lang.Object
implements IOperator

Abstract base class for algorithm operators.

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

Field Summary
protected  OperatorDescriptor descriptor
          Descriptor.
protected  IElement element
          Associated algorithm element.
protected  java.lang.String id
          ID of this operator.
protected  java.lang.String name
          Name of this operator.
 
Constructor Summary
AbstractOperator()
          Constructor.
 
Method Summary
 void attachDescriptor(OperatorDescriptor descriptor)
          Attaches a descriptor to this operator.
 void attachElement(IElement element)
          Sets the algorithm element for this operator.
 OperatorDescriptor descriptor()
          Returns a descriptor for this operator.
 IElement element()
          Returns the algorithm element that is attached to this operator.
 java.lang.String getId()
          Return the internal identifier of this operator.
 java.lang.String getName()
          Returns the name of this operator.
 void setId(java.lang.String id)
          Sets the identifier of this operator.
 void setName(java.lang.String name)
          Sets the name of this operator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

descriptor

protected OperatorDescriptor descriptor
Descriptor.


element

protected IElement element
Associated algorithm element.


name

protected java.lang.String name
Name of this operator.


id

protected java.lang.String id
ID of this operator.

Constructor Detail

AbstractOperator

public AbstractOperator()
Constructor.

Method Detail

attachDescriptor

public void attachDescriptor(OperatorDescriptor descriptor)
Description copied from interface: IOperator
Attaches a descriptor to this operator.

Specified by:
attachDescriptor in interface IOperator
Parameters:
descriptor - descriptor to be attached
See Also:
IOperator.attachDescriptor(org.evolvica.engine.OperatorDescriptor)

attachElement

public void attachElement(IElement element)
Description copied from interface: IOperator
Sets the algorithm element for this operator.

Specified by:
attachElement in interface IOperator
Parameters:
element - associated algorithm element for this operator
See Also:
IOperator.attachElement(org.evolvica.engine.IElement)

descriptor

public OperatorDescriptor descriptor()
Description copied from interface: IOperator
Returns a descriptor for this operator.

Specified by:
descriptor in interface IOperator
Returns:
descriptor
See Also:
IOperator.descriptor()

element

public IElement element()
Description copied from interface: IOperator
Returns the algorithm element that is attached to this operator.

Specified by:
element in interface IOperator
Returns:
attached algorithm element
See Also:
IOperator.element()

getId

public java.lang.String getId()
Description copied from interface: IOperator
Return the internal identifier of this operator.

Specified by:
getId in interface IOperator
Returns:
identifier of the operator
See Also:
IOperator.getId()

setId

public void setId(java.lang.String id)
Description copied from interface: IOperator
Sets the identifier of this operator.

Specified by:
setId in interface IOperator
Parameters:
id - new identifier for this operator
See Also:
IOperator.setId(java.lang.String)

getName

public java.lang.String getName()
Description copied from interface: IOperator
Returns the name of this operator.

Specified by:
getName in interface IOperator
Returns:
name of the operator
See Also:
IOperator.getName()

setName

public void setName(java.lang.String name)
Description copied from interface: IOperator
Sets the name of this operator.

Specified by:
setName in interface IOperator
Parameters:
name - new name for this operator
See Also:
IOperator.setName(java.lang.String)

Evolvica Core API Version 0.6.2
Last Modified: June 29 2004

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