|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.columbia.cs.coms4701.agent.environments.simple.SimpleEnvironmentObject
public class SimpleEnvironmentObject
DESCRIPTION
Field Summary | |
---|---|
protected java.beans.PropertyChangeSupport |
changeSupport
|
Constructor Summary | |
---|---|
SimpleEnvironmentObject()
|
Method Summary | |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener theListener)
Registers a property change listener to monitor this object. |
java.lang.Boolean |
isAlive()
Indicates whether this object is still active in the environment. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener theListener)
Unregisters a property change listener from monitoring this object. |
void |
setAlive(java.lang.Boolean isAlive)
Setter for isAlive, indicating whether the object is active |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.beans.PropertyChangeSupport changeSupport
Constructor Detail |
---|
public SimpleEnvironmentObject()
Method Detail |
---|
public void addPropertyChangeListener(java.beans.PropertyChangeListener theListener)
addPropertyChangeListener
in interface EnvironmentObject
theListener
- the listener to registerpublic void removePropertyChangeListener(java.beans.PropertyChangeListener theListener)
removePropertyChangeListener
in interface EnvironmentObject
theListener
- the listener to removepublic java.lang.Boolean isAlive()
isAlive
in interface EnvironmentObject
public void setAlive(java.lang.Boolean isAlive)
setAlive
in interface EnvironmentObject
isAlive
- new value for whether object is active
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |