|
||||||||||
| 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 privateDeviceStatestate; publicDeviceStategetState(){...} public void setState(DeviceStatestate){...}
A class may not declare more than one @State method.
| Optional Element Summary | |
|---|---|
boolean |
isPolled
define if attribute is polled. |
int |
pollingPeriod
Configure polling period in ms. |
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 | |||||||||