@Target(value={METHOD,FIELD}) @Retention(value=RUNTIME) public @interface StateMachine
Init,
Attribute and Command. WARNING: The StateMachine annotation for an attribute must be located at the
as the Attribute annotation
@Init
@StateMachine(endState = DeviceState.ON)
private void init(){..}
@Attribute
@StateMachine(deniedStates = { DeviceState.FAULT, DeviceState.UNKNOWN }, endState = DeviceState.DISABLE)
private String attr;
@Command
@StateMachine(deniedStates = { DeviceState.FAULT, DeviceState.UNKNOWN }, endState = DeviceState.DISABLE)
public double myCommand(int value){..}
| Modifier and Type | Optional Element and Description |
|---|---|
org.tango.DeviceState[] |
deniedStates
The states that are not allowed.
|
org.tango.DeviceState |
endState
The device state after the method execution
|
Copyright © 2012–2017 Tango Controls. All rights reserved.