sdt.ga
Class Compare

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--sdt.df.Node
              |
              +--sdt.ga.Compare

public class Compare
extends Node

Implements the compare operation where the current best solution is updated. The current best solution is compared with the current candidate and the modified best solution is placed in the first output arc.


Fields inherited from class sdt.df.Node
input, output
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Compare(AsyncPopulation p, Arc in1, Arc in2, Arc out1, Arc out2)
          Creates an instance of the Compare Node with the input and output arcs.
 
Method Summary
protected  void finalize()
          for garbage collection.
 void run()
          Implements the compare operation.
 void setPopulation(AsyncPopulation p)
          sets the current population.
 
Methods inherited from class sdt.df.Node
setInput, setInput, setOutput, setOutput
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Compare

public Compare(AsyncPopulation p,
               Arc in1,
               Arc in2,
               Arc out1,
               Arc out2)
Creates an instance of the Compare Node with the input and output arcs.
Method Detail

setPopulation

public void setPopulation(AsyncPopulation p)
sets the current population.

run

public void run()
Implements the compare operation.
Overrides:
run in class java.lang.Thread

finalize

protected void finalize()
                 throws java.lang.Throwable
for garbage collection.
Overrides:
finalize in class java.lang.Object