org.tango.server.dynamic.attribute
Class GroupAttribute

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

public class GroupAttribute
extends java.lang.Object
implements IAttributeBehavior

Write on a group of attributes, read average for scalar attributes. All attributes must be numbers or boolean (but not string) and of the same format. Write is possible only if at least one attribute is writable.NB1:for spectrum and images, if not all same dimensions, some zeros will be added. NB2: read value for images may be not relevant if not all attributes have the same dimensions.

Author:
ABEILLE

Constructor Summary
GroupAttribute(java.lang.String groupAttributeName, boolean isExternalRead, java.lang.String... attributeNames)
           
 
Method Summary
 AttributeConfiguration getConfiguration()
           
 StateMachineBehavior getStateMachine()
           
 AttributeValue getValue()
          Read attribute
 void setReadValue(fr.esrf.TangoApi.DeviceAttribute[] readValues)
           
 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

GroupAttribute

public GroupAttribute(java.lang.String groupAttributeName,
                      boolean isExternalRead,
                      java.lang.String... attributeNames)
               throws fr.esrf.Tango.DevFailed
Parameters:
groupAttributeName - the name of this attribute
isExternalRead - if true, the value has to be set with setReadValue(DeviceAttribute[])
attributeNames - the attributes in the group
Throws:
fr.esrf.Tango.DevFailed
Method Detail

getConfiguration

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

setReadValue

public void setReadValue(fr.esrf.TangoApi.DeviceAttribute[] readValues)

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

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


Copyright © 2012-2016. All Rights Reserved.