eaLib API Docs
Last Modified : January 7 2002

mss.ea.al
Class SingleLoopController

java.lang.Object
  |
  +--mss.ea.al.Controller
        |
        +--mss.ea.al.SingleLoopController

Deprecated. superceded by new thread communication model

public class SingleLoopController
extends Controller

Abstract base class for an evolutionary algorithm.

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

Field Summary
protected  java.util.Vector cycleNotificationQueue
          Deprecated.  
protected  java.util.Vector cycleQueue
          Deprecated.  
protected  java.util.Vector postQueue
          Deprecated.  
protected  java.util.Vector preQueue
          Deprecated.  
 
Fields inherited from class mss.ea.al.Controller
algorithmController, gate, sink, source, termQueue
 
Constructor Summary
SingleLoopController()
          Deprecated.  
 
Method Summary
 void addCycleListener(NotificationListener c)
          Deprecated.  
 void addCycleProcessor(SingleStreamProcessor p)
          Deprecated.  
 void addPostProcessor(SingleStreamProcessor p)
          Deprecated.  
 void addPreProcessor(SingleStreamProcessor p)
          Deprecated.  
protected  void evolve()
          Deprecated. Performs one evolution cycle.
protected  void info()
          Deprecated. Prints information about the controller object.
 boolean isConsistent()
          Deprecated. Checks the consistency of all internal instance variables.
protected  void notifyCycleListeners()
          Deprecated.  
protected  void postprocess()
          Deprecated.  
protected  void preprocess()
          Deprecated.  
 NotificationListener removeCycleListener(int index)
          Deprecated.  
 SingleStreamProcessor removeCycleProcessor(int index)
          Deprecated.  
 SingleStreamProcessor removePostProcessor(int index)
          Deprecated.  
 SingleStreamProcessor removePreProcessor(int index)
          Deprecated.  
protected  void result()
          Deprecated. Prints results.
 void run()
          Deprecated. Runs the algorithm.
protected  void setup()
          Deprecated. Performs the setup stage of the algorithm.
 
Methods inherited from class mss.ea.al.Controller
addTermination, checkTermination, main, removeTermination, setGate, setSink, setSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

preQueue

protected java.util.Vector preQueue
Deprecated. 

cycleQueue

protected java.util.Vector cycleQueue
Deprecated. 

postQueue

protected java.util.Vector postQueue
Deprecated. 

cycleNotificationQueue

protected java.util.Vector cycleNotificationQueue
Deprecated. 
Constructor Detail

SingleLoopController

public SingleLoopController()
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. For instance checks for missing operators can be done in this method.
Overrides:
isConsistent in class Controller
Returns:
result of the check

addPreProcessor

public void addPreProcessor(SingleStreamProcessor p)
Deprecated. 

addCycleProcessor

public void addCycleProcessor(SingleStreamProcessor p)
Deprecated. 

addPostProcessor

public void addPostProcessor(SingleStreamProcessor p)
Deprecated. 

addCycleListener

public void addCycleListener(NotificationListener c)
Deprecated. 

removePreProcessor

public SingleStreamProcessor removePreProcessor(int index)
Deprecated. 

removeCycleProcessor

public SingleStreamProcessor removeCycleProcessor(int index)
Deprecated. 

removePostProcessor

public SingleStreamProcessor removePostProcessor(int index)
Deprecated. 

removeCycleListener

public NotificationListener removeCycleListener(int index)
Deprecated. 

run

public void run()
         throws EAException
Deprecated. 
Runs the algorithm. This method calls setup() and checks the consistency with calling isConsistent(). If this call returns true, evolve() is called in an endless loop until the termination operator returns true.
Overrides:
run in class Controller
Throws:
EAException - thrown if any of the used operator fails

evolve

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

notifyCycleListeners

protected void notifyCycleListeners()
Deprecated. 

setup

protected void setup()
Deprecated. 
Performs the setup stage of the algorithm. This method does nothing.
Overrides:
setup in class Controller

preprocess

protected void preprocess()
                   throws EAException
Deprecated. 

postprocess

protected void postprocess()
                    throws EAException
Deprecated. 

result

protected void result()
Deprecated. 
Prints results.
Overrides:
result in class Controller

info

protected void info()
Deprecated. 
Description copied from class: Controller
Prints information about the controller object.
Overrides:
info in class Controller

eaLib API Docs
Last Modified : January 7 2002

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