|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.bonn.xulu.plugin.data.misc.CAArea
edu.bonn.xulu.plugin.data.misc.CASettlementArea
public class CASettlementArea
Dieser Datentyp erweitert die allgemeine CA-Region um folgende Eigenschaften:
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 |
---|
protected double inhabitants
protected double growthRate
protected double demandPerInh
protected double demandConvFact
Constructor Detail |
---|
public CASettlementArea()
public CASettlementArea(String name, double x, double y, double inhabitants, double growthRate, double dpi)
name
- Name der Areax
- X-Koodinate (Longitude)y
- Y-Koodinate (Latitude)inhabitants
- Einwohner-Zahl zum Start-ZeitpunktgrowthRate
- Wachstumsrate der Einwohner pro Zeitschrittdpi
- qm-Bedarf pro EinwohnerMethod Detail |
---|
public double getDemandPerInhabitant()
public void setDemandPerInhabitant(double dpi)
dpi
- Bedarf in qmpublic double getDemandToQMFactor()
public void setDemandToQMFactor(double dcf)
demandPerInh
multipliziert
um festzustellen, ob der Bedarf gedeckt ist.
dcf
- FaktorisDemandSatisfied(int)
public double getGrowthRate()
0.3
bei
30%igem Wachstum).
public void setGrowthRate(double rate)
0.3
bei
30%igem Wachstum).
rate
- Wachstumsratepublic double getInhabitants(int step)
inhabitants(i) = inhabitants(0) * growthRate^step
step
- Schrittnummer (beginnend bei 0)
step < 0
public double getInhabitants()
public void setInhabitants(double inhabitants)
public boolean isDemandSatisfied(int step)
isDemandSatisfied
in class CAArea
step
- Schrittnummer (beginnend bei 0!)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |