|
|||||||||
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.ca.fire.ImpetusFireCA
public class ImpetusFireCA
Diese Klasse stellt eine Implementierung des Modells ImpetusFireCA dar. Dieses benoetigt 7 Ressourcen, welche durch den ImpetusFireCAContentManager spezifiziert werden:
modelParam
):
Dynamisches Xulu-Objekt mit folgenden Propertys:
startPoints
):
FeatureCollection (z.B. aus Shape-File) mit ein oder mehreren georeferenzierten
Punkten, die als Startpunkte fuer die Feuer-Ausbreitung verwendet werden.
baseLUC
):
Raster mit LUC-Klassifikation (Ausgangsszenario).
burnFit
, optional):
Raster mit Brenn-Wahrscheinlichkeiten pro Zelle (lokale Brenneignung)..
outLUC
):
Raster, in dem die modellierte LUC ("burning" und "burned out") hinterlegt
wird.
outBurnMass
, optional):
Raster, in dem die verbrannte Biomasse pro Zelle hinterlegt wird.
Wird zur Zeit noch nicht genutzt!
burnTime
):
Raster, in dem waehrend des Modellablaufs die Zeiten hinterlegt werden,
die eine Zelle brennt, um die Zellen "irgendwann" als ausgebrannt zu
markieren.
ImpetusFireCAContentManager
Field Summary | |
---|---|
protected int |
areaMaxX
|
protected int |
areaMaxY
|
protected int |
areaMinX
|
protected int |
areaMinY
|
protected WritableGrid |
baseLUC
|
protected int |
burnedOutLUC
|
protected Vector<int[]> |
burningCells
|
protected int |
burningLUC
|
protected WritableGrid |
burnSuitability
|
protected WritableGrid |
burnTime
|
protected double |
cellSize
|
protected ImpetusFireCAContentManager |
contManager
Speichert den ContentManager fuer das Modell. |
protected int |
iterCount
|
protected double |
iterSeconds
|
static Logger |
LOGGER
Logger fuer Debug-Ausgaben und Warnings. |
protected double[] |
lucBurningSuitability
|
protected double[] |
lucBurningTime
|
protected int |
lucCount
|
protected double |
MAX_burningSuitability
|
protected double |
MAX_lucBurningSuitability
|
protected double |
MAX_windMatrix
|
protected Component |
modelGUI
|
protected DynamicXuluObject |
modelParam
|
protected HashMap<int[],Object> |
newBurningCells
|
protected WritableGrid |
outBurnMass
|
protected WritableGrid |
outLUC
|
static String |
PARAM_PROP_BURNLUC
|
static String |
PARAM_PROP_BURNOUTLUC
|
static String |
PARAM_PROP_BURNSUIT
|
static String |
PARAM_PROP_BURNTIME
|
static String |
PARAM_PROP_MODELTIME
|
static String |
PARAM_PROP_WINDDIRECTION
|
static String |
PARAM_PROP_WINDDIRECTIONDEV
|
static String |
PARAM_PROP_WINDMATRIX_PCONST
|
static String |
PARAM_PROP_WINDMATRIX_PFACT
|
static String |
PARAM_PROP_WINDPOWER
|
static String |
PARAM_PROP_WINDPOWERDEV
|
static String |
PARAM_PROP_WINDPOWERMAXBW
|
protected static ResourceProvider |
RESOURCE
ResourceProvider , der die Uebersetzungen fuer die GUI
bereitstellt: locales.XuluModel_ImpetusFireCA |
protected FeatureCollection |
startPoints
|
protected Vector<int[]> |
uselessBurningCells
|
protected double |
windDir
|
protected double |
windDirDev
|
protected double[] |
windMatrix
|
protected double |
windMatrix_powerConst
|
protected double |
windMatrix_powerFact
|
protected double |
windPow
|
protected double |
windPowDev
|
protected double |
windPowMaxBW
|
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 | |
---|---|
ImpetusFireCA()
Erzeugt eine neue Instanz des Modells. |
Method Summary | |
---|---|
protected double |
calculateBurnProbability(int x,
int y,
double wind)
Berechnet die Wahrscheinlichkeit, dass eine Zelle brennt. |
Component |
getModelSpecificGUI()
Liefert die modellspezifische GUI. |
protected void |
initBurningCells(FeatureCollection burnSource)
Initialisiert die Liste der Brandherd-Zellen ueber die georeferenzierten Punkte einer FeatureCollection . |
protected void |
performBurning(Vector<int[]> bCells)
Erhoeht die Menge der verbrannten Biomasse einer Zelle, sowie die Brennzeit. |
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 |
---|
protected static ResourceProvider RESOURCE
ResourceProvider
, der die Uebersetzungen fuer die GUI
bereitstellt: locales.XuluModel_ImpetusFireCA
public static final Logger LOGGER
public static final String PARAM_PROP_MODELTIME
public static final String PARAM_PROP_BURNLUC
public static final String PARAM_PROP_BURNOUTLUC
public static final String PARAM_PROP_BURNSUIT
public static final String PARAM_PROP_BURNTIME
public static final String PARAM_PROP_WINDDIRECTION
public static final String PARAM_PROP_WINDPOWER
public static final String PARAM_PROP_WINDDIRECTIONDEV
public static final String PARAM_PROP_WINDPOWERDEV
public static final String PARAM_PROP_WINDPOWERMAXBW
public static final String PARAM_PROP_WINDMATRIX_PCONST
public static final String PARAM_PROP_WINDMATRIX_PFACT
protected ImpetusFireCAContentManager contManager
ImpetusFireCAContentManager
protected DynamicXuluObject modelParam
protected FeatureCollection startPoints
protected WritableGrid baseLUC
protected WritableGrid burnSuitability
protected WritableGrid outLUC
protected WritableGrid outBurnMass
protected WritableGrid burnTime
protected int areaMinX
protected int areaMaxX
protected int areaMinY
protected int areaMaxY
protected double cellSize
protected int lucCount
protected int burningLUC
protected int burnedOutLUC
protected double[] lucBurningSuitability
protected double[] lucBurningTime
protected double[] windMatrix
protected double windMatrix_powerConst
protected double windMatrix_powerFact
protected double windDir
protected double windDirDev
protected double windPow
protected double windPowDev
protected double windPowMaxBW
protected int iterCount
protected double iterSeconds
protected double MAX_lucBurningSuitability
protected double MAX_windMatrix
protected double MAX_burningSuitability
protected Vector<int[]> burningCells
protected Vector<int[]> uselessBurningCells
protected HashMap<int[],Object> newBurningCells
protected Component modelGUI
Constructor Detail |
---|
public ImpetusFireCA()
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!)protected void performBurning(Vector<int[]> bCells)
bCells
- Zellenprotected void initBurningCells(FeatureCollection burnSource)
FeatureCollection
.
burnSource
- FeatureCollection von Point
und MultiPoint
protected double calculateBurnProbability(int x, int y, double wind)
x
- horizontale Raster-Koordinatey
- vertikale Raster-Koordinatewind
- Wert der Wind-Matrix (fuer Windrichtung)
public Component getModelSpecificGUI()
getModelSpecificGUI
in interface XuluModel
getModelSpecificGUI
in class AbstractXuluModel
null
wenn das Modell keine zusaetzliche GUI
zur Verfuegung stellt
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |