public abstract class Display extends Object
The numeric limits are given in double precision no matter which numeric type. The unit is a simple String, which can be empty if no unit information is provided. The number format can be used to convert the value to a String.
Constructor and Description |
---|
Display() |
Modifier and Type | Method and Description |
---|---|
static Display |
create(Double lowerDisplayLimit,
Double lowerAlarmLimit,
Double lowerWarningLimit,
String units,
NumberFormat numberFormat,
Double upperWarningLimit,
Double upperAlarmLimit,
Double upperDisplayLimit,
Double lowerCtrlLimit,
Double upperCtrlLimit)
Creates a new display
|
boolean |
equals(Object obj) |
abstract Range |
getAlarmRange()
The range for the alarm associated to the value.
|
abstract Range |
getControlRange()
The range used for changing the value.
|
abstract Range |
getDisplayRange()
The range for the value when displayed.
|
abstract NumberFormat |
getFormat()
Returns a NumberFormat that creates a String with just the value (no units).
|
abstract String |
getUnit()
String representation of the unit using for all values.
|
abstract Range |
getWarningRange()
The range for the warning associated to the value.
|
int |
hashCode() |
static Display |
none()
Empty display information.
|
public abstract Range getDisplayRange()
public abstract Range getAlarmRange()
public abstract Range getWarningRange()
public abstract Range getControlRange()
public abstract String getUnit()
public abstract NumberFormat getFormat()
public static Display create(Double lowerDisplayLimit, Double lowerAlarmLimit, Double lowerWarningLimit, String units, NumberFormat numberFormat, Double upperWarningLimit, Double upperAlarmLimit, Double upperDisplayLimit, Double lowerCtrlLimit, Double upperCtrlLimit)
lowerDisplayLimit
- lower display limitlowerAlarmLimit
- lower alarm limitlowerWarningLimit
- lower warning limitunits
- the unitsnumberFormat
- the formatterupperWarningLimit
- the upper warning limitupperAlarmLimit
- the upper alarm limitupperDisplayLimit
- the upper display limitlowerCtrlLimit
- the lower control limitupperCtrlLimit
- the upper control limitpublic static Display none()
Copyright © 2015. All rights reserved.