org.mbari.siam.core
Class PowerEvent

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

public class PowerEvent
extends NodeEvent

Power Event

See Also:
Serialized Form

Field Summary
 java.lang.String _reading
           
 int _type
           
static int POWER_DO_HALT
           
static int POWER_DO_SAFEMODE
          Power Event Constants
static int POWER_FAILURE_DETECTED
          PowerEvent IDs
static int POWER_FIRST
          Range of PowerEvent IDs
static int POWER_LAST
           
 
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
PowerEvent(java.lang.Object source)
          Constructs a PowerEvent with the specified source and type
PowerEvent(java.lang.Object source, int id, int type)
          Constructs a PowerEvent with the specified source and type
PowerEvent(java.lang.Object source, int id, java.lang.String reading)
          Constructs a PowerEvent with the specified source and type
 
Method Summary
 java.lang.String getReading()
           
 int getType()
           
 void setType(int type)
           
 
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

POWER_FIRST

public static final int POWER_FIRST
Range of PowerEvent IDs

See Also:
Constant Field Values

POWER_LAST

public static final int POWER_LAST
See Also:
Constant Field Values

POWER_FAILURE_DETECTED

public static final int POWER_FAILURE_DETECTED
PowerEvent IDs

See Also:
Constant Field Values

POWER_DO_SAFEMODE

public static final int POWER_DO_SAFEMODE
Power Event Constants

See Also:
Constant Field Values

POWER_DO_HALT

public static final int POWER_DO_HALT
See Also:
Constant Field Values

_type

public int _type

_reading

public java.lang.String _reading
Constructor Detail

PowerEvent

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


PowerEvent

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


PowerEvent

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

Method Detail

setType

public void setType(int type)

getType

public int getType()

getReading

public java.lang.String getReading()


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.