|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectappl.parallel.spmd.AbstractSPMDTask
edu.bonn.xulu.plugin.model.parallel.ClueTask
public class ClueTask
This is the task class for the parallel computation of the ClueModel
,
originally developed by Peter Verburg at Wageningen University and adapted
for Xulu by Martin Schmitz.
This class is send to the servers. It has three
main modules: the LU-Calculation
,
the
neighborhood probabilities calculation
and the calculation of the CLUE iteration
. The
modules are largely independent and could theoretically be defined in
Separate classes. Because the original implementation
uses
only one class, this principle is not changed here. It makes sense because
some functions are used by all modules and class loading using JINI is
simplified.
Notice that the documentation of this file is a mixture of English and
German. This is due to the fact that Xulu / V works so nicely that very much
of Martin Schmitz' original German-commented ClueModel
-code could be reused.
Field Summary |
---|
Fields inherited from class appl.parallel.spmd.AbstractSPMDTask |
---|
serverController |
Constructor Summary | |
---|---|
ClueTask()
|
Method Summary | |
---|---|
void |
calulateNeighborhoodProbabilities(Object... parameters)
|
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 |
Object |
clue_iter(Object... parameters)
|
void |
init()
Use this method to implement if you want t |
Object |
run(Object... parameters)
Starts the task with the given parameters. |
Methods inherited from class appl.parallel.spmd.AbstractSPMDTask |
---|
getAdvancedSPMDServerController, getSPMDServerController, incomingUpdate, initialize, isInitialized, outgoingUpdate, setSPMDServerController, supportsMultiThreading |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClueTask()
Method Detail |
---|
public void init()
AbstractSPMDTask
init
in class AbstractSPMDTask
public Object run(Object... parameters)
SPMDTask
run
in interface SPMDTask
run
in class AbstractSPMDTask
public void calulateNeighborhoodProbabilities(Object... parameters)
public Object clue_iter(Object... parameters)
protected 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 static boolean checkNoData(int x, int y, WritableGrid grid)
NoData
belegt ist
x
- Raster-Koordinatey
- Raster-Koordinategrid
- zu pruefendes Raster
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |