com.rubecula.darwin.examples.travelingsalesman
Class Visualization_TS

java.lang.Object
  extended by com.rubecula.darwin.visualization.swing.Visualization_
      extended by com.rubecula.darwin.visualization.swing.Visualization_VisualizableListener
          extended by com.rubecula.darwin.examples.travelingsalesman.Visualization_TS
All Implemented Interfaces:
VisualizableListener, Visualization

public class Visualization_TS
extends Visualization_VisualizableListener

Author:
Robin Hillyard

Field Summary
 
Fields inherited from class com.rubecula.darwin.visualization.swing.Visualization_
LOG
 
Constructor Summary
Visualization_TS(VisualizationFactory factory)
           
 
Method Summary
 void onChange(Visualizable source, java.lang.Object context)
          This method loops through all the organisms in population p and, for each one, and, if it is not viable [either just born or newly dead], either removes the corresponding individual, or (providing that the age is 0) adds a newly created individual.
 
Methods inherited from class com.rubecula.darwin.visualization.swing.Visualization_
getVisualizerTabs, setVisualizerTabs, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Visualization_TS

public Visualization_TS(VisualizationFactory factory)
Parameters:
factory -
Method Detail

onChange

public void onChange(Visualizable source,
                     java.lang.Object context)
Description copied from class: Visualization_VisualizableListener
This method loops through all the organisms in population p and, for each one, and, if it is not viable [either just born or newly dead], either removes the corresponding individual, or (providing that the age is 0) adds a newly created individual.

Specified by:
onChange in interface VisualizableListener
Overrides:
onChange in class Visualization_VisualizableListener
Parameters:
source - the source of the change, usually a population.
context - XXX
See Also:
Visualization_VisualizableListener.onChange(com.rubecula.darwin.foundation.Visualizable, java.lang.Object)


Copyright © 2010 Rubecula Software, LLC. All Rights Reserved.