|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.networkupstools.jnut.Variable
public class Variable
Class representing a variable of a device.
It can be used to get and set its value (if possible). A Variable object can be retrieved from Device instance and can not be constructed directly.
Constructor Summary | |
---|---|
protected |
Variable(java.lang.String name,
Device device)
Internally create a variable. |
Method Summary | |
---|---|
java.lang.String |
getDescription()
Retrieve the variable description from UPSD and store it in cache. |
Device |
getDevice()
Return the device to which the variable is related. |
java.lang.String |
getName()
Return the variable name. |
java.lang.String |
getValue()
Retrieve the variable value from UPSD and store it in cache. |
void |
setValue(java.lang.String value)
Set the variable value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected Variable(java.lang.String name, Device device)
name
- Variable name.device
- Device to which the variable is attached.Method Detail |
---|
public Device getDevice()
public java.lang.String getName()
public java.lang.String getValue() throws java.io.IOException, NutException
java.io.IOException
NutException
public java.lang.String getDescription() throws java.io.IOException, NutException
java.io.IOException
NutException
public void setValue(java.lang.String value) throws java.io.IOException, NutException
value
- New value for the variable
java.io.IOException
NutException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |