TPTP 4.2.0 Testing Tools Project
Public API Specification

org.eclipse.hyades.execution.harness
Interface IDataProcessorObservable

All Known Implementing Classes:
XMLExecutionDataProcessor

public interface IDataProcessorObservable

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

addObserver

public 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

Parameters:
observer - the callback interface instance
See Also:
removeObserver(IDataProcessorObservable.Observer)

removeObserver

public 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

Parameters:
observer - the callback interface instance
See Also:
addObserver(IDataProcessorObservable.Observer)

TPTP 4.2.0 Testing Tools Project
Public API Specification