Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
ArchitectureComponent
public abstract class ArchitectureComponent
extends java.lang.Object
implements Runnable, GraphicalElement, ImageObserver
Verbindung
, Knoten
, SimulationObject
, GraphicalElement
Field Summary | |
(package private) debug | |
protected int | |
protected int | |
protected boolean | |
protected Graphics | |
protected int | |
protected int | |
protected boolean | |
protected boolean | |
protected SimulationObject | |
protected boolean | |
protected Lock | |
protected Thread | |
protected TextMethods | |
protected boolean | |
protected int | |
protected int | |
protected int |
Constructor Summary | |
| |
|
Method Summary | |
void |
|
boolean |
|
void |
|
boolean |
|
int |
|
int |
|
SimulationObject |
|
int |
|
int |
|
int |
|
boolean |
|
void |
|
(package private) abstract void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
protected int absXPos
protected int absYPos
protected boolean finished
protected Graphics gc
protected int height
protected int id
protected boolean initialized
protected boolean marked
protected boolean paintRequested
protected Thread t
protected boolean wakeUpable
protected int width
protected int xpos
protected int ypos
public ArchitectureComponent(int id, SimulationObject net, Graphics gc, int xpos, int ypos, int width, int height)
public void acquireLocks()
Akquiriert alle für das Objekt zur Verfügung stehenden Locks
- See Also:
releaseLocks()
public boolean atLocation(int x, int y)
Liefert wahr falls die übergebenen Koordinaten sich im Bereich des Objektes befinden
public void finishUp()
Beendet den eigenen Thread und gibt Resourcen frei
public final boolean finished()
Liefert wahr false das Objekt offiziell beendet wurde
public final int getHeight()
Liefert die aktuelle Höhe THREADSAFE
- Specified by:
- getHeight in interface GraphicalElement
public final int getID()
Liefert die Identifikationsnummer der Komponente
public final int getPositionX()
Liefert die aktuelle X-Koordinate THREADSAFE
- Specified by:
- getPositionX in interface GraphicalElement
public final int getPositionY()
Liefert die aktuelle Y-Koordinate THREADSAFE
- Specified by:
- getPositionY in interface GraphicalElement
public final int getWidth()
Liefert die aktuelle Breite THREADSAFE
- Specified by:
- getWidth in interface GraphicalElement
public boolean imageUpdate(Image image, int flags, int x, int y, int width, int height)
public void mark()
Signalisiert, daß das Objekt markiert ist
(package private) abstract void paint()
public final void paintRequest()
Signalisiert dem objekteigenen Thread, daß er das Objekt neu zeichnen soll
- Specified by:
- paintRequest in interface GraphicalElement
public void releaseLocks()
Gibt zuvor mit acquireLocks() akquirierte Locks wieder frei
- See Also:
acquireLocks()
public void resume()
Weckt den zuvor mit suspend() schlafengelegten Thread wieder auf
- See Also:
suspend()
public void run()
public final void setHeight(int h)
Setzt die aktuelle Höhe THREADSAFE
- Specified by:
- setHeight in interface GraphicalElement
public final void setPosition(int x, int y)
Setze die aktuelle Position auf die übergebenen Koordinaten THREADSAFE
- Specified by:
- setPosition in interface GraphicalElement
public final void setWidth(int w)
Setzt die aktuelle Breite THREADSAFE
- Specified by:
- setWidth in interface GraphicalElement
public void unmark()
Setzt Markierung zurück
public final void wakeUp()
Wecke den objekteigenen Thread auf