TANGO Java API
( TangORB-7.3.3.jar)

fr.esrf.TangoApi
Class DeviceDataHistory

java.lang.Object
  extended by fr.esrf.TangoApi.DeviceDataHistory

public class DeviceDataHistory
extends java.lang.Object

Class Description: This class manage data object for Tango device history Data access.


Usage example:

Version:
$Revision: 1.11 $
Author:
verdier

Field Summary
 DevError[] errors
          Error list if any in reading Command/Attribute.
 boolean failed
          true if command/attribute failed.
 java.lang.String name
          Command/Attribute name.
 int source
          Data source DeviceDataHistory.COMMAND or DeviceDataHistory.ATTRIBUTE
 
Constructor Summary
DeviceDataHistory(DevAttrHistory_3 att_histo)
          Constructor from an AttributeValue for Device_3Impl.
DeviceDataHistory(DevAttrHistory att_histo)
          Constructor from an AttributeValue.
DeviceDataHistory(java.lang.String cmdname, DevCmdHistory cmd_hist)
          Constructor from a DevCmdHistory.
DeviceDataHistory(java.lang.String name, int source, long t)
          Constructor from an AttributeValue for Device_4Impl.
DeviceDataHistory(java.lang.String name, int source, TimeVal time)
          Constructor from an AttributeValue for Device_4Impl.
 
Method Summary
 org.omg.CORBA.Any extractAny()
          extract method for a CORBA Any.
 boolean extractBoolean()
          extract method for a boolean.
 boolean[] extractBooleanArray()
          extract method for a byte Array.
 byte[] extractByteArray()
          extract method for a byte Array.
 DevEncoded extractDevEncoded()
          extract method for a DevEncoded.
 DevEncoded[] extractDevEncodedArray()
          extract method for a DevEncoded Array.
 DevState extractDevState()
          extract method for a DevState.
 DevState[] extractDevStateArray()
          extract method for a DevState Array.
 double extractDouble()
          extract method for a double.
 double[] extractDoubleArray()
          extract method for a double Array.
 DevVarDoubleStringArray extractDoubleStringArray()
          extract method for a DevVarDoubleStringArray.
 float extractFloat()
          extract method for a float.
 float[] extractFloatArray()
          extract method for a float Array.
 int extractLong()
          extract method for a long.
 long extractLong64()
          extract method for a long64.
 long[] extractLong64Array()
          extract method for a long64 Array.
 int[] extractLongArray()
          extract method for a long Array.
 DevVarLongStringArray extractLongStringArray()
          extract method for a DevVarLongStringArray.
 short extractShort()
          extract method for a short.
 short[] extractShortArray()
          extract method for a short Array.
 java.lang.String extractString()
          extract method for a String.
 java.lang.String[] extractStringArray()
          extract method for a String Array.
 short extractUChar()
          extract method for an unsigned char.
 short[] extractUCharArray()
          extract method for an unsigned char Array.
 int extractULong()
          extract method for an unsigned long.
 long extractULong64()
          extract method for an unsigned long64.
 long[] extractULong64Array()
          extract method for an unsigned long64 Array.
 int[] extractULongArray()
          extract method for an unsigned long Array.
 short extractUShort()
          extract method for an unsigned short.
 short[] extractUShortArray()
          extract method for an unsigned short Array.
 AttrQuality getAttrQuality()
          return AttrQuality if from attribute.
 int getDataLength()
           
 IDeviceDataHistoryDAO getDeviceedatahistoryDAO()
           
 int getDimX()
          Return attribute dim_x if from attribute.
 int getDimY()
          Return attribute dim_y if from attribute.
 DevError[] getErrStack()
          Returns the attribute errors list
 java.lang.String getName()
          Return attribute name.
 int getNbRead()
          Return number of data read.
 int getNbWritten()
          Return number of data written.
 long getTime()
          return time in milliseconds since EPOCH to build a Date class.
 TimeVal getTimeVal()
          Return attribute time value.
 long getTimeValSec()
          Return attribute time value in seconds since EPOCH.
 int getType()
          Returns attribute Tango type.
 int getWrittenDimX()
          Return attribute written dim_x.
 int getWrittenDimY()
          Return attribute written dim_y.
 boolean hasFailed()
          Returns true if attribute failed
 int insert(boolean[] values, int base)
           
 int insert(DevEncoded[] values, int base)
           
 int insert(DevState[] values, int base)
           
 int[] insert(DevVarDoubleStringArray dsa, int[] bases)
           
 int[] insert(DevVarLongStringArray lsa, int[] bases)
           
 void insert(double[] values)
           
 int insert(double[] values, int base)
           
 int insert(float[] values, int base)
           
 int insert(int[] values, int base)
           
 int insert(long[] values, int base)
           
 int insert(short[] values, int base)
           
 void insert(java.lang.String[] values)
           
 int insert(java.lang.String[] values, int base)
           
 void setAttrQuality(AttrQuality q)
          Set AttrQuality if from attribute.
 void setDimX(int dim)
          Set attribute dim_x if from attribute.
 void setDimY(int dim)
          Set attribute dim_y if from attribute.
 void setErrStack(DevError[] err)
          Set the attribute errors list
 void setTimeVal(TimeVal tval)
          Set attribute time value.
 void setWrittenDimX(int nb)
          Set attribute written dim_x.
 void setWrittenDimY(int nb)
          Set attribute written dim_y.
 org.omg.CORBA.TypeCode type()
          Returns the attribute type
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

source

public int source
Data source DeviceDataHistory.COMMAND or DeviceDataHistory.ATTRIBUTE


name

public java.lang.String name
Command/Attribute name.


failed

public boolean failed
true if command/attribute failed.


errors

public DevError[] errors
Error list if any in reading Command/Attribute.

Constructor Detail

DeviceDataHistory

public DeviceDataHistory(java.lang.String cmdname,
                         DevCmdHistory cmd_hist)
                  throws DevFailed
Constructor from a DevCmdHistory.

Throws:
DevFailed

DeviceDataHistory

public DeviceDataHistory(DevAttrHistory att_histo)
                  throws DevFailed
Constructor from an AttributeValue.

Throws:
DevFailed

DeviceDataHistory

public DeviceDataHistory(DevAttrHistory_3 att_histo)
                  throws DevFailed
Constructor from an AttributeValue for Device_3Impl.

Throws:
DevFailed

DeviceDataHistory

public DeviceDataHistory(java.lang.String name,
                         int source,
                         TimeVal time)
                  throws DevFailed
Constructor from an AttributeValue for Device_4Impl.

Throws:
DevFailed

DeviceDataHistory

public DeviceDataHistory(java.lang.String name,
                         int source,
                         long t)
                  throws DevFailed
Constructor from an AttributeValue for Device_4Impl.

Throws:
DevFailed
Method Detail

setTimeVal

public void setTimeVal(TimeVal tval)
Set attribute time value.


getTimeVal

public TimeVal getTimeVal()
Return attribute time value.


getTimeValSec

public long getTimeValSec()
Return attribute time value in seconds since EPOCH.


getTime

public long getTime()
return time in milliseconds since EPOCH to build a Date class.


setAttrQuality

public void setAttrQuality(AttrQuality q)
                    throws DevFailed
Set AttrQuality if from attribute.

Throws:
DevFailed

getAttrQuality

public AttrQuality getAttrQuality()
                           throws DevFailed
return AttrQuality if from attribute.

Throws:
DevFailed

setDimX

public void setDimX(int dim)
             throws DevFailed
Set attribute dim_x if from attribute.

Throws:
DevFailed

setDimY

public void setDimY(int dim)
             throws DevFailed
Set attribute dim_y if from attribute.

Throws:
DevFailed

getDimX

public int getDimX()
            throws DevFailed
Return attribute dim_x if from attribute.

Throws:
DevFailed

getDimY

public int getDimY()
            throws DevFailed
Return attribute dim_y if from attribute.

Throws:
DevFailed

extractAny

public org.omg.CORBA.Any extractAny()
                             throws DevFailed
extract method for a CORBA Any.

Throws:
DevFailed

extractBoolean

public boolean extractBoolean()
                       throws DevFailed
extract method for a boolean.

Throws:
DevFailed

extractUChar

public short extractUChar()
                   throws DevFailed
extract method for an unsigned char.

Returns:
the extracted value.
Throws:
DevFailed

extractShort

public short extractShort()
                   throws DevFailed
extract method for a short.

Throws:
DevFailed

extractUShort

public short extractUShort()
                    throws DevFailed
extract method for an unsigned short.

Throws:
DevFailed

extractLong

public int extractLong()
                throws DevFailed
extract method for a long.

Throws:
DevFailed

extractULong

public int extractULong()
                 throws DevFailed
extract method for an unsigned long.

Throws:
DevFailed

extractLong64

public long extractLong64()
                   throws DevFailed
extract method for a long64.

Throws:
DevFailed

extractULong64

public long extractULong64()
                    throws DevFailed
extract method for an unsigned long64.

Throws:
DevFailed

extractFloat

public float extractFloat()
                   throws DevFailed
extract method for a float.

Throws:
DevFailed

extractDouble

public double extractDouble()
                     throws DevFailed
extract method for a double.

Throws:
DevFailed

extractString

public java.lang.String extractString()
                               throws DevFailed
extract method for a String.

Throws:
DevFailed

extractDevState

public DevState extractDevState()
                         throws DevFailed
extract method for a DevState.

Throws:
DevFailed

extractDevEncoded

public DevEncoded extractDevEncoded()
                             throws DevFailed
extract method for a DevEncoded.

Throws:
DevFailed

extractBooleanArray

public boolean[] extractBooleanArray()
                              throws DevFailed
extract method for a byte Array.

Throws:
DevFailed

extractByteArray

public byte[] extractByteArray()
                        throws DevFailed
extract method for a byte Array.

Throws:
DevFailed

extractUCharArray

public short[] extractUCharArray()
                          throws DevFailed
extract method for an unsigned char Array.

Returns:
the extracted value.
Throws:
DevFailed

extractShortArray

public short[] extractShortArray()
                          throws DevFailed
extract method for a short Array.

Throws:
DevFailed

extractUShortArray

public short[] extractUShortArray()
                           throws DevFailed
extract method for an unsigned short Array.

Throws:
DevFailed

extractLongArray

public int[] extractLongArray()
                       throws DevFailed
extract method for a long Array.

Throws:
DevFailed

extractULongArray

public int[] extractULongArray()
                        throws DevFailed
extract method for an unsigned long Array.

Throws:
DevFailed

extractLong64Array

public long[] extractLong64Array()
                          throws DevFailed
extract method for a long64 Array.

Throws:
DevFailed

extractULong64Array

public long[] extractULong64Array()
                           throws DevFailed
extract method for an unsigned long64 Array.

Throws:
DevFailed

extractFloatArray

public float[] extractFloatArray()
                          throws DevFailed
extract method for a float Array.

Throws:
DevFailed

extractDoubleArray

public double[] extractDoubleArray()
                            throws DevFailed
extract method for a double Array.

Throws:
DevFailed

extractStringArray

public java.lang.String[] extractStringArray()
                                      throws DevFailed
extract method for a String Array.

Throws:
DevFailed

extractDevStateArray

public DevState[] extractDevStateArray()
                                throws DevFailed
extract method for a DevState Array.

Throws:
DevFailed

extractDevEncodedArray

public DevEncoded[] extractDevEncodedArray()
                                    throws DevFailed
extract method for a DevEncoded Array.

Throws:
DevFailed

extractLongStringArray

public DevVarLongStringArray extractLongStringArray()
                                             throws DevFailed
extract method for a DevVarLongStringArray.

Throws:
DevFailed

extractDoubleStringArray

public DevVarDoubleStringArray extractDoubleStringArray()
                                                 throws DevFailed
extract method for a DevVarDoubleStringArray.

Throws:
DevFailed

hasFailed

public boolean hasFailed()
Returns true if attribute failed


setErrStack

public void setErrStack(DevError[] err)
Set the attribute errors list


getErrStack

public DevError[] getErrStack()
Returns the attribute errors list


type

public org.omg.CORBA.TypeCode type()
Returns the attribute type


getName

public java.lang.String getName()
Return attribute name.


getNbRead

public int getNbRead()
Return number of data read.


getNbWritten

public int getNbWritten()
Return number of data written.


setWrittenDimX

public void setWrittenDimX(int nb)
Set attribute written dim_x.


setWrittenDimY

public void setWrittenDimY(int nb)
Set attribute written dim_y.


getWrittenDimX

public int getWrittenDimX()
Return attribute written dim_x.


getWrittenDimY

public int getWrittenDimY()
Return attribute written dim_y.


getType

public int getType()
            throws DevFailed
Returns attribute Tango type.

Throws:
DevFailed

getDeviceedatahistoryDAO

public IDeviceDataHistoryDAO getDeviceedatahistoryDAO()

getDataLength

public int getDataLength()
                  throws DevFailed
Throws:
DevFailed

insert

public int insert(boolean[] values,
                  int base)
           throws DevFailed
Throws:
DevFailed

insert

public int insert(short[] values,
                  int base)
           throws DevFailed
Throws:
DevFailed

insert

public int insert(int[] values,
                  int base)
           throws DevFailed
Throws:
DevFailed

insert

public int insert(long[] values,
                  int base)
           throws DevFailed
Throws:
DevFailed

insert

public int insert(float[] values,
                  int base)
           throws DevFailed
Throws:
DevFailed

insert

public int insert(double[] values,
                  int base)
           throws DevFailed
Throws:
DevFailed

insert

public int insert(java.lang.String[] values,
                  int base)
           throws DevFailed
Throws:
DevFailed

insert

public int insert(DevState[] values,
                  int base)
           throws DevFailed
Throws:
DevFailed

insert

public int insert(DevEncoded[] values,
                  int base)
           throws DevFailed
Throws:
DevFailed

insert

public int[] insert(DevVarLongStringArray lsa,
                    int[] bases)
             throws DevFailed
Throws:
DevFailed

insert

public int[] insert(DevVarDoubleStringArray dsa,
                    int[] bases)
             throws DevFailed
Throws:
DevFailed

insert

public void insert(double[] values)
            throws DevFailed
Throws:
DevFailed

insert

public void insert(java.lang.String[] values)
            throws DevFailed
Throws:
DevFailed

TANGO Java API
( TangORB-7.3.3.jar)