|
|||||||||||
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.StateMachineEntity org.primordion.xholon.base.ObservableStateMachineEntity
Observable StateMachineEntity.
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.StateMachineEntity |
ACTIVITYID_NONE, CNPT_OUTGOING1, CNPT_OUTGOING10, CNPT_OUTGOING2, CNPT_OUTGOING3, CNPT_OUTGOING4, CNPT_OUTGOING5, CNPT_OUTGOING6, CNPT_OUTGOING7, CNPT_OUTGOING8, CNPT_OUTGOING9, CNPT_TARGET, guardActivityId, MAX_ACTIVE_SUBSTATES, MAX_TRIGGERS, PRINT_ACTIVE_SUBSTATE, roleName, uid |
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 |
Fields inherited from interface org.primordion.xholon.common.mechanism.CeBehavior |
BehaviorCE, OpaqueBehaviorCE |
Fields inherited from interface org.primordion.xholon.common.mechanism.CeStateMachineEntity |
ActivityCE, ConnectionPointReferenceCE, DeferrableTriggerCE, DoActivityCE, EntryActivityCE, ExitActivityCE, FinalStateCE, GuardCE, PseudostateCE, PseudostateChoiceCE, PseudostateDeepHistoryCE, PseudostateEntryPointCE, PseudostateExitPointCE, PseudostateForkCE, PseudostateInitialCE, PseudostateJoinCE, PseudostateJunctionCE, PseudostateShallowHistoryCE, PseudostateTerminateCE, RegionCE, StateCE, StateMachineCE, StateMachineEntityCE, TargetCE, TransitionCE, TransitionExternalCE, TransitionInternalCE, TransitionLocalCE, TriggerCE, VertexCE |
Constructor Summary | |
ObservableStateMachineEntity()
|
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.StateMachineEntity |
act, configure, doStateMachine, getActivityId, getDoActivityId, getEntryActivityId, getExitActivityId, getGuardActivityId, getMaxPorts, getOwningXholon, getPort, getRoleName, getTrigger, getUid, getVal, initialize, initializeStateMachines, isActiveSubState, notifyActiveSubStates, postConfigure, setMaxPorts, setPorts, setRoleName, setUid, terminate, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ObservableStateMachineEntity()
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 |