GNU
|
Liberty Eiffel
|
Automated Tests
|
Wiki
|
Savannah project
|
Debian packages
|
Documentation
>
libraries
>
OBSERVABLE
+
Point of view
All features
ANY
All features
deferred class OBSERVABLE
Summary
top
Part of the
Observer
Design Pattern. An object of this class should notify its observers whenever its state changes. Use the
notify
feature for that.
See also
OBSERVER
.
Direct parents
Insert list:
ANY
Class invariant
top
notifiable:
observers
/= Void
Overview
top
Features
{
ANY
}
add
(o: OBSERVER[OBSERVABLE])
Add an observer that should be notified
remove
(o: OBSERVER[OBSERVABLE])
Remove an observer that should not be notified anymore
has
(o: OBSERVER[OBSERVABLE]):
BOOLEAN
True if the observer will be notified when the state of Current changes
{}
notify
Notify all the observers that the state of Current changed
{}
observers
: COLLECTION[OBSERVER[OBSERVABLE]]
The collection of observers
add
(o: OBSERVER[OBSERVABLE])
effective procedure
{
ANY
}
top
Add an observer that should be notified
remove
(o: OBSERVER[OBSERVABLE])
effective procedure
{
ANY
}
top
Remove an observer that should not be notified anymore
require
has
(o)
has
(o: OBSERVER[OBSERVABLE]):
BOOLEAN
effective function
{
ANY
}
top
True if the observer will be notified when the state of Current changes
notify
effective procedure
{}
top
Notify all the observers that the state of Current changed
observers
: COLLECTION[OBSERVER[OBSERVABLE]]
writable attribute
{}
top
The collection of observers