|
|||||||||
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.reservoir.SmallReservoirModel
public class SmallReservoirModel
Diese Klasse stellt eine Implementierung des Modells ImpetusFireCA dar. Dieses benoetigt 7 Ressourcen, welche durch den ImpetusFireCAContentManager spezifiziert werden:
dhm
):
Raster mit einem Hoehenmodell (Ausgangsszenario).
damWall
):
FeatureCollection (z.B. aus Shape-File) mit einem Line-String, die die
Lage der Staumauer definiert.
damWallHeight
):
Hoehe der Staumauer ueber NN.
infiltration
):
Versickerung in mm pro Tag.
evaporation
):
Verdunstung in mm pro Tag.
stepSize
):
Schrittweite in Tagen, mit welcher das "Entleeren" des Stausees
(durch Verdunstung und Versickerung) in Rastern und Zwischenwerten
in den Ausgabe-Ressourcen protokolliert wird.
outFloodedAreaSize
):
Flaeche in Hektar, die ueberflutet wird, sowie die Flaeche zu den
spaeteren Zeitpunkten, wenn Versickerung und Verdunstung (pro Tag)
beruecksichtigt wird.
outFloodedAreaVol
):
Volumen in Qubikmeter, die ueberflutet wird, das Volumen zu den
spaeteren Zeitpunkten, wenn Versickerung und Verdunstung (pro Tag)
beruecksichtigt wird.
outFloodedArea
):
Enthaelt die ueberfluteten Zellen als Raster zum Zeitpunkt 0 (wenn der
Stausee voll ist) und zu den spaeteren Zeitpunkten, wenn Versickerung
und Verdunstung (pro Tag) beruecksichtigt wird.
damDHM
):
Enthaelt ein Hoehenmodell, in dem der Staumauer-Vektor dargestellt wird.
Dieses wird automatisch berechnen.
SmallReservoirModelContentManager
Nested Class Summary | |
---|---|
protected class |
SmallReservoirModel.GUI
Modell-spezifische GUI des Kleinstausee-Modells. |
Field Summary | |
---|---|
protected double |
areaCellSize
|
protected int |
areaMaxX
|
protected int |
areaMaxY
|
protected int |
areaMinX
|
protected int |
areaMinY
|
protected SmallReservoirModelContentManager |
contManager
Speichert den ContentManager fuer das Modell. |
protected Set<Point>[] |
damCells
|
protected |
damWall
|
protected WritableGrid |
damWallDHM
|
protected double[] |
damWallHeight
|
protected double[] |
damWallHeightMax
|
protected double[] |
damWallHeightMin
|
protected WritableGrid |
dhm
|
protected double |
evaporation
|
protected Set<Point> |
floodedCells
|
protected double |
infiltration
|
protected int |
iterCount
|
static Logger |
LOGGER
Logger fuer Debug-Ausgaben und Warnings. |
protected SmallReservoirModel.GUI |
modelGUI
|
protected MultiGrid |
outFloodedArea
|
protected WritableGrid |
outFloodedAreaGrid
|
protected double |
outFloodedAreaSize
|
protected double |
outFloodedAreaVol
|
protected static ResourceProvider |
RESOURCE
ResourceProvider , der die Uebersetzungen fuer die GUI
bereitstellt: locales.XuluModel_SmallReservoirModel |
protected int |
stepSize
|
protected boolean |
storeStepResults
|
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 | |
---|---|
SmallReservoirModel()
Erzeugt eine neue Instanz des Modells. |
Method Summary | |
---|---|
protected void |
determineDamWallCells()
Ermittelt die von dem Staumauer-Shape ueberlagerten Rasterzellen. |
protected void |
determineDamWallDHMAndInitStartCells()
Berechnet ein DHM, welches an den Stellen der Staumauer die Hoehe der Staumauer ueber NN enthaelt und ansonsten 0. |
protected void |
emptyReservoir(int stepNo,
int dayCount)
Entleert den Stausee und berechnet pro Tag (oder je Modellschritt-Groesse) verbleibende die Ausmasse des Stausees. |
protected void |
fillReservoir()
Berechnet die Ausmasse des Stausees (fuellt den Stausee). |
Component |
getModelSpecificGUI()
Liefert die modell-spezifische GUI des Kleinstausee-Modells. |
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 die Modell-Berechnung 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_SmallReservoirModel
public static final Logger LOGGER
protected SmallReservoirModelContentManager contManager
SmallReservoirModelContentManager
protected WritableGrid dhm
protecteddamWall
protected double[] damWallHeight
protected double[] damWallHeightMin
protected double[] damWallHeightMax
protected double infiltration
protected double evaporation
protected MultiGrid outFloodedArea
protected double outFloodedAreaSize
protected double outFloodedAreaVol
protected WritableGrid outFloodedAreaGrid
protected WritableGrid damWallDHM
protected int stepSize
protected boolean storeStepResults
protected int areaMinX
protected int areaMaxX
protected int areaMinY
protected int areaMaxY
protected double areaCellSize
protected int iterCount
protected Set<Point>[] damCells
protected Set<Point> floodedCells
protected SmallReservoirModel.GUI modelGUI
Constructor Detail |
---|
public SmallReservoirModel()
Method Detail |
---|
public Component getModelSpecificGUI()
getModelSpecificGUI
in interface XuluModel
getModelSpecificGUI
in class AbstractXuluModel
null
wenn das Modell keine zusaetzliche GUI
zur Verfuegung stelltpublic 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
- Nummer des Modellschritts (beginnend bei 1)protected void emptyReservoir(int stepNo, int dayCount)
protected void fillReservoir()
protected void determineDamWallCells()
protected void determineDamWallDHMAndInitStartCells()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |