org.tango.server.attribute
Class AttributeImpl

java.lang.Object
  extended by org.tango.server.DeviceBehaviorObject
      extended by org.tango.server.attribute.AttributeImpl
All Implemented Interfaces:
java.lang.Comparable<AttributeImpl>, IPollable, IReadableWritable<AttributeValue>

public final class AttributeImpl
extends DeviceBehaviorObject
implements java.lang.Comparable<AttributeImpl>, IPollable, IReadableWritable<AttributeValue>

Tango attribute

Author:
ABEILLE

Constructor Summary
AttributeImpl(IAttributeBehavior behavior, java.lang.String deviceName)
           
 
Method Summary
 void addErrorToHistory(fr.esrf.Tango.DevFailed e)
           
 void addToHistory()
           
 void applyMemorizedValue()
           
 int compareTo(AttributeImpl o)
           
 void configureAttributePropFromDb()
           
 void configurePolling(int pollingPeriod)
           
 boolean equals(java.lang.Object obj)
           
 IAttributeBehavior getBehavior()
           
 double getDeltaTime()
           
 fr.esrf.Tango.DispLevel getDispLevel()
           
 double getExecutionDuration()
           
 fr.esrf.Tango.AttrDataFormat getFormat()
           
 AttributeHistory getHistory()
           
 java.lang.String getLastDevFailed()
           
 double getLastUpdateTime()
           
 int getMaxX()
           
 int getMaxY()
           
 java.lang.String getName()
           
 int getPollingPeriod()
           
 int getPollRingDepth()
           
 AttributePropertiesImpl getProperties()
           
 AttributeValue getReadValue()
          Get last read value
 int getTangoType()
           
 fr.esrf.Tango.AttrWriteType getWritable()
           
 AttributeValue getWriteValue()
          Get last write value
 int hashCode()
           
 boolean isAlarmToHigh()
           
 boolean isBoolean()
           
 boolean isCheckArchivingEvent()
           
 boolean isCheckChangeEvent()
           
 boolean isDeltaAlarm()
           
 boolean isDevEncoded()
           
 boolean isFwdAttribute()
           
 boolean isMemorized()
           
 boolean isMemorizedAtInit()
           
 boolean isNumber()
           
 boolean isOutOfLimits()
           
 boolean isPolled()
           
 boolean isPushArchiveEvent()
           
 boolean isPushChangeEvent()
           
 boolean isPushDataReady()
           
 boolean isScalar()
           
 boolean isState()
           
 boolean isString()
           
 void removeProperties()
           
 void resetPolling()
           
 void setPollingStats(double executionDuration, double lastUpdateTime, double deltaTime)
           
 void setPollRingDepth(int pollRingDepth)
           
 void setProperties(AttributePropertiesImpl properties)
          Set the attribute properties.
 void setValue(AttributeValue value)
          write attribute
 java.lang.String toString()
           
 void updateValue()
          read attribute on device
 void updateValue(AttributeValue inValue)
          set the read value
 
Methods inherited from class org.tango.server.DeviceBehaviorObject
getDeniedStates, getEndState, isAllowed, setDeniedStates, setEndState, setStateMachine
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AttributeImpl

public AttributeImpl(IAttributeBehavior behavior,
                     java.lang.String deviceName)
              throws fr.esrf.Tango.DevFailed
Throws:
fr.esrf.Tango.DevFailed
Method Detail

applyMemorizedValue

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

updateValue

public void updateValue()
                 throws fr.esrf.Tango.DevFailed
read attribute on device

Specified by:
updateValue in interface IReadableWritable<AttributeValue>
Throws:
fr.esrf.Tango.DevFailed

updateValue

public void updateValue(AttributeValue inValue)
                 throws fr.esrf.Tango.DevFailed
set the read value

Specified by:
updateValue in interface IReadableWritable<AttributeValue>
Throws:
fr.esrf.Tango.DevFailed

getLastDevFailed

public java.lang.String getLastDevFailed()
Specified by:
getLastDevFailed in interface IPollable

isAlarmToHigh

public boolean isAlarmToHigh()

setValue

public void setValue(AttributeValue value)
              throws fr.esrf.Tango.DevFailed
write attribute

Specified by:
setValue in interface IReadableWritable<AttributeValue>
Parameters:
value -
Throws:
fr.esrf.Tango.DevFailed

setProperties

public void setProperties(AttributePropertiesImpl properties)
                   throws fr.esrf.Tango.DevFailed
Set the attribute properties.

Parameters:
properties - The attribute properties
Throws:
fr.esrf.Tango.DevFailed

getName

public java.lang.String getName()
Specified by:
getName in interface IPollable

getFormat

public fr.esrf.Tango.AttrDataFormat getFormat()

getWritable

public fr.esrf.Tango.AttrWriteType getWritable()

isMemorized

public boolean isMemorized()

isMemorizedAtInit

public boolean isMemorizedAtInit()

getProperties

public AttributePropertiesImpl getProperties()
                                      throws fr.esrf.Tango.DevFailed
Throws:
fr.esrf.Tango.DevFailed

getDispLevel

public fr.esrf.Tango.DispLevel getDispLevel()

getMaxX

public int getMaxX()

getMaxY

public int getMaxY()

toString

public java.lang.String toString()
Overrides:
toString in class DeviceBehaviorObject
Returns:
a string

getWriteValue

public AttributeValue getWriteValue()
Description copied from interface: IReadableWritable
Get last write value

Specified by:
getWriteValue in interface IReadableWritable<AttributeValue>
Returns:

getReadValue

public AttributeValue getReadValue()
Description copied from interface: IReadableWritable
Get last read value

Specified by:
getReadValue in interface IReadableWritable<AttributeValue>
Returns:

getBehavior

public IAttributeBehavior getBehavior()

addToHistory

public void addToHistory()

addErrorToHistory

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

getHistory

public AttributeHistory getHistory()

getPollingPeriod

public int getPollingPeriod()
Specified by:
getPollingPeriod in interface IPollable

isPolled

public boolean isPolled()
Specified by:
isPolled in interface IPollable

isCheckArchivingEvent

public boolean isCheckArchivingEvent()

isCheckChangeEvent

public boolean isCheckChangeEvent()

isPushArchiveEvent

public boolean isPushArchiveEvent()

isPushChangeEvent

public boolean isPushChangeEvent()

isPushDataReady

public boolean isPushDataReady()

getTangoType

public int getTangoType()

configurePolling

public void configurePolling(int pollingPeriod)
                      throws fr.esrf.Tango.DevFailed
Specified by:
configurePolling in interface IPollable
Throws:
fr.esrf.Tango.DevFailed

resetPolling

public void resetPolling()
                  throws fr.esrf.Tango.DevFailed
Specified by:
resetPolling in interface IPollable
Throws:
fr.esrf.Tango.DevFailed

configureAttributePropFromDb

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

removeProperties

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

isNumber

public boolean isNumber()

isDevEncoded

public boolean isDevEncoded()

isBoolean

public boolean isBoolean()

isString

public boolean isString()

isState

public boolean isState()

isScalar

public boolean isScalar()

isOutOfLimits

public boolean isOutOfLimits()

compareTo

public int compareTo(AttributeImpl o)
Specified by:
compareTo in interface java.lang.Comparable<AttributeImpl>

isDeltaAlarm

public boolean isDeltaAlarm()

getPollRingDepth

public int getPollRingDepth()
Specified by:
getPollRingDepth in interface IPollable

setPollRingDepth

public void setPollRingDepth(int pollRingDepth)
Specified by:
setPollRingDepth in interface IPollable

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

getExecutionDuration

public double getExecutionDuration()
Specified by:
getExecutionDuration in interface IPollable

getLastUpdateTime

public double getLastUpdateTime()
Specified by:
getLastUpdateTime in interface IPollable

getDeltaTime

public double getDeltaTime()
Specified by:
getDeltaTime in interface IPollable

setPollingStats

public void setPollingStats(double executionDuration,
                            double lastUpdateTime,
                            double deltaTime)
Specified by:
setPollingStats in interface IPollable

isFwdAttribute

public boolean isFwdAttribute()


Copyright © 2012-2015. All Rights Reserved.