org.tango.server.attribute
Class ForwardedAttribute

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

public class ForwardedAttribute
extends java.lang.Object
implements IAttributeBehavior

Attribute that is a proxy to another attribute. Works only for IDL5 device and client

Author:
ABEILLE

Constructor Summary
ForwardedAttribute(java.lang.String fullRootAttributeName, java.lang.String attributeName, java.lang.String defaultLabel)
          Create a forwarded attribute.
 
Method Summary
 fr.esrf.Tango.DevAttrHistory_5 getAttributeHistory(int maxSize)
           
 AttributeConfiguration getConfiguration()
           
 java.lang.String getRootName()
           
 StateMachineBehavior getStateMachine()
           
 AttributeValue getValue()
          Read attribute
 fr.esrf.Tango.AttributeValue_5 getValue5()
           
 void init()
           
 void init(java.lang.String rootAttributeProperty)
           
 void setValue(AttributeValue value)
          Write attribute
 void subscribe(EventType eventType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ForwardedAttribute

public ForwardedAttribute(java.lang.String fullRootAttributeName,
                          java.lang.String attributeName,
                          java.lang.String defaultLabel)
                   throws fr.esrf.Tango.DevFailed
Create a forwarded attribute.

Parameters:
fullRootAttributeName - The default value of the root attribute. May be overriden by __root_attr attribute property
attributeName - The name of the fowarded attribute
defaultLabel - Its default label
Throws:
fr.esrf.Tango.DevFailed - if creation failed
Method Detail

init

public void init()
          throws fr.esrf.Tango.DevFailed
Throws:
fr.esrf.Tango.DevFailed

init

public void init(java.lang.String rootAttributeProperty)
          throws fr.esrf.Tango.DevFailed
Throws:
fr.esrf.Tango.DevFailed

getConfiguration

public AttributeConfiguration getConfiguration()
                                        throws fr.esrf.Tango.DevFailed
Specified by:
getConfiguration in interface IAttributeBehavior
Returns:
attribute configuration
Throws:
fr.esrf.Tango.DevFailed

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

getValue5

public fr.esrf.Tango.AttributeValue_5 getValue5()
                                         throws fr.esrf.Tango.DevFailed
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

getStateMachine

public StateMachineBehavior getStateMachine()
                                     throws fr.esrf.Tango.DevFailed
Specified by:
getStateMachine in interface IAttributeBehavior
Returns:
The state machine of this attribute
Throws:
fr.esrf.Tango.DevFailed

getAttributeHistory

public fr.esrf.Tango.DevAttrHistory_5 getAttributeHistory(int maxSize)
                                                   throws fr.esrf.Tango.DevFailed
Throws:
fr.esrf.Tango.DevFailed

getRootName

public java.lang.String getRootName()

subscribe

public void subscribe(EventType eventType)
               throws fr.esrf.Tango.DevFailed
Throws:
fr.esrf.Tango.DevFailed


Copyright © 2012-2015. All Rights Reserved.