uk.org.ogsadai.engine
Class ObservableStatus

java.lang.Object
  |
  +--java.util.Observable
        |
        +--uk.org.ogsadai.engine.ObservableStatus

public class ObservableStatus
extends java.util.Observable

This is an Observable wrapper around a Status field. Observer implementations can be registered and they will each be updated every time the status is changed using the setStatus method.

Author:
The OGSA-DAI Project Team

Constructor Summary
ObservableStatus(Status status)
          Constructs an ObservableStatus class with the specified initiali status and an automatically generated name.
ObservableStatus(java.lang.String name, Status status)
          Constructs an ObservableStatus class with the specified initial status and name.
 
Method Summary
 Status getStatus()
          Gets the current status.
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObservableStatus

public ObservableStatus(Status status)
Constructs an ObservableStatus class with the specified initiali status and an automatically generated name. The name will simply be used in logging messages.

Parameters:
status - The initial Status.

ObservableStatus

public ObservableStatus(java.lang.String name,
                        Status status)
Constructs an ObservableStatus class with the specified initial status and name.

Parameters:
status - The initial Status.
name - The name for the ObservableStatus. This will simply be used in logging messages.
Method Detail

getStatus

public final Status getStatus()
Gets the current status.

Returns:
a Status reference.