|
|||||||||
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
public abstract class CAArea
Dieser Datentyp stellt eine Region (z.B. Siedlung) in einem
multiplen zellularen Automaten
dar. Eine CAArea
hat folgende Eigenschaften:
Field Summary | |
---|---|
protected Vector<Point> |
border
Speichert die Randzellen der Region. |
protected double |
cover
Speichert die aktuelle Flaeche (in qm), die der CA der Area zugewiesen hat. |
protected boolean |
deadlock
Flag, ob sich die Area in einem Deadlock befindet. |
protected String |
name
Speichert den Namen der Area. |
protected Point2D |
startLoc
Speichert die Start-Position der Area. |
Constructor Summary | |
---|---|
CAArea()
Erzeugt eine neue Area. |
|
CAArea(String name,
double x,
double y)
Erzeugt eine neue Area. |
Method Summary | |
---|---|
void |
decCurrentCover(double value)
Reduziert die Flaeche, die der Area aktuell zugeordnet ist. |
Vector<Point> |
getBorder()
Liefert die Liste der Randpunkte der Area. |
double |
getCurrentCover()
Liefert die aktuelle qm-Flaeche, die der Area zugeordnet ist. |
String |
getName()
Liefert den Namen der Area. |
Point2D |
getStartLocation()
Liefert die Startkoordinaten der Area. |
void |
incCurrentCover(double value)
Erhoeht die Flaeche, die der Area aktuell zugeordnet ist. |
void |
init()
Initialisiert die Area, in dem die aktuelle Flaeche und die Liste der Randzellen zurueckgesetzt werden. |
boolean |
isDeadlock()
Checkt, ob sich der CA fuer diese Area in einem Deadlock befindet. |
abstract boolean |
isDemandSatisfied(int step)
Prueft, ob die aktuell belegte Flaeche den Bedarf deckt. |
void |
setDeadlock(boolean deadlock)
Setzt ein Flag, dass sich diese Area in einem Deadlock befindet. |
void |
setName(String name)
Setzt den Namen der Area. |
void |
setStartLocation(Point2D loc)
Setzt die Startkoordinaten der Area. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String name
protected Point2D startLoc
protected double cover
protected Vector<Point> border
protected boolean deadlock
Constructor Detail |
---|
public CAArea()
public CAArea(String name, double x, double y)
name
- Name der Areax
- X-Koodinate (Longitude)y
- Y-Koodinate (Latitude)Method Detail |
---|
public void init()
public String getName()
public void setName(String name)
name
- neuer Namepublic Point2D getStartLocation()
public void setStartLocation(Point2D loc)
loc
- Lat/Lon-Georeferenzpublic double getCurrentCover()
public void incCurrentCover(double value)
value
- Wert um den Gesamt-Flaeche erhoeht wird (in qm)public void decCurrentCover(double value)
value
- Wert um den Gesamt-Flaeche reduziert wird (in qm)public Vector<Point> getBorder()
init()
initialisiert.
public boolean isDeadlock()
public void setDeadlock(boolean deadlock)
deadlock
- true
wenn der CA fuer diese Area nicht mehr
weiter expandieren kannpublic abstract boolean isDemandSatisfied(int step)
step
- Schrittnummer (beginnend bei 0!)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |