ElementType
- type of the actual value elements. For primitives, this is the
boxed variant.public interface ChannelAccessNumericControlsValue<ElementType extends java.lang.Number> extends ChannelAccessControlsValue<ElementType>, ChannelAccessNumericGraphicsValue<ElementType>
Channel Access values that represent a type that stores numbers and provides alarm information, engineering units, and alarm, control, 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 |
---|---|
ChannelAccessNumericControlsValue<ElementType> |
asReadOnlyValue()
Returns a read-only version of this value.
|
ChannelAccessNumericControlsValue<ElementType> |
clone()
Creates and returns a copy of this object.
|
ElementType |
getGenericLowerControlLimit()
Returns the lower control limit.
|
ElementType |
getGenericUpperControlLimit()
Returns the upper control limit.
|
getGenericLowerAlarmLimit, getGenericLowerDisplayLimit, getGenericLowerWarningLimit, getGenericUpperAlarmLimit, getGenericUpperDisplayLimit, getGenericUpperWarningLimit, getRawUnits, getUnits, setRawUnits, setUnits
getCharset
getAlarmSeverity, getAlarmStatus, setAlarmSeverity, setAlarmStatus
equals, getGenericValueElement, getType, getValueSize, hashCode, isReadOnly, iterator, toString
ElementType getGenericUpperControlLimit()
Returns the upper control limit. The upper control limit is the upper limit that the server enforces on values. Typically, this means that the process variable cannot be set to a value that is greater than this limit. A value of zero typically indicates that the limit has not been configured and thus should not be used.
Code that wants to get this limit should prefer the type-specific methods that return primitives for better performance. This method is only provided for code that has to deal with values in a generic way (without knowing the exact type of the actual value).
null
).ElementType getGenericLowerControlLimit()
Returns the lower control limit. The lower control limit is the lower limit that the server enforces on values. Typically, this means that the process variable cannot be set to a value that is less than this limit. A value of zero typically indicates that the limit has not been configured and thus should not be used.
Code that wants to get this limit should prefer the type-specific methods that return primitives for better performance. This method is only provided for code that has to deal with values in a generic way (without knowing the exact type of the actual value).
null
).ChannelAccessNumericControlsValue<ElementType> 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 ChannelAccessAlarmValue<ElementType extends java.lang.Number>
asReadOnlyValue
in interface ChannelAccessControlsValue<ElementType extends java.lang.Number>
asReadOnlyValue
in interface ChannelAccessGettableValue<ElementType extends java.lang.Number>
asReadOnlyValue
in interface ChannelAccessGraphicsValue<ElementType extends java.lang.Number>
asReadOnlyValue
in interface ChannelAccessNumericGraphicsValue<ElementType extends java.lang.Number>
asReadOnlyValue
in interface ChannelAccessValue<ElementType extends java.lang.Number>
null
).ChannelAccessNumericControlsValue<ElementType> 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 ChannelAccessAlarmValue<ElementType extends java.lang.Number>
clone
in interface ChannelAccessControlsValue<ElementType extends java.lang.Number>
clone
in interface ChannelAccessGettableValue<ElementType extends java.lang.Number>
clone
in interface ChannelAccessGraphicsValue<ElementType extends java.lang.Number>
clone
in interface ChannelAccessNumericGraphicsValue<ElementType extends java.lang.Number>
clone
in interface ChannelAccessValue<ElementType extends java.lang.Number>
Copyright © 2014–2018 aquenos GmbH. All rights reserved.