frysk.proc
Class Observation

java.lang.Object
  extended by frysk.proc.Observation
All Implemented Interfaces:
Event
Direct Known Subclasses:
TaskObservation

public abstract class Observation
extends Object
implements Event

The binding between an Observer and its Observable.


Field Summary
protected  Observable observable
           
protected  Observer observer
           
 
Constructor Summary
protected Observation(Observable observable, Observer observer)
          Create a new Observer binding.
 
Method Summary
 boolean equals(Object o)
          Returns true if the Object's Observable:Observer binding is identical to this one.
 void fail(Throwable w)
          Tell the observer that the add is failing with w.
abstract  void handleAdd()
          Handle the addition of the Observer to the Observable.
abstract  void handleDelete()
          Handle the deletion of the Observer from the Observable.
 int hashCode()
          A somewhat arbitrary hash code.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface frysk.event.Event
execute
 

Field Detail

observable

protected final Observable observable

observer

protected final Observer observer
Constructor Detail

Observation

protected Observation(Observable observable,
                      Observer observer)
Create a new Observer binding.

Method Detail

equals

public boolean equals(Object o)
Returns true if the Object's Observable:Observer binding is identical to this one.

Overrides:
equals in class Object

hashCode

public int hashCode()
A somewhat arbitrary hash code.

Overrides:
hashCode in class Object

fail

public void fail(Throwable w)
Tell the observer that the add is failing with w.


handleAdd

public abstract void handleAdd()
Handle the addition of the Observer to the Observable.


handleDelete

public abstract void handleDelete()
Handle the deletion of the Observer from the Observable.


toString

public String toString()
Overrides:
toString in class Object