Class WicaChannelMetadataBuilder

java.lang.Object
ch.psi.wica.model.channel.metadata.WicaChannelMetadataBuilder

public class WicaChannelMetadataBuilder extends Object
  • Constructor Details

    • WicaChannelMetadataBuilder

      public WicaChannelMetadataBuilder()
  • Method Details

    • createUnknownInstance

      public static WicaChannelMetadataUnknown createUnknownInstance()
      Creates the metadata for a channel whose type is not yet known.
      Returns:
      the instance.
    • createStringInstance

      public static WicaChannelMetadataString createStringInstance()
      Creates the metadata for a channel whose type is STRING.
      Returns:
      the instance.
    • createStringArrayInstance

      public static WicaChannelMetadataStringArray createStringArrayInstance()
      Creates the metadata for a channel whose type is STRING_ARRAY.
      Returns:
      the instance.
    • createIntegerInstance

      public static WicaChannelMetadataInteger createIntegerInstance(String units, int upperDisplay, int lowerDisplay, int upperControl, int lowerControl, int upperAlarm, int lowerAlarm, int upperWarning, int lowerWarning)
      Creates the metadata for a channel whose type is INTEGER.
      Parameters:
      units - the units.
      upperDisplay - the upper display limit.
      lowerDisplay - the lower display limit.
      upperControl - the upper control limit.
      lowerControl - the lower control limit.
      upperAlarm - the upper alarm limit.
      lowerAlarm - the lower alarm limit.
      upperWarning - the upper warning limit.
      lowerWarning - the lower warning limit.
      Returns:
      the instance.
    • createIntegerArrayInstance

      public static WicaChannelMetadataIntegerArray createIntegerArrayInstance(String units, int upperDisplay, int lowerDisplay, int upperControl, int lowerControl, int upperAlarm, int lowerAlarm, int upperWarning, int lowerWarning)
      Creates the metadata for a channel whose type is INTEGER_ARRAY.
      Parameters:
      units - the units.
      upperDisplay - the upper display limit.
      lowerDisplay - the lower display limit.
      upperControl - the upper control limit.
      lowerControl - the lower control limit.
      upperAlarm - the upper alarm limit.
      lowerAlarm - the lower alarm limit.
      upperWarning - the upper warning limit.
      lowerWarning - the lower warning limit.
      Returns:
      the instance.
    • createRealInstance

      public static WicaChannelMetadataReal createRealInstance(String units, int precision, double upperDisplay, double lowerDisplay, double upperControl, double lowerControl, double upperAlarm, double lowerAlarm, double upperWarning, double lowerWarning)
      Creates the metadata for a channel whose type is REAL.
      Parameters:
      units - the units.
      precision - the precision.
      upperDisplay - the upper display limit.
      lowerDisplay - the lower display limit.
      upperControl - the upper control limit.
      lowerControl - the lower control limit.
      upperAlarm - the upper alarm limit.
      lowerAlarm - the lower alarm limit.
      upperWarning - the upper warning limit.
      lowerWarning - the lower warning limit.
      Returns:
      the instance.
    • createRealArrayInstance

      public static WicaChannelMetadataRealArray createRealArrayInstance(String units, int precision, double upperDisplay, double lowerDisplay, double upperControl, double lowerControl, double upperAlarm, double lowerAlarm, double upperWarning, double lowerWarning)
      Creates the metadata for a channel whose type is REAL_ARRAY.
      Parameters:
      units - the units.
      precision - the precision.
      upperDisplay - the upper display limit.
      lowerDisplay - the lower display limit.
      upperControl - the upper control limit.
      lowerControl - the lower control limit.
      upperAlarm - the upper alarm limit.
      lowerAlarm - the lower alarm limit.
      upperWarning - the upper warning limit.
      lowerWarning - the lower warning limit.
      Returns:
      the instance.