schmitzm.test.dynamic
Class CellularAutomaton

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.CellularAutomaton
All Implemented Interfaces:
StepModel, XuluModel

public abstract class CellularAutomaton
extends AbstractStepModel

Zellularer Automat fuer meherer Regionen. Globaler oder lokale Bedarfe.

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

Field Summary
static int COORD_LATLON
          Koordinaten-Modus "Lat/Lon".
static int COORD_RASTER
          Koordinaten-Modus "Raster".
static int TARGET_GLOBAL
          Abbruch-Modus "Global".
static int TARGET_LOCAL
          Abbruch-Modus "Lokal".
 
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
CellularAutomaton()
           
 
Method Summary
abstract  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

COORD_RASTER

public static final int COORD_RASTER
Koordinaten-Modus "Raster". Nur ganzzahlige Start-Koordinaten erlaubt.

See Also:
Constant Field Values

COORD_LATLON

public static final int COORD_LATLON
Koordinaten-Modus "Lat/Lon". Start-Koordinaten werden als Geo-Koordinaten interpretiert.

See Also:
Constant Field Values

TARGET_GLOBAL

public static final int TARGET_GLOBAL
Abbruch-Modus "Global". Expansion endet, sobald Gesamt-Bedarf gedeckt ist.

See Also:
Constant Field Values

TARGET_LOCAL

public static final int TARGET_LOCAL
Abbruch-Modus "Lokal". Expansion endet, sobald Bedarf fuer jedes Teil-Gebiet gedeckt ist.

See Also:
Constant Field Values
Constructor Detail

CellularAutomaton

public CellularAutomaton()
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 abstract double getPreferenceValue(Point p,
                                          int luc)