|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.mbari.siam.distributed.PowerPolicy
public class PowerPolicy
PowerPolicy specifies how power should be applied to a device or to the device's communication channel.
| Field Summary | |
|---|---|
static PowerPolicy |
ALWAYS
Apply power at startup and leave it on |
static PowerPolicy |
NEVER
Device is self-powered, no need to apply power |
static PowerPolicy |
UNDEFINED
This object is necessary so that we can invoke methods of the Mnemonic interface on it. |
static PowerPolicy |
WHEN_SAMPLING
Apply power when accessing device |
| Constructor Summary | |
|---|---|
PowerPolicy()
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 PowerPolicy 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 PowerPolicy NEVER
public static PowerPolicy WHEN_SAMPLING
public static PowerPolicy ALWAYS
public static PowerPolicy UNDEFINED
| Constructor Detail |
|---|
public PowerPolicy()
| 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 | |||||||