|
JML | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An object that keeps directory observers (i.e., a subject).
Class Specifications |
instance public invariant this.listeners != null; public initially !this.in_notifier; |
Specifications inherited from class Object |
represents objectState <- org.jmlspecs.lang.JMLDataGroup.IT; public represents _getClass <- \typeof(this); |
Model Field Summary | |
[instance] JMLObjectSet |
listeners
The set of observers. |
Ghost Field Summary | |
[instance] boolean |
in_notifier
Is a notification callback running? |
Method Summary | |
boolean |
inNotifier()
Is a notifier callback running? |
void |
register(DirObserver o)
Add a listener to the set of listeners. |
void |
unregister(DirObserver o)
Take a listener out of the set of listeners. |
Methods inherited from interface org.jmlspecs.models.JMLType |
clone, equals, hashCode |
Model Field Detail |
public JMLObjectSet listeners
Ghost Field Detail |
public boolean in_notifier
Method Detail |
public boolean inNotifier()
public void register(DirObserver o)
public void unregister(DirObserver o)
|
JML | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |