|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.mbari.siam.distributed.CommsMode
public class CommsMode
CommsMode specifies the commumincations mode to be applied to a device's communication channel.
| 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 |
|---|
public static CommsMode RS232
public static CommsMode RS485
public static CommsMode RS422
public static CommsMode UNDEFINED
| Constructor Detail |
|---|
public CommsMode()
| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String[] validValues()
validValues in interface Mnemonic
public java.lang.Object fromString(java.lang.String string)
throws InvalidPropertyException
fromString in interface ImportableInvalidPropertyException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||