FreeHEP API
Version current

hep.aida.ref.event
Class AIDAObservable

java.lang.Object
  extended byhep.aida.ref.event.AIDAObservable
Direct Known Subclasses:
DataPoint, ManagedObject, Measurement, RemoteTree, Tree

public abstract class AIDAObservable
extends Object

A basic implementation of isObservable. Although this class implements all the methods of IsObservable, it does not explicitly implement the IsObservable interface. This is so that ManagedObject can extend AIDAObservable, although not all ManagedObjects implement IsObservable.

Version:
$Id: AIDAObservable.java,v 1.8 2005/11/11 20:18:43 serbo Exp $
Author:
tonyj
Source Code:
AIDAObservable.java

Field Summary
protected  boolean connectionDidChange
           
protected  boolean isConnected
           
protected  boolean isValid
           
 
Constructor Summary
protected AIDAObservable()
           
 
Method Summary
 void addListener(AIDAListener l)
           
protected  EventObject createEvent()
           
protected  void fireStateChanged()
          Method to be used by subclass that only fire a single event (theEvent)
protected  void fireStateChanged(EventObject event)
           
protected  void fireStateChanged(EventObject event, boolean checkValid)
           
 boolean isConnected()
           
 void removeAllListeners()
           
 void removeListener(AIDAListener l)
           
 void setConnected(boolean isConnected)
           
protected  void setIsValidAfterNotify(boolean value)
           
 void setValid(AIDAListener l)
           
 void setValidForAll()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

isConnected

protected boolean isConnected

connectionDidChange

protected boolean connectionDidChange

isValid

protected boolean isValid
Constructor Detail

AIDAObservable

protected AIDAObservable()
Method Detail

setIsValidAfterNotify

protected void setIsValidAfterNotify(boolean value)

addListener

public void addListener(AIDAListener l)

removeListener

public void removeListener(AIDAListener l)

removeAllListeners

public void removeAllListeners()

setValid

public void setValid(AIDAListener l)

setValidForAll

public void setValidForAll()

createEvent

protected EventObject createEvent()

setConnected

public void setConnected(boolean isConnected)

isConnected

public boolean isConnected()

fireStateChanged

protected void fireStateChanged()
Method to be used by subclass that only fire a single event (theEvent)


fireStateChanged

protected void fireStateChanged(EventObject event)

fireStateChanged

protected void fireStateChanged(EventObject event,
                                boolean checkValid)

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.