public interface ChannelAccessTimeChar extends ChannelAccessAlarmChar, ChannelAccessTimeValue<java.lang.Byte>
Channel Access value that represents the
DBR_TIME_CHAR
type. This type
stores single-byte integer numbers and provides information about the alarm
status and a time-stamp. For historical reasons, this type is called
DBR_TIME_CHAR
in the Channel Access protocol. However, it is
represented by byte
s.
Due to technical limitations of the Java platform, the char values are represented by signed integers. The Channel Access protocol, however, defines them as unsigned. Therefore, positive numbers in the Channel Access protocol might appear as negative numbers in this library and vice-versa.
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 |
---|---|
ChannelAccessTimeChar |
asReadOnlyValue()
Returns a read-only version of this value.
|
ChannelAccessTimeChar |
clone()
Creates and returns a copy of this object.
|
getValue, setValue
getTimeNanoseconds, getTimeSeconds, getTimeStamp, setTimeNanoseconds, setTimeSeconds, setTimeStamp
getAlarmSeverity, getAlarmStatus, setAlarmSeverity, setAlarmStatus
equals, getGenericValueElement, getType, getValueSize, hashCode, isReadOnly, iterator, toString
ChannelAccessTimeChar 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 ChannelAccessAlarmChar
asReadOnlyValue
in interface ChannelAccessAlarmValue<java.lang.Byte>
asReadOnlyValue
in interface ChannelAccessChar
asReadOnlyValue
in interface ChannelAccessGettableValue<java.lang.Byte>
asReadOnlyValue
in interface ChannelAccessTimeValue<java.lang.Byte>
asReadOnlyValue
in interface ChannelAccessValue<java.lang.Byte>
null
).ChannelAccessTimeChar 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 ChannelAccessAlarmChar
clone
in interface ChannelAccessAlarmValue<java.lang.Byte>
clone
in interface ChannelAccessChar
clone
in interface ChannelAccessGettableValue<java.lang.Byte>
clone
in interface ChannelAccessTimeValue<java.lang.Byte>
clone
in interface ChannelAccessValue<java.lang.Byte>
Copyright © 2014–2018 aquenos GmbH. All rights reserved.