|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.primordion.xholon.base.Xholon org.primordion.xholon.base.XholonWithPorts org.primordion.xholon.base.ObservableXholonWithPorts
Observable Xholon with ports.
on Java.util.Observable class; inspired by Gamma et al. (1995). Design Patterns. (Observer pattern)
Field Summary |
Fields inherited from class org.primordion.xholon.base.XholonWithPorts |
port |
Fields inherited from class org.primordion.xholon.base.Xholon |
DEFAULT_LEVEL, interaction, interactionsEnabled |
Fields inherited from interface org.primordion.xholon.base.IXholon |
DEFAULT_SIZE_MSG_Q, NINCLUDE_PSC, NINCLUDE_PSx, NINCLUDE_PxC, NINCLUDE_Pxx, NINCLUDE_xSC, NINCLUDE_xSx, NINCLUDE_xxC, NINCLUDE_xxx |
Constructor Summary | |
ObservableXholonWithPorts()
|
Method Summary | |
void |
addObserver(IXholon o)
Adds an observer to the set of observers for this object. |
int |
countObservers()
Returns the number of observers of this Observable object. |
void |
deleteObserver(IXholon o)
Deletes an observer from the set of observers of this object. |
void |
deleteObservers()
Clears the observer list so that this object no longer has any observers. |
java.lang.Object |
getChangedData()
Get changed data. |
boolean |
hasChanged()
Tests if this object has changed. |
void |
notifyObservers()
If this object has changed, then notify all of its observers. |
void |
notifyObservers(java.lang.Object arg)
If this object has changed, then notify all of its observers. |
Methods inherited from class org.primordion.xholon.base.XholonWithPorts |
configure, getMaxPorts, getPort, initialize, isActiveObject, isBound, isContainer, isPassiveObject, postConfigure, setMaxPorts, setPorts, terminate |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ObservableXholonWithPorts()
Method Detail |
public void addObserver(IXholon o)
IObservable
addObserver
in interface IObservable
o
- An observer.public int countObservers()
IObservable
countObservers
in interface IObservable
public void deleteObserver(IXholon o)
IObservable
deleteObserver
in interface IObservable
o
- An observer.public void deleteObservers()
IObservable
deleteObservers
in interface IObservable
public void notifyObservers()
IObservable
notifyObservers
in interface IObservable
public void notifyObservers(java.lang.Object arg)
IObservable
notifyObservers
in interface IObservable
arg
- Some data.public boolean hasChanged()
IObservable
hasChanged
in interface IObservable
public java.lang.Object getChangedData()
IObservable
getChangedData
in interface IObservable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |