eaLib API Docs
Last Modified : January 7 2002

mss.ea.al
Class Controller

java.lang.Object
  |
  +--mss.ea.al.Controller
Direct Known Subclasses:
SingleLoopController

Deprecated. superceded by new thread communication model

public abstract class Controller
extends java.lang.Object

Abstract base class for an evolutionary algorithm.

Since:
0.1
Version:
$Revision: 1.3 $ $Date: 2001/11/12 17:19:20 $
Author:
Andreas Rummler

Field Summary
static Controller algorithmController
          Deprecated.  
protected  IndividualGate gate
          Deprecated.  
protected  IndividualSink sink
          Deprecated.  
protected  IndividualSource source
          Deprecated.  
protected  java.util.Vector termQueue
          Deprecated.  
 
Constructor Summary
Controller()
          Deprecated.  
 
Method Summary
 void addTermination(Termination t)
          Deprecated.  
 boolean checkTermination()
          Deprecated. Checks all the termination operators.
protected abstract  void evolve()
          Deprecated. Performs one evolution cycle.
protected abstract  void info()
          Deprecated. Prints information about the controller object.
 boolean isConsistent()
          Deprecated. Checks the consistency of all internal instance variables.
static void main(java.lang.String[] args)
          Deprecated.  
 Termination removeTermination(int index)
          Deprecated.  
protected abstract  void result()
          Deprecated. Prints the results of the algorithm.
abstract  void run()
          Deprecated. Runs the algorithm.
 void setGate(IndividualGate g)
          Deprecated.  
 void setSink(IndividualSink s)
          Deprecated.  
 void setSource(IndividualSource s)
          Deprecated.  
protected abstract  void setup()
          Deprecated. Method to perform the setup stage of the algorithm.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

algorithmController

public static Controller algorithmController
Deprecated. 

source

protected IndividualSource source
Deprecated. 

sink

protected IndividualSink sink
Deprecated. 

gate

protected IndividualGate gate
Deprecated. 

termQueue

protected java.util.Vector termQueue
Deprecated. 
Constructor Detail

Controller

public Controller()
Deprecated. 
Method Detail

isConsistent

public boolean isConsistent()
Deprecated. 
Checks the consistency of all internal instance variables. This should be used to insure that the algorithm can be run. Instance checks for missing operators can be done in this method. The method in this base class only checks the sink, source and gate for null references and the termQueue for emptiness. The method should be called from the subclasses.
Returns:
result of the check

setSource

public void setSource(IndividualSource s)
Deprecated. 

setGate

public void setGate(IndividualGate g)
Deprecated. 

setSink

public void setSink(IndividualSink s)
Deprecated. 

addTermination

public void addTermination(Termination t)
Deprecated. 

removeTermination

public Termination removeTermination(int index)
Deprecated. 

checkTermination

public boolean checkTermination()
Deprecated. 
Checks all the termination operators. The operators are retrieved from the termQueue vector, isTrue() is called and the results are combined with a logical OR. The result is returned.
Returns:
result of the operator check

run

public abstract void run()
                  throws EAException
Deprecated. 
Runs the algorithm.
Throws:
EAException - thrown if any of the used operator fails

evolve

protected abstract void evolve()
                        throws EAException
Deprecated. 
Performs one evolution cycle.
Throws:
EAException - thrown if any of the used operators fails

setup

protected abstract void setup()
Deprecated. 
Method to perform the setup stage of the algorithm. This should be called before running the algorithm. All initializations should be done in this method.

result

protected abstract void result()
Deprecated. 
Prints the results of the algorithm.

info

protected abstract void info()
Deprecated. 
Prints information about the controller object.

main

public static void main(java.lang.String[] args)
Deprecated. 

eaLib API Docs
Last Modified : January 7 2002

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