org.mbari.siam.distributed
Class PowerSwitch

java.lang.Object
  extended by org.mbari.siam.distributed.PowerSwitch
All Implemented Interfaces:
java.io.Serializable

public class PowerSwitch
extends java.lang.Object
implements java.io.Serializable

The PowerSwitch class contains information about power switches.

Author:
Tom O'Reilly
See Also:
Serialized Form

Field Summary
protected  long _switchedDeviceID
          ISI ID of device which is powered by switch.
protected  byte[] _switchName
           
 
Constructor Summary
PowerSwitch(byte[] switchName, long switchedDeviceID)
          Create PowerSwitch object with specified name and switched device ID.
 
Method Summary
 byte[] getName()
          Return name of switch.
 long getSwitchedDeviceID()
          Return ISI ID of associated device.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_switchName

protected byte[] _switchName

_switchedDeviceID

protected long _switchedDeviceID
ISI ID of device which is powered by switch.

Constructor Detail

PowerSwitch

public PowerSwitch(byte[] switchName,
                   long switchedDeviceID)
Create PowerSwitch object with specified name and switched device ID.

Parameters:
switchName - Name of switch object
switchedDeviceID - ISI device ID of associated instrument; 0 if instrument service not running.
Method Detail

getName

public byte[] getName()
Return name of switch.


getSwitchedDeviceID

public long getSwitchedDeviceID()
                         throws DeviceNotFound
Return ISI ID of associated device.

Throws:
DeviceNotFound


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.