@Target(value=METHOD) @Retention(value=RUNTIME) public @interface Command
Declare a command of a tango device.
Declares a command myCommand with parameter of type int and returns double
@Command
public double myCommand(int value){..};
Possible parameter types and return types are:
boolean, boolean[], short, short[], long, long[], float, float[], double, double[], String, String[], int, int[],DeviceState, DeviceState[], byte, byte[], DevEncoded, DevVarLongStringArray,
DevVarDoubleStringArray| Modifier and Type | Optional Element and Description |
|---|---|
int |
displayLevel
The command display level.
|
String |
inTypeDesc |
boolean |
isPolled
define if attribute is polling.
|
String |
name
Default name is method name
|
String |
outTypeDesc
The command output documentation
|
int |
pollingPeriod
Configure polling period in ms.
|
public abstract String name
public abstract String inTypeDesc
public abstract String outTypeDesc
public abstract int displayLevel
DispLevelpublic abstract boolean isPolled
Attribute.pollingPeriod()public abstract int pollingPeriod
Attribute.isPolled() is trueCopyright © 2012–2017 Tango Controls. All rights reserved.