edu.bonn.xulu.plugin.data.misc
Class CASettlementArea

java.lang.Object
  extended by edu.bonn.xulu.plugin.data.misc.CAArea
      extended by edu.bonn.xulu.plugin.data.misc.CASettlementArea

public class CASettlementArea
extends CAArea

Dieser Datentyp erweitert die allgemeine CA-Region um folgende Eigenschaften:

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

Field Summary
protected  double demandConvFact
          Umrechnungsfaktor, falls der Bedarf (pro Einwohner) nicht in qm angegeben ist (Standard: 1.0).
protected  double demandPerInh
          Speichert den Flaechenbedarf in qm pro Einwohner.
protected  double growthRate
          Speichert die Wachstumsrate fuer die Einwohnerzahl.
protected  double inhabitants
          Speichert die Einwohnerzahlen zum Start-Zeitpunkt.
 
Fields inherited from class edu.bonn.xulu.plugin.data.misc.CAArea
border, cover, deadlock, name, startLoc
 
Constructor Summary
CASettlementArea()
          Erzeugt eine neue Area.
CASettlementArea(String name, double x, double y, double inhabitants, double growthRate, double dpi)
          Erzeugt eine neue Area.
 
Method Summary
 double getDemandPerInhabitant()
          Liefert den Bedarf pro Einwohner in qm.
 double getDemandToQMFactor()
          Liefert den Umrechnungsfaktor, um den Bedarf pro Einwohner in qm zu transformieren.
 double getGrowthRate()
          Liefert die Wachstumsrate der Bevoelkerung (z.B.
 double getInhabitants()
          Liefert die Einwohnerzahl zum Start-Zeitpunkt (0).
 double getInhabitants(int step)
          Liefert die Einwohnerzahl fuer einen bestimmten Zeitschritt.
 boolean isDemandSatisfied(int step)
          Prueft, ob die aktuell belegte Flaeche den Bedarf deckt.
 void setDemandPerInhabitant(double dpi)
          Setzt den Bedarf pro Einwohner.
 void setDemandToQMFactor(double dcf)
          Setzt einen Umrechnungsfaktor, falls der Bedarf pro Einwohner nicht in qm angegeben ist.
 void setGrowthRate(double rate)
          Setzt die Wachstumsrate der Bevoelkerung (z.B.
 void setInhabitants(double inhabitants)
          Setzt die Einwohnerzahl zum Start-Zeitpunkt (0).
 
Methods inherited from class edu.bonn.xulu.plugin.data.misc.CAArea
decCurrentCover, getBorder, getCurrentCover, getName, getStartLocation, incCurrentCover, init, isDeadlock, setDeadlock, setName, setStartLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

inhabitants

protected double inhabitants
Speichert die Einwohnerzahlen zum Start-Zeitpunkt.


growthRate

protected double growthRate
Speichert die Wachstumsrate fuer die Einwohnerzahl.


demandPerInh

protected double demandPerInh
Speichert den Flaechenbedarf in qm pro Einwohner.


demandConvFact

protected double demandConvFact
Umrechnungsfaktor, falls der Bedarf (pro Einwohner) nicht in qm angegeben ist (Standard: 1.0).

Constructor Detail

CASettlementArea

public CASettlementArea()
Erzeugt eine neue Area.


CASettlementArea

public CASettlementArea(String name,
                        double x,
                        double y,
                        double inhabitants,
                        double growthRate,
                        double dpi)
Erzeugt eine neue Area.

Parameters:
name - Name der Area
x - X-Koodinate (Longitude)
y - Y-Koodinate (Latitude)
inhabitants - Einwohner-Zahl zum Start-Zeitpunkt
growthRate - Wachstumsrate der Einwohner pro Zeitschritt
dpi - qm-Bedarf pro Einwohner
Method Detail

getDemandPerInhabitant

public double getDemandPerInhabitant()
Liefert den Bedarf pro Einwohner in qm.


setDemandPerInhabitant

public void setDemandPerInhabitant(double dpi)
Setzt den Bedarf pro Einwohner.

Parameters:
dpi - Bedarf in qm

getDemandToQMFactor

public double getDemandToQMFactor()
Liefert den Umrechnungsfaktor, um den Bedarf pro Einwohner in qm zu transformieren.


setDemandToQMFactor

public void setDemandToQMFactor(double dcf)
Setzt einen Umrechnungsfaktor, falls der Bedarf pro Einwohner nicht in qm angegeben ist. Mit diesem Wert wird der demandPerInh multipliziert um festzustellen, ob der Bedarf gedeckt ist.

Parameters:
dcf - Faktor
See Also:
isDemandSatisfied(int)

getGrowthRate

public double getGrowthRate()
Liefert die Wachstumsrate der Bevoelkerung (z.B. 0.3 bei 30%igem Wachstum).


setGrowthRate

public void setGrowthRate(double rate)
Setzt die Wachstumsrate der Bevoelkerung (z.B. 0.3 bei 30%igem Wachstum).

Parameters:
rate - Wachstumsrate

getInhabitants

public double getInhabitants(int step)
Liefert die Einwohnerzahl fuer einen bestimmten Zeitschritt. Diese berechnet sich ueber folgende Formel:
inhabitants(i) = inhabitants(0) * growthRate^step

Parameters:
step - Schrittnummer (beginnend bei 0)
Returns:
0, falls step < 0

getInhabitants

public double getInhabitants()
Liefert die Einwohnerzahl zum Start-Zeitpunkt (0).


setInhabitants

public void setInhabitants(double inhabitants)
Setzt die Einwohnerzahl zum Start-Zeitpunkt (0).


isDemandSatisfied

public boolean isDemandSatisfied(int step)
Prueft, ob die aktuell belegte Flaeche den Bedarf deckt.

Specified by:
isDemandSatisfied in class CAArea
Parameters:
step - Schrittnummer (beginnend bei 0!)