org.mbari.siam.moos.utils.node
Class InstrumentPowerObject

java.lang.Object
  extended by org.mbari.siam.moos.utils.node.InstrumentPowerObject

public class InstrumentPowerObject
extends java.lang.Object

Description: This class is a proxy to a Power Switch objct for the tree in the Power Control Panel

C August 2003 MBARI Monterey Bay Aquarium Research Institute Proprietary Information. All rights reserved.

Version:
1.0
Author:
Sanghamitra Das

Constructor Summary
InstrumentPowerObject(java.lang.String powerStatus, PowerSwitch pw, Instrument ins)
          Constructor
 
Method Summary
 java.lang.String getDeviceID()
          method sets the power status public void setPowerStatus(String s) { _powerStatus = s; } /** returns the device ID of the instrument associated with the power switch object
 Instrument getInstrument()
          returns the intrument associated with the power switch object
 java.lang.String getName()
          returns the name of the power switch object
 java.lang.String getPowerStatus()
          returns the power status of the object
 java.lang.String toString()
          returns the name and power status of this object in its toString() method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InstrumentPowerObject

public InstrumentPowerObject(java.lang.String powerStatus,
                             PowerSwitch pw,
                             Instrument ins)
Constructor

Method Detail

getName

public java.lang.String getName()
returns the name of the power switch object


toString

public java.lang.String toString()
returns the name and power status of this object in its toString() method

Overrides:
toString in class java.lang.Object

getPowerStatus

public java.lang.String getPowerStatus()
returns the power status of the object


getDeviceID

public java.lang.String getDeviceID()
method sets the power status public void setPowerStatus(String s) { _powerStatus = s; } /** returns the device ID of the instrument associated with the power switch object


getInstrument

public Instrument getInstrument()
returns the intrument associated with the power switch 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.