org.mbari.siam.core
Class NodeEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.mbari.siam.core.NodeEvent
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
CommEvent, LogSampleServiceEvent, PowerEvent, SchedulerEvent, ServiceEvent

public abstract class NodeEvent
extends java.util.EventObject

Node Event super class from which all Node events are extended

See Also:
Serialized Form

Field Summary
protected  boolean _consumed
           
protected  int _id
           
static long SCHEDULER_EVENT_MASK
          Event mask for selecting SCHEDULER events
static long SERVICE_EVENT_MASK
          Event mask for selecting SCHEDULER events
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
NodeEvent()
          Constructs a NodeEvent with the specified source and type
NodeEvent(java.lang.Object source)
          Constructs a NodeEvent with the specified source and type
NodeEvent(java.lang.Object source, int id)
          Constructs a NodeEvent with the specified source and type
 
Method Summary
protected  void consume()
          Consume event
protected  void finalize()
          Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
 int getID()
          Returns the event type
protected  boolean isConsumed()
          Returns current value of consumed member
 java.lang.String paramString()
          Returns a string representing the state of this event
 java.lang.String toString()
          Returns a string representation this event object
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_id

protected int _id

_consumed

protected boolean _consumed

SCHEDULER_EVENT_MASK

public static final long SCHEDULER_EVENT_MASK
Event mask for selecting SCHEDULER events

See Also:
Constant Field Values

SERVICE_EVENT_MASK

public static final long SERVICE_EVENT_MASK
Event mask for selecting SCHEDULER events

See Also:
Constant Field Values
Constructor Detail

NodeEvent

public NodeEvent()
Constructs a NodeEvent with the specified source and type


NodeEvent

public NodeEvent(java.lang.Object source)
Constructs a NodeEvent with the specified source and type


NodeEvent

public NodeEvent(java.lang.Object source,
                 int id)
Constructs a NodeEvent with the specified source and type

Method Detail

getID

public int getID()
Returns the event type


paramString

public java.lang.String paramString()
Returns a string representing the state of this event


toString

public java.lang.String toString()
Returns a string representation this event object

Overrides:
toString in class java.util.EventObject

consume

protected void consume()
Consume event


isConsumed

protected boolean isConsumed()
Returns current value of consumed member


finalize

protected void finalize()
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

Overrides:
finalize in class java.lang.Object


Copyright © 2003 MBARI.

The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement.