Monitoring mechanism to track GEMSEO execution (update events)¶
This class implements the observer pattern. It is a singleton, it is called by GEMSEO core classes like MDODicipline whenever an event of interest like a status change occurs. Client objects register with add_observer and are notified whenever a discipline status change occurs.
Register an observer object interested in observable update events
observer – object to be notified
Get the statuses of all disciplines
a dictionary of all statuses, keys are the atom ids
Unsubscribe all observers
Unsubscribe given observer
Notify observers that the corresponding observable object is updated. Observers have to know what to retrieve from the observable object.
observable – updated object