org.mbari.siam.distributed
Class CommsMode

java.lang.Object
  extended by org.mbari.siam.distributed.CommsMode
All Implemented Interfaces:
java.io.Serializable, Importable, Mnemonic

public class CommsMode
extends java.lang.Object
implements Mnemonic, java.io.Serializable

CommsMode specifies the commumincations mode to be applied to a device's communication channel.

See Also:
Serialized Form

Field Summary
static CommsMode RS232
          Device is self-powered, no need to apply power
static CommsMode RS422
          Apply power at startup and leave it on
static CommsMode RS485
          Apply power when accessing device
static CommsMode UNDEFINED
          This object is necessary so that we can invoke methods of the Mnemonic interface on it.
 
Constructor Summary
CommsMode()
          Public no-argument constructor (needed to be able to parse from properties file with Reflection...)
 
Method Summary
 java.lang.Object fromString(java.lang.String string)
          Generate CommsMode object from mnemonic string.
 java.lang.String toString()
          Generate mnemonic string for this power policy.
 java.lang.String[] validValues()
          Return array of valid string values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RS232

public static CommsMode RS232
Device is self-powered, no need to apply power


RS485

public static CommsMode RS485
Apply power when accessing device


RS422

public static CommsMode RS422
Apply power at startup and leave it on


UNDEFINED

public static CommsMode UNDEFINED
This object is necessary so that we can invoke methods of the Mnemonic interface on it.

Constructor Detail

CommsMode

public CommsMode()
Public no-argument constructor (needed to be able to parse from properties file with Reflection...)

Method Detail

toString

public java.lang.String toString()
Generate mnemonic string for this power policy.

Overrides:
toString in class java.lang.Object

validValues

public java.lang.String[] validValues()
Return array of valid string values.

Specified by:
validValues in interface Mnemonic

fromString

public java.lang.Object fromString(java.lang.String string)
                            throws InvalidPropertyException
Generate CommsMode object from mnemonic string.

Specified by:
fromString in interface Importable
Throws:
InvalidPropertyException


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.