Class WicaChannelValueBuilder

java.lang.Object
ch.psi.wica.model.channel.value.WicaChannelValueBuilder

public class WicaChannelValueBuilder extends Object
  • Constructor Details

    • WicaChannelValueBuilder

      public WicaChannelValueBuilder()
  • Method Details

    • createChannelValueDisconnected

      public static WicaChannelValueDisconnected createChannelValueDisconnected()
      Returns a new instance of a channel whose value is DISCONNECTED.
      Returns:
      the new instance.
    • createChannelValueConnectedReal

      public static WicaChannelValueConnectedReal createChannelValueConnectedReal(double value)
      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

      public static WicaChannelValueConnectedInteger createChannelValueConnectedInteger(int value)
      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

      public static WicaChannelValueConnectedString createChannelValueConnectedString(String value)
      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.