public interface ChannelAccessGraphicsLong extends ChannelAccessAlarmLong, ChannelAccessNumericGraphicsValue<java.lang.Integer>
Channel Access values that stores integer numbers and provides information
about the alarm status, engineering units, and alarm and display limits. For
historical reasons, this type is called long
in the Channel
Access protocol. However, it is represented by int
s.
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 |
---|---|
ChannelAccessGraphicsLong |
asReadOnlyValue()
Returns a read-only version of this value.
|
ChannelAccessGraphicsLong |
clone()
Creates and returns a copy of this object.
|
int |
getLowerAlarmLimit()
Returns the lower alarm limit.
|
int |
getLowerDisplayLimit()
Returns the lower display limit.
|
int |
getLowerWarningLimit()
Returns the lower warning limit.
|
int |
getUpperAlarmLimit()
Returns the upper alarm limit.
|
int |
getUpperDisplayLimit()
Returns the upper display limit.
|
int |
getUpperWarningLimit()
Returns the upper warning limit.
|
void |
setLowerAlarmLimit(int lowerAlarmLimit)
Sets the lower alarm limit.
|
void |
setLowerDisplayLimit(int lowerDisplayLimit)
Sets the lower display limit.
|
void |
setLowerWarningLimit(int lowerWarningLimit)
Sets the lower warning limit.
|
void |
setUpperAlarmLimit(int upperAlarmLimit)
Sets the upper alarm limit.
|
void |
setUpperDisplayLimit(int upperDisplayLimit)
Sets the upper display limit.
|
void |
setUpperWarningLimit(int upperWarningLimit)
Sets the upper warning limit.
|
getValue, setValue
getGenericLowerAlarmLimit, getGenericLowerDisplayLimit, getGenericLowerWarningLimit, getGenericUpperAlarmLimit, getGenericUpperDisplayLimit, getGenericUpperWarningLimit, getRawUnits, getUnits, setRawUnits, setUnits
getCharset
getAlarmSeverity, getAlarmStatus, setAlarmSeverity, setAlarmStatus
equals, getGenericValueElement, getType, getValueSize, hashCode, isReadOnly, iterator, toString
int getUpperDisplayLimit()
void setUpperDisplayLimit(int upperDisplayLimit)
upperDisplayLimit
- display limit.java.lang.UnsupportedOperationException
- if this value is read-only (ChannelAccessValue.isReadOnly()
returns
true
).int getLowerDisplayLimit()
void setLowerDisplayLimit(int lowerDisplayLimit)
lowerDisplayLimit
- lower display limit.java.lang.UnsupportedOperationException
- if this value is read-only (ChannelAccessValue.isReadOnly()
returns
true
).int getUpperAlarmLimit()
void setUpperAlarmLimit(int upperAlarmLimit)
upperAlarmLimit
- upper alarm limit.java.lang.UnsupportedOperationException
- if this value is read-only (ChannelAccessValue.isReadOnly()
returns
true
).int getUpperWarningLimit()
void setUpperWarningLimit(int upperWarningLimit)
upperWarningLimit
- upper warning limit.java.lang.UnsupportedOperationException
- if this value is read-only (ChannelAccessValue.isReadOnly()
returns
true
).int getLowerWarningLimit()
void setLowerWarningLimit(int lowerWarningLimit)
lowerWarningLimit
- lower warning limit.java.lang.UnsupportedOperationException
- if this value is read-only (ChannelAccessValue.isReadOnly()
returns
true
).int getLowerAlarmLimit()
void setLowerAlarmLimit(int lowerAlarmLimit)
lowerAlarmLimit
- lower alarm limit.java.lang.UnsupportedOperationException
- if this value is read-only (ChannelAccessValue.isReadOnly()
returns
true
).ChannelAccessGraphicsLong 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 ChannelAccessAlarmLong
asReadOnlyValue
in interface ChannelAccessAlarmValue<java.lang.Integer>
asReadOnlyValue
in interface ChannelAccessGettableValue<java.lang.Integer>
asReadOnlyValue
in interface ChannelAccessGraphicsValue<java.lang.Integer>
asReadOnlyValue
in interface ChannelAccessLong
asReadOnlyValue
in interface ChannelAccessNumericGraphicsValue<java.lang.Integer>
asReadOnlyValue
in interface ChannelAccessValue<java.lang.Integer>
null
).ChannelAccessGraphicsLong 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 ChannelAccessAlarmLong
clone
in interface ChannelAccessAlarmValue<java.lang.Integer>
clone
in interface ChannelAccessGettableValue<java.lang.Integer>
clone
in interface ChannelAccessGraphicsValue<java.lang.Integer>
clone
in interface ChannelAccessLong
clone
in interface ChannelAccessNumericGraphicsValue<java.lang.Integer>
clone
in interface ChannelAccessValue<java.lang.Integer>
Copyright © 2014–2018 aquenos GmbH. All rights reserved.