DESY ACOP Beans Home

de.desy.acop.displayers.chart
Class THistoryConnector

java.lang.Object
  extended by de.desy.acop.displayers.chart.THistoryConnector

public class THistoryConnector
extends java.lang.Object

THistoryConnector is used to retrieve data from the history server.

Author:
Tilen Kusterle, Cosylab

Constructor Summary
THistoryConnector()
           
 
Method Summary
protected  double[][] getHistoryData(java.lang.String context, java.lang.String server, java.lang.String device, java.lang.String property, int index, double start, double stop)
           
 int getTimeout()
          Returns the timeout.
 boolean isCheckForBadData()
          Returns true if check for bad data is turned on.
 boolean isSimulate()
          Is history data simulated.
 double[][] loadHistory(HistoryParameters hp, double start, double stop)
          Returns the history data for the specified remote point between the given start and stop dates in TINE time.
 void setCheckForBadData(boolean checkForBadData)
          Enables/disables checking for bad data.
 void setSimulate(boolean simulate)
          Simulates the history data.
 void setTimeout(int timeout)
          Sets the timeout for all remote calls.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

THistoryConnector

public THistoryConnector()
Method Detail

getHistoryData

protected double[][] getHistoryData(java.lang.String context,
                                    java.lang.String server,
                                    java.lang.String device,
                                    java.lang.String property,
                                    int index,
                                    double start,
                                    double stop)

loadHistory

public double[][] loadHistory(HistoryParameters hp,
                              double start,
                              double stop)
Returns the history data for the specified remote point between the given start and stop dates in TINE time.

Parameters:
hp - history connection point
start - starting time
stop - end time
Returns:
array of history data of length 2: the first array are timestamps and the second are the values

isCheckForBadData

public boolean isCheckForBadData()
Returns true if check for bad data is turned on.

Returns:
the checkForBadData

setCheckForBadData

public void setCheckForBadData(boolean checkForBadData)
Enables/disables checking for bad data. Bad data is any value higher than 1E30. If enabled these values are filtered out.

Parameters:
checkForBadData - true if check for bad data is turned on

isSimulate

public boolean isSimulate()
Is history data simulated.

Returns:
true if data is simulated

setSimulate

public void setSimulate(boolean simulate)
Simulates the history data.

Parameters:
simulate - true if history data should be simulated

getTimeout

public int getTimeout()
Returns the timeout.

Returns:
the timeout

setTimeout

public void setTimeout(int timeout)
Sets the timeout for all remote calls.

Parameters:
timeout - the timeout to set


Copyright © 2010. All Rights Reserved.