org.tango.server.dynamic.attribute
Class ProxyAttribute

java.lang.Object
  extended by org.tango.server.dynamic.attribute.ProxyAttribute
All Implemented Interfaces:
IAttributeBehavior

public final class ProxyAttribute
extends java.lang.Object
implements IAttributeBehavior

Dynamic attribute that connects to another tango attribute. For performance issues, this attribute may be read from a MultiAttributeProxy

Author:
hardion
See Also:
MultiAttributeProxy

Constructor Summary
ProxyAttribute(java.lang.String attributeName, java.lang.String attributeProxyName, boolean isReadyOnly)
           
ProxyAttribute(java.lang.String attributeName, java.lang.String attributeProxyName, boolean isReadyOnly, boolean autoUpdate)
          see ProxyAttribute(String, String, boolean)
 
Method Summary
 AttributeConfiguration getConfiguration()
           
 StateMachineBehavior getStateMachine()
           
 AttributeValue getValue()
          Read attribute
 void setReadValue(AttributeValue readValue)
          Update the read value
 void setValue(AttributeValue value)
          Write attribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxyAttribute

public ProxyAttribute(java.lang.String attributeName,
                      java.lang.String attributeProxyName,
                      boolean isReadyOnly)
               throws fr.esrf.Tango.DevFailed
Parameters:
attributeName - The name of this attribute
attributeProxyName - The full name of the proxy attribute
isReadyOnly - Force this attribute to be read only even if proxy is read & write
Throws:
fr.esrf.Tango.DevFailed

ProxyAttribute

public ProxyAttribute(java.lang.String attributeName,
                      java.lang.String attributeProxyName,
                      boolean isReadyOnly,
                      boolean autoUpdate)
               throws fr.esrf.Tango.DevFailed
see ProxyAttribute(String, String, boolean)

Parameters:
autoUpdate - getValue will not read value from proxy. The value will be feeded with setReadValue(AttributeValue)
Throws:
fr.esrf.Tango.DevFailed
Method Detail

getValue

public AttributeValue getValue()
                        throws fr.esrf.Tango.DevFailed
Description copied from interface: IAttributeBehavior
Read attribute

Specified by:
getValue in interface IAttributeBehavior
Returns:
the read value
Throws:
fr.esrf.Tango.DevFailed

setValue

public void setValue(AttributeValue value)
              throws fr.esrf.Tango.DevFailed
Description copied from interface: IAttributeBehavior
Write attribute

Specified by:
setValue in interface IAttributeBehavior
Throws:
fr.esrf.Tango.DevFailed

getConfiguration

public AttributeConfiguration getConfiguration()
Specified by:
getConfiguration in interface IAttributeBehavior
Returns:
attribute configuration

getStateMachine

public StateMachineBehavior getStateMachine()
Specified by:
getStateMachine in interface IAttributeBehavior
Returns:
The state machine of this attribute

setReadValue

public void setReadValue(AttributeValue readValue)
Update the read value

Parameters:
readValue -


Copyright © 2012-2014. All Rights Reserved.