DESY ACOP Beans Home

com.cosylab.gui.displayers
Class DataState

java.lang.Object
  extended by com.cosylab.gui.displayers.DataState
All Implemented Interfaces:
java.io.Serializable

public class DataState
extends java.lang.Object
implements java.io.Serializable

DataState describes quality of dinamic value.

Since:
Nov 24, 2003.
Version:
$Id: DataState.java,v 1.8 2008-04-22 12:31:02 jbobnar Exp $
Author:
Igor Kriznar
See Also:
Serialized Form

Field Summary
static java.lang.String ALARM
          State when alarm condition was rased for the dynamic value.
static java.lang.String CONNECTED
          State for connected source of dynamic data.
 java.lang.String description
          Detailed description of this data quality representativ.
static java.lang.String DISCONNECTED
          State for disconnected source of dynamic data.
static java.lang.String ERROR
          State when error condition was rased for the dynamic value.
static java.lang.String NORMAL
          State for normal conditions.
static java.lang.String NOT_INITIALIZED
          State for not initialized source of dynamic data.
static java.lang.String SUSPENDED
          State when dynamic data source ahs been suspended.
static java.lang.String TIMELAG
          State when dynamic value source receives data with timelag.
static java.lang.String TIMEOUT
          State when dynamic value data is in timeout.
 long timestamp
          Timestamp of data quality
 java.lang.String type
          Type identifying this data quality state.
static java.lang.String UNDEFINED
          State when data quality can not be determined.
static java.lang.String WARNING
          State when warning condition was rased for the dynamic value.
 
Constructor Summary
DataState(java.lang.String type)
          Creates a new DateState object.
DataState(java.lang.String type, long timestamp, java.lang.String description)
          Creates a new DataState object.
DataState(java.lang.String type, java.lang.String description)
          Creates a new DataState object.
 
Method Summary
 java.lang.String getType()
          Returns the type of this DataState.
 java.lang.String toString()
          Returns the type identifyer of this data quality state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

type

public java.lang.String type
Type identifying this data quality state. This DataState objec defines several usefull states, but there is not limitation to define new identifiers in contract data source and consumer implementation.


timestamp

public long timestamp
Timestamp of data quality


description

public java.lang.String description
Detailed description of this data quality representativ.


TIMELAG

public static final java.lang.String TIMELAG
State when dynamic value source receives data with timelag.

See Also:
Constant Field Values

TIMEOUT

public static final java.lang.String TIMEOUT
State when dynamic value data is in timeout.

See Also:
Constant Field Values

WARNING

public static final java.lang.String WARNING
State when warning condition was rased for the dynamic value.

See Also:
Constant Field Values

ALARM

public static final java.lang.String ALARM
State when alarm condition was rased for the dynamic value.

See Also:
Constant Field Values

ERROR

public static final java.lang.String ERROR
State when error condition was rased for the dynamic value.

See Also:
Constant Field Values

NORMAL

public static final java.lang.String NORMAL
State for normal conditions.

See Also:
Constant Field Values

NOT_INITIALIZED

public static final java.lang.String NOT_INITIALIZED
State for not initialized source of dynamic data.

See Also:
Constant Field Values

CONNECTED

public static final java.lang.String CONNECTED
State for connected source of dynamic data.

See Also:
Constant Field Values

DISCONNECTED

public static final java.lang.String DISCONNECTED
State for disconnected source of dynamic data.

See Also:
Constant Field Values

UNDEFINED

public static final java.lang.String UNDEFINED
State when data quality can not be determined.

See Also:
Constant Field Values

SUSPENDED

public static final java.lang.String SUSPENDED
State when dynamic data source ahs been suspended.

See Also:
Constant Field Values
Constructor Detail

DataState

public DataState(java.lang.String type,
                 long timestamp,
                 java.lang.String description)
Creates a new DataState object.

Parameters:
type - the string identifier for type.
timestamp - the time of data qyality change
description - detailed description of this data quality state

DataState

public DataState(java.lang.String type,
                 java.lang.String description)
Creates a new DataState object. The timestamp is set to time of object creation.

Parameters:
type - the string identifier for type.
description - detailed description of this data quality state

DataState

public DataState(java.lang.String type)
Creates a new DateState object. The timestamp is set to time of object creation.

Parameters:
type - the string identifier for type.
Method Detail

toString

public java.lang.String toString()
Returns the type identifyer of this data quality state.

Overrides:
toString in class java.lang.Object
Returns:
the type identifyer of this data quality state

getType

public java.lang.String getType()
Returns the type of this DataState.

Returns:


Copyright © 2010. All Rights Reserved.