org.tango.server.device
Class StateImpl

java.lang.Object
  extended by org.tango.server.device.StateImpl

public final class StateImpl
extends java.lang.Object

Manage the state of the device

Author:
ABEILLE
See Also:
State

Constructor Summary
StateImpl(java.lang.Object businessObject, java.lang.reflect.Method getStateMethod, java.lang.reflect.Method setStateMethod)
          Ctr
 
Method Summary
 void addAttributeAlarm(java.lang.String attributeName)
           
 fr.esrf.Tango.DevState getState()
           
 boolean isDefaultState()
          If the state is not defined by user, will be a default state
 void removeAttributeAlarm(java.lang.String attributeName)
           
 void stateMachine(org.tango.DeviceState state)
          change state of the device
 java.lang.String toString()
           
 fr.esrf.Tango.DevState updateState()
          get the state from the device
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StateImpl

public StateImpl(java.lang.Object businessObject,
                 java.lang.reflect.Method getStateMethod,
                 java.lang.reflect.Method setStateMethod)
Ctr

Parameters:
businessObject -
getStateMethod -
setStateMethod -
Method Detail

isDefaultState

public boolean isDefaultState()
If the state is not defined by user, will be a default state

Returns:
true if a default state

updateState

public fr.esrf.Tango.DevState updateState()
                                   throws fr.esrf.Tango.DevFailed
get the state from the device

Returns:
the state
Throws:
fr.esrf.Tango.DevFailed

addAttributeAlarm

public void addAttributeAlarm(java.lang.String attributeName)

removeAttributeAlarm

public void removeAttributeAlarm(java.lang.String attributeName)

stateMachine

public void stateMachine(org.tango.DeviceState state)
                  throws fr.esrf.Tango.DevFailed
change state of the device

Parameters:
state -
Throws:
fr.esrf.Tango.DevFailed

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getState

public fr.esrf.Tango.DevState getState()


Copyright © 2012-2017. All Rights Reserved.