|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectAbstractNamedObject
edu.bonn.xulu.model.AbstractXuluModel
edu.bonn.xulu.model.AbstractStepModel
edu.bonn.xulu.plugin.model.parallel.ClueModel_deterministic
public class ClueModel_deterministic
This class can be used to verify parallel versions of the ClueModel
. It
is only slightly modified so that it no longer uses purely random numbers for
the generation of the iteration variable, but uses random numbers seeded with
0xCAFE. This guarantees that every run with the same input uses the same number
of iterations and produces exactly the same result.
*
ClueModelContentManager
Nested Class Summary | |
---|---|
static class |
ClueModel_deterministic.ClueModelGUI
Diese Klasse stellt eine modellspezifische GUI-Komponente fuer das CLUE-Modell dar. |
Field Summary | |
---|---|
protected ClueModelContentManager |
contManager
Speichert den ContentManager fuer das Modell. |
static int |
TOLTYPE_ABS
Konstante fuer die Toleranz-Art "absolut in Bedarf-Einheit". |
static int |
TOLTYPE_PCT
Konstante fuer die Toleranz-Art "prozentual". |
Fields inherited from class edu.bonn.xulu.model.AbstractStepModel |
---|
stepCount |
Fields inherited from class edu.bonn.xulu.model.AbstractXuluModel |
---|
disposed, events, initialised, listeners, modelResourceProvider, running, statusOut, stopped |
Constructor Summary | |
---|---|
ClueModel_deterministic()
Erzeugt eine neue Instanz des CLUE-Modells. |
Method Summary | |
---|---|
protected void |
calculateLUProbabilities(int stepNo)
Berechnet die auf den Driving Forces basierenden Landnutzungs-Wahrscheinlichkeiten fuer einen Modell-Schritt und speichert diese in der Ressource "temp. |
protected void |
calulateNeighborhoodProbabilities(int stepNo,
WritableGrid luGrid)
Berechnet die auf den Nachbarschaftsbeziehungen basierenden Landnutzungs-Wahrscheinlichkeiten fuer einen Modell-Schritt und speichert diese in der Ressource "temp. |
protected boolean |
checkDemandCompliedAndCalculateIterVar(int stepNo,
int iterNo)
Prueft, ob die aktuelle LU-Konfiguration die einzelenen Bedarfsanforderungen (bis auf eine Abweichung) erfuellt und berechnet die Iterationsvariablen neu. |
protected boolean |
checkLUCCAllowed(int x,
int y,
int stepNo,
int lastLU,
int newLU,
boolean alreadyLUCCFromNewType)
Prueft, ob ein bestimmter LU-Wechsel fuer eine Zelle erlaubt ist. |
protected boolean |
checkLUCCGeneralAllowed(int x,
int y,
int stepNo,
int lastLU,
boolean alreadyLUCCToActualType)
Prueft, ob ein genereller LU-Wechsel fuer eine Zelle erlaubt ist. |
protected static boolean |
checkNoData(int x,
int y,
WritableGrid grid)
Prueft, ob eine Rasterzelle mit NoData belegt ist |
Component |
getModelSpecificGUI()
Liefert eine CLUE-spezifische GUI, in der die Abweichungen waehrend der Iteration angezeigt werden und ueber die die Toleranzen eingestellt werden koennen |
void |
performModelDispose()
Gibt die Lese/Schreibrechte auf das Ein- und Ausgaberaster wieder frei. |
void |
performModelInit()
Initialisiert das Model, indem die Ressourcen aus dem ContentManager geladen werden und mit Lese/Schreib-Rechten versehen werden. |
void |
performModelStep(int stepNo)
Fuehrt einen Schritt des Modellablaufs durch. |
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, 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, getResourceProvider, getStatusOut, initModel, isDisposed, isInitialised, isRunning, isStopped, performError, removeModelListener, setStatusOut, startModelling, stopModelling |
Field Detail |
---|
public static final int TOLTYPE_PCT
public static final int TOLTYPE_ABS
protected ClueModelContentManager contManager
ClueModelContentManager
Constructor Detail |
---|
public ClueModel_deterministic()
Method Detail |
---|
public void performModelInit()
performModelInit
in class AbstractXuluModel
public void performModelDispose()
performModelDispose
in class AbstractXuluModel
public void performModelStep(int stepNo)
performModelStep
in interface StepModel
performModelStep
in class AbstractStepModel
stepNo
- zu modellierender Schritt (beginnend bei 1!)public Component getModelSpecificGUI()
getModelSpecificGUI
in interface XuluModel
getModelSpecificGUI
in class AbstractXuluModel
ClueModel_deterministic.ClueModelGUI
protected static boolean checkNoData(int x, int y, WritableGrid grid)
NoData
belegt ist
x
- Raster-Koordinatey
- Raster-Koordinategrid
- zu pruefendes Rasterprotected void calculateLUProbabilities(int stepNo)
stepNo
- modellierter Schritt (beginnend bei 1)protected void calulateNeighborhoodProbabilities(int stepNo, WritableGrid luGrid)
stepNo
- modellierter Schritt (beginnend bei 1)luGrid
- LU-Raster aus dem die Umgebung der jeweiligen Zellen
ermittelt werdenprotected boolean checkLUCCGeneralAllowed(int x, int y, int stepNo, int lastLU, boolean alreadyLUCCToActualType)
x
- Raster-Koordinatey
- Raster-KoordinatestepNo
- modellierter Schritt (beginnend bei 1)lastLU
- Bedeckung von (x,y) zum Zeitpunkt stepNo-1alreadyLUCCToActualType
- Flag gibt an, ob in der laufenden Iteration
bereits ein LU-Wechsel in den den aktuellen
Typ der Zelle (lastLU) vorgenommen wurde.protected boolean checkLUCCAllowed(int x, int y, int stepNo, int lastLU, int newLU, boolean alreadyLUCCFromNewType)
x
- Raster-Koordinatey
- Raster-KoordinatestepNo
- modellierter Schritt (beginnend bei 1)lastLU
- Bedeckung von (x,y) zum Zeitpunkt stepNo-1newLU
- potentielle neue Bedeckung von (x,y)alreadyLUCCFromNewType
- Flag gibt an, ob in der laufenden Iteration
bereits ein LU-Wechsel vom potentiellen neuen
Typ in einen anderen Typ vorgenommen wurde.protected boolean checkDemandCompliedAndCalculateIterVar(int stepNo, int iterNo)
stepNo
- modellierter Schritt (beginnend bei 1)iterNo
- aktuelle Iteration (beginnend bei 1)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |