schmitzm.test.dynamic
Class SingleCellularAutomaton

java.lang.Object
  extended by AbstractNamedObject
      extended by edu.bonn.xulu.model.AbstractXuluModel
          extended by edu.bonn.xulu.model.AbstractStepModel
              extended by schmitzm.test.dynamic.SingleCellularAutomaton
All Implemented Interfaces:
StepModel, XuluModel

public class SingleCellularAutomaton
extends AbstractStepModel

@todo Haupt-Dokumentation erstellen

CA, der die Expansion eines LUC-Typs simuliert:

Version:
1.0
Author:
Martin Schmitz (University of Bonn/Germany)

Field Summary
protected  WritableGrid areaMapping
           
protected  WritableGrid baseLUC
           
protected  ListPropertyReadAccess demand
           
protected  WritableGrid outLUC
           
 
Fields inherited from class edu.bonn.xulu.model.AbstractStepModel
stepCount
 
Fields inherited from class edu.bonn.xulu.model.AbstractXuluModel
contManager, disposed, events, initialised, listeners, modelResourceProvider, running, statusOut, stopped
 
Constructor Summary
SingleCellularAutomaton()
           
 
Method Summary
 double getPreferenceValue(Point p, int luc)
           
 void performModelDispose()
          Implementiert die eigentliche Freigabe der Modell-Ressourcen, indem alle internen Modell-Ressourcen aus dem Speicher geloescht und die externen wieder frei gegeben werden.
 void performModelInit()
          Muss die eigentliche Initialisierung des Modells implementieren und alle internen Modell-Ressourcen auf einen Ausgangszustand zurueck setzen, so dass das Modell komplett neu gestartet werden kann.
 void performModelStep(int stepNo)
          Modelliert genau einen Zeitschritt.
 
Methods inherited from class edu.bonn.xulu.model.AbstractStepModel
fireModelStepFinished, fireModelStepStarted, getStepCount, performModelStart
 
Methods inherited from class edu.bonn.xulu.model.AbstractXuluModel
addModelListener, checkBreakingCommands, determineCaption, disposeModel, fireModelDisposed, fireModelEvent, fireModelInitialised, fireModelStarted, fireModelStopped, getContentManager, getEvents, getModelSpecificGUI, getResourceProvider, getStatusOut, initModel, isDisposed, isInitialised, isRunning, isStopped, performError, releaseAccess, removeModelListener, resetCaptions, setStatusOut, startModelling, stopModelling
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.bonn.xulu.model.XuluModel
addModelListener, disposeModel, getContentManager, getEvents, getModelSpecificGUI, getResourceProvider, getStatusOut, initModel, isDisposed, isInitialised, isRunning, isStopped, performError, removeModelListener, setStatusOut, startModelling, stopModelling
 

Field Detail

baseLUC

protected WritableGrid baseLUC

outLUC

protected WritableGrid outLUC

areaMapping

protected WritableGrid areaMapping

demand

protected ListPropertyReadAccess demand
Constructor Detail

SingleCellularAutomaton

public SingleCellularAutomaton()
Method Detail

performModelInit

public void performModelInit()
Description copied from class: AbstractXuluModel
Muss die eigentliche Initialisierung des Modells implementieren und alle internen Modell-Ressourcen auf einen Ausgangszustand zurueck setzen, so dass das Modell komplett neu gestartet werden kann.

Specified by:
performModelInit in class AbstractXuluModel

performModelDispose

public void performModelDispose()
Description copied from class: AbstractXuluModel
Implementiert die eigentliche Freigabe der Modell-Ressourcen, indem alle internen Modell-Ressourcen aus dem Speicher geloescht und die externen wieder frei gegeben werden.

Specified by:
performModelDispose in class AbstractXuluModel

performModelStep

public void performModelStep(int stepNo)
Modelliert genau einen Zeitschritt.

Specified by:
performModelStep in interface StepModel
Specified by:
performModelStep in class AbstractStepModel
Parameters:
stepNo - Nummer des Zeitschritts

getPreferenceValue

public double getPreferenceValue(Point p,
                                 int luc)