|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Target(value=FIELD) @Retention(value=RUNTIME) public @interface State
Manage state of the device.
@State privateDeviceState
state; publicDeviceState
getState(){...} public void setState(DeviceState
state){...}
A class may not declare more than one @State method.
Optional Element Summary | |
---|---|
boolean |
isPolled
define if attribute is polled. period must be configured. see Attribute.pollingPeriod() |
int |
pollingPeriod
Configure polling period in ms. use only is Attribute.isPolled() is true |
public abstract boolean isPolled
Attribute.pollingPeriod()
public abstract int pollingPeriod
Attribute.isPolled()
is true
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |