public interface ChannelAccessGraphicsFloat extends ChannelAccessAlarmFloat, ChannelAccessFloatingPointGraphicsValue<Float>
Channel Access values that stores single-precision floating-point numbers and provides information about the alarm status, engineering units, display precision, and alarm and display limits.
This interface should not be implemented by user-defined classes. Code that
wants to create an instance implementing this interface should use the
methods provided by ChannelAccessValueFactory
instead.
Modifier and Type | Method and Description |
---|---|
ChannelAccessGraphicsFloat |
asReadOnlyValue()
Returns a read-only version of this value.
|
ChannelAccessGraphicsFloat |
clone()
Creates and returns a copy of this object.
|
float |
getLowerAlarmLimit()
Returns the lower alarm limit.
|
float |
getLowerDisplayLimit()
Returns the lower display limit.
|
float |
getLowerWarningLimit()
Returns the lower warning limit.
|
float |
getUpperAlarmLimit()
Returns the upper alarm limit.
|
float |
getUpperDisplayLimit()
Returns the upper display limit.
|
float |
getUpperWarningLimit()
Returns the upper warning limit.
|
void |
setLowerAlarmLimit(float lowerAlarmLimit)
Sets the lower alarm limit.
|
void |
setLowerDisplayLimit(float lowerDisplayLimit)
Sets the lower display limit.
|
void |
setLowerWarningLimit(float lowerWarningLimit)
Sets the lower warning limit.
|
void |
setUpperAlarmLimit(float upperAlarmLimit)
Sets the upper alarm limit.
|
void |
setUpperDisplayLimit(float upperDisplayLimit)
Sets the upper display limit.
|
void |
setUpperWarningLimit(float upperWarningLimit)
Sets the upper warning limit.
|
getValue, setValue
getPrecision, setPrecision
getGenericLowerAlarmLimit, getGenericLowerDisplayLimit, getGenericLowerWarningLimit, getGenericUpperAlarmLimit, getGenericUpperDisplayLimit, getGenericUpperWarningLimit, getRawUnits, getUnits, setRawUnits, setUnits
getCharset
getAlarmSeverity, getAlarmStatus, setAlarmSeverity, setAlarmStatus
equals, getGenericValueElement, getType, getValueSize, hashCode, isReadOnly, toString
forEach, spliterator
float getUpperDisplayLimit()
void setUpperDisplayLimit(float upperDisplayLimit)
upperDisplayLimit
- display limit.UnsupportedOperationException
- if this value is read-only (ChannelAccessValue.isReadOnly()
returns
true
).float getLowerDisplayLimit()
void setLowerDisplayLimit(float lowerDisplayLimit)
lowerDisplayLimit
- lower display limit.UnsupportedOperationException
- if this value is read-only (ChannelAccessValue.isReadOnly()
returns
true
).float getUpperAlarmLimit()
void setUpperAlarmLimit(float upperAlarmLimit)
upperAlarmLimit
- upper alarm limit.UnsupportedOperationException
- if this value is read-only (ChannelAccessValue.isReadOnly()
returns
true
).float getUpperWarningLimit()
void setUpperWarningLimit(float upperWarningLimit)
upperWarningLimit
- upper warning limit.UnsupportedOperationException
- if this value is read-only (ChannelAccessValue.isReadOnly()
returns
true
).float getLowerWarningLimit()
void setLowerWarningLimit(float lowerWarningLimit)
lowerWarningLimit
- lower warning limit.UnsupportedOperationException
- if this value is read-only (ChannelAccessValue.isReadOnly()
returns
true
).float getLowerAlarmLimit()
void setLowerAlarmLimit(float lowerAlarmLimit)
lowerAlarmLimit
- lower alarm limit.UnsupportedOperationException
- if this value is read-only (ChannelAccessValue.isReadOnly()
returns
true
).ChannelAccessGraphicsFloat asReadOnlyValue()
Returns a read-only version of this value. If the value is read-only, this value is returned. Otherwise, a wrapped version of this value, that does not allow modifications is returned.
Please note that the read-only value is not a copy of this value, but just a wrapper around it. This means, that modifications of the wrapped value will result in modifications of the read-only value. Therefore it is bad practice to modify a value that has been used as the base for a read-only value, because code that still has a reference to the read-only value might not expect this change and thus fail unexpectedly.
asReadOnlyValue
in interface ChannelAccessAlarmFloat
asReadOnlyValue
in interface ChannelAccessAlarmValue<Float>
asReadOnlyValue
in interface ChannelAccessFloat
asReadOnlyValue
in interface ChannelAccessFloatingPointGraphicsValue<Float>
asReadOnlyValue
in interface ChannelAccessGettableValue<Float>
asReadOnlyValue
in interface ChannelAccessGraphicsValue<Float>
asReadOnlyValue
in interface ChannelAccessNumericGraphicsValue<Float>
asReadOnlyValue
in interface ChannelAccessValue<Float>
null
).ChannelAccessGraphicsFloat clone()
Creates and returns a copy of this object. The object returned is completely independent from this object. This means that modifications to this object will not affect the returned object and vice-versa.
The object returned is guaranteed to be completely identical to this
object, including its type. This means that
x.clone().equals(x)
and
x.clone().getClass() == x.getClass()
are always
true
.
The returned value is guaranteed to allow write access, even if this value is read-only. This means that cloning a read-only value is a good way to get a writable copy.
clone
in interface ChannelAccessAlarmFloat
clone
in interface ChannelAccessAlarmValue<Float>
clone
in interface ChannelAccessFloat
clone
in interface ChannelAccessFloatingPointGraphicsValue<Float>
clone
in interface ChannelAccessGettableValue<Float>
clone
in interface ChannelAccessGraphicsValue<Float>
clone
in interface ChannelAccessNumericGraphicsValue<Float>
clone
in interface ChannelAccessValue<Float>
Copyright © 2014–2017 aquenos GmbH. All rights reserved.