org.mbari.siam.core
Class ServiceEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.mbari.siam.core.NodeEvent
          extended by org.mbari.siam.core.ServiceEvent
All Implemented Interfaces:
java.io.Serializable

public class ServiceEvent
extends NodeEvent

Service Event

See Also:
Serialized Form

Field Summary
 int _serviceID
          ID of service that initiated event
 int _stateChange
          Indicates which state change has occurred
static int INSTALLED
          State Change Constants
static int REMOVED
           
static int REQUEST_COMPLETE
           
static int SERVICE_FIRST
          Range of ServiceEvent IDs
static int SERVICE_LAST
           
static int STATE_CHANGE
          ServiceEvent IDs
 
Fields inherited from class org.mbari.siam.core.NodeEvent
_consumed, _id, SCHEDULER_EVENT_MASK, SERVICE_EVENT_MASK
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ServiceEvent(java.lang.Object source)
          Constructs a ServiceEvent with the specified source and type
ServiceEvent(java.lang.Object source, int id, int stateChange, int serviceID)
          Constructs a ServiceEvent with the specified source and type
 
Method Summary
 int getServiceID()
          getServiceID()
 int getStateChange()
          Return the type of state change
 
Methods inherited from class org.mbari.siam.core.NodeEvent
consume, finalize, getID, isConsumed, paramString, toString
 
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

SERVICE_FIRST

public static final int SERVICE_FIRST
Range of ServiceEvent IDs

See Also:
Constant Field Values

SERVICE_LAST

public static final int SERVICE_LAST
See Also:
Constant Field Values

STATE_CHANGE

public static final int STATE_CHANGE
ServiceEvent IDs

See Also:
Constant Field Values

INSTALLED

public static final int INSTALLED
State Change Constants

See Also:
Constant Field Values

REMOVED

public static final int REMOVED
See Also:
Constant Field Values

REQUEST_COMPLETE

public static final int REQUEST_COMPLETE
See Also:
Constant Field Values

_stateChange

public int _stateChange
Indicates which state change has occurred


_serviceID

public int _serviceID
ID of service that initiated event

Constructor Detail

ServiceEvent

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


ServiceEvent

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

Method Detail

getStateChange

public int getStateChange()
Return the type of state change


getServiceID

public int getServiceID()
getServiceID()



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.