Package ch.psi.wica.model.channel.value
Class WicaChannelValueBuilder
java.lang.Object
ch.psi.wica.model.channel.value.WicaChannelValueBuilder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateChannelValueConnectedInteger
(int value) Returns a new instance of a connected channel whose value is an INTEGER.createChannelValueConnectedInteger
(WicaChannelAlarmSeverity wicaChannelAlarmSeverity, WicaChannelAlarmStatus wicaChannelAlarmStatus, LocalDateTime dataSourceTimestamp, int value) Returns a new instance of a connected channel whose value is an INTEGER.createChannelValueConnectedIntegerArray
(int[] value) Returns a new instance of a connected channel whose value is an INTEGER_ARRAY.createChannelValueConnectedIntegerArray
(WicaChannelAlarmSeverity wicaChannelAlarmSeverity, WicaChannelAlarmStatus wicaChannelAlarmStatus, LocalDateTime dataSourceTimestamp, int[] value) Returns a new instance of a connected channel whose value is an INTEGER_ARRAY.createChannelValueConnectedReal
(double value) Returns a new instance of a connected channel whose value is REAL.createChannelValueConnectedReal
(WicaChannelAlarmSeverity wicaChannelAlarmSeverity, WicaChannelAlarmStatus wicaChannelAlarmStatus, LocalDateTime dataSourceTimestamp, double value) Returns a new instance of a connected channel whose value is REAL.createChannelValueConnectedRealArray
(double[] value) Returns a new instance of a connected channel whose value type is a REAL_ARRAY.createChannelValueConnectedRealArray
(WicaChannelAlarmSeverity wicaChannelAlarmSeverity, WicaChannelAlarmStatus wicaChannelAlarmStatus, LocalDateTime dataSourceTimestamp, double[] value) Returns a new instance of a connected channel whose value is a REAL_ARRAY.createChannelValueConnectedString
(WicaChannelAlarmSeverity wicaChannelAlarmSeverity, WicaChannelAlarmStatus wicaChannelAlarmStatus, LocalDateTime dataSourceTimestamp, String value) Returns a new instance of a connected channel whose value is a STRING.Returns a new instance of a connected channel whose value is a STRING.createChannelValueConnectedStringArray
(WicaChannelAlarmSeverity wicaChannelAlarmSeverity, WicaChannelAlarmStatus wicaChannelAlarmStatus, LocalDateTime dataSourceTimestamp, String[] value) Returns a new instance of a connected channel whose value is a STRING_ARRAY.Returns a new instance of a connected channel whose value is a STRING_ARRAY.static WicaChannelValueDisconnected
Returns a new instance of a channel whose value is DISCONNECTED.
-
Constructor Details
-
WicaChannelValueBuilder
public WicaChannelValueBuilder()
-
-
Method Details
-
createChannelValueDisconnected
Returns a new instance of a channel whose value is DISCONNECTED.- Returns:
- the new instance.
-
createChannelValueConnectedReal
Returns a new instance of a connected channel whose value is REAL.- Parameters:
value
- the value.- Returns:
- the new instance.
-
createChannelValueConnectedReal
public static WicaChannelValueConnectedReal createChannelValueConnectedReal(WicaChannelAlarmSeverity wicaChannelAlarmSeverity, WicaChannelAlarmStatus wicaChannelAlarmStatus, LocalDateTime dataSourceTimestamp, double value) Returns a new instance of a connected channel whose value is REAL.- Parameters:
wicaChannelAlarmSeverity
- the alarm severity.wicaChannelAlarmStatus
- the alarm status.dataSourceTimestamp
- the data source timestamp.value
- the value.- Returns:
- the new instance.
-
createChannelValueConnectedRealArray
public static WicaChannelValueConnectedRealArray createChannelValueConnectedRealArray(double[] value) Returns a new instance of a connected channel whose value type is a REAL_ARRAY.- Parameters:
value
- the value.- Returns:
- the new instance.
-
createChannelValueConnectedRealArray
public static WicaChannelValueConnectedRealArray createChannelValueConnectedRealArray(WicaChannelAlarmSeverity wicaChannelAlarmSeverity, WicaChannelAlarmStatus wicaChannelAlarmStatus, LocalDateTime dataSourceTimestamp, double[] value) Returns a new instance of a connected channel whose value is a REAL_ARRAY.- Parameters:
wicaChannelAlarmSeverity
- the alarm severity.wicaChannelAlarmStatus
- the alarm status.dataSourceTimestamp
- the data source timestamp.value
- the value.- Returns:
- the new instance.
-
createChannelValueConnectedInteger
Returns a new instance of a connected channel whose value is an INTEGER.- Parameters:
value
- the value.- Returns:
- the new instance.
-
createChannelValueConnectedInteger
public static WicaChannelValueConnectedInteger createChannelValueConnectedInteger(WicaChannelAlarmSeverity wicaChannelAlarmSeverity, WicaChannelAlarmStatus wicaChannelAlarmStatus, LocalDateTime dataSourceTimestamp, int value) Returns a new instance of a connected channel whose value is an INTEGER.- Parameters:
wicaChannelAlarmSeverity
- the alarm severity.wicaChannelAlarmStatus
- the alarm status.dataSourceTimestamp
- the data source timestamp.value
- the value.- Returns:
- the new instance.
-
createChannelValueConnectedIntegerArray
public static WicaChannelValueConnectedIntegerArray createChannelValueConnectedIntegerArray(int[] value) Returns a new instance of a connected channel whose value is an INTEGER_ARRAY.- Parameters:
value
- the value.- Returns:
- the new instance.
-
createChannelValueConnectedIntegerArray
public static WicaChannelValueConnectedIntegerArray createChannelValueConnectedIntegerArray(WicaChannelAlarmSeverity wicaChannelAlarmSeverity, WicaChannelAlarmStatus wicaChannelAlarmStatus, LocalDateTime dataSourceTimestamp, int[] value) Returns a new instance of a connected channel whose value is an INTEGER_ARRAY.- Parameters:
wicaChannelAlarmSeverity
- the alarm severity.wicaChannelAlarmStatus
- the alarm status.dataSourceTimestamp
- the data source timestamp.value
- the value.- Returns:
- the new instance.
-
createChannelValueConnectedString
Returns a new instance of a connected channel whose value is a STRING.- Parameters:
value
- the value.- Returns:
- the new instance.
-
createChannelValueConnectedString
public static WicaChannelValueConnectedString createChannelValueConnectedString(WicaChannelAlarmSeverity wicaChannelAlarmSeverity, WicaChannelAlarmStatus wicaChannelAlarmStatus, LocalDateTime dataSourceTimestamp, String value) Returns a new instance of a connected channel whose value is a STRING.- Parameters:
wicaChannelAlarmSeverity
- the alarm severity.wicaChannelAlarmStatus
- the alarm status.dataSourceTimestamp
- the data source timestamp.value
- the value.- Returns:
- the new instance.
-
createChannelValueConnectedStringArray
public static WicaChannelValueConnectedStringArray createChannelValueConnectedStringArray(String[] value) Returns a new instance of a connected channel whose value is a STRING_ARRAY.- Parameters:
value
- the value.- Returns:
- the new instance.
-
createChannelValueConnectedStringArray
public static WicaChannelValueConnectedStringArray createChannelValueConnectedStringArray(WicaChannelAlarmSeverity wicaChannelAlarmSeverity, WicaChannelAlarmStatus wicaChannelAlarmStatus, LocalDateTime dataSourceTimestamp, String[] value) Returns a new instance of a connected channel whose value is a STRING_ARRAY.- Parameters:
wicaChannelAlarmSeverity
- the alarm severity.wicaChannelAlarmStatus
- the alarm status.dataSourceTimestamp
- the data source timestamp.value
- the value.- Returns:
- the new instance.
-