org.tango.server.annotation
Annotation Type State


@Target(value=FIELD)
@Retention(value=RUNTIME)
public @interface State

Manage state of the device.

 @State
 private DeviceState state;
 
 public DeviceState getState(){...}
 
 public void setState(DeviceState state){...}
 

A class may not declare more than one @State method.

Author:
ABEILLE

Optional Element Summary
 boolean isPolled
          define if attribute is polled.
 int pollingPeriod
          Configure polling period in ms.
 

isPolled

public abstract boolean isPolled
define if attribute is polled. period must be configured. see Attribute.pollingPeriod()

Returns:
is polled
Default:
false

pollingPeriod

public abstract int pollingPeriod
Configure polling period in ms. use only is Attribute.isPolled() is true

Returns:
polling period
Default:
0


Copyright © 2012-2017. All Rights Reserved.