|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--edu.brook.ascape.model.DefaultScapeListener
A listener to an agent scape. When a scape is updated, it is the listener's responsility to update itself, and then inform the scape that updating is finished, so that the scape can continue iterating through its rules. CanvasView provides a good reference implementation of the listener contract.
| Field Summary | |
protected java.lang.String |
name
The name of the view. |
Scape |
scape
The scape being listened to. |
| Constructor Summary | |
DefaultScapeListener()
|
|
| Method Summary | |
void |
addScape(Scape scape)
Add a scape to this canvas. |
void |
DefaultScapeListener()
Constructs a default listener. |
void |
DefaultScapeListener(java.lang.String name)
Constructs a default listener. |
java.lang.String |
getName()
Returns a name for the view as defined by set name. |
void |
removeScape(Scape scape)
Removes the scape from this listener. |
void |
scapeUpdated(ScapeEvent e)
Sends a REPORT_LISTENER_UPDATED event back to the scape indicating that this listener has been updated. |
void |
setName(java.lang.String name)
Sets the name of this view. |
java.lang.String |
toString()
Returns a short description of this view. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
public Scape scape
protected java.lang.String name
| Constructor Detail |
public DefaultScapeListener()
| Method Detail |
public void DefaultScapeListener()
public void DefaultScapeListener(java.lang.String name)
name - a user relevant name for this view
public void addScape(Scape scape)
throws java.util.TooManyListenersException
scape - the scape to make this canvas the observer ofpublic void removeScape(Scape scape)
scape - the scape to removepublic void scapeUpdated(ScapeEvent e)
public java.lang.String getName()
public final void setName(java.lang.String name)
name - a user relevant name for this viewpublic java.lang.String toString()
|
(c) 1998-2000 The Brookings Insitution Webpage |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||