|
TPTP 4.2.0 Testing Tools Project Public API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
An extended interface introduced to avoid breaking clients but also add new functionality -- this interface adds the ability to listen for data processor events. This is very helpful for learning when execution is truly done digesting events and cleaning up the models. Observers add them self to the observable waiting for the observed to notify back via the observer callback interface. The context is passed back to the various event calls to give the callback target the context of the change, basically it indicates which observable this event concerns. The state of a data processor goes started->stopped->cleaned, and this is the expected order of the event calls.
| Nested Class Summary | |
|---|---|
static interface |
IDataProcessorObservable.Observer
Observer nested interface, used as the callback for when observed events take place and notification is sent out, used in conjunction with the add and remove observer methods |
| Method Summary | |
|---|---|
void |
addObserver(IDataProcessorObservable.Observer observer)
Add an observer to this data processor, ensure that a matching remove observer call is used when observation is no longer needed |
void |
removeObserver(IDataProcessorObservable.Observer observer)
Removes an observer to this data processor, use the add observer method to add observers for observation of this data processor |
| Method Detail |
public void addObserver(IDataProcessorObservable.Observer observer)
observer - the callback interface instanceremoveObserver(IDataProcessorObservable.Observer)public void removeObserver(IDataProcessorObservable.Observer observer)
observer - the callback interface instanceaddObserver(IDataProcessorObservable.Observer)
|
TPTP 4.2.0 Testing Tools Project Public API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||