Class WicaChannelMetadataBuilder
java.lang.Object
ch.psi.wica.model.channel.metadata.WicaChannelMetadataBuilder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateIntegerArrayInstance
(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.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.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.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.Creates the metadata for a channel whose type is STRING_ARRAY.static WicaChannelMetadataString
Creates the metadata for a channel whose type is STRING.static WicaChannelMetadataUnknown
Creates the metadata for a channel whose type is not yet known.
-
Constructor Details
-
WicaChannelMetadataBuilder
public WicaChannelMetadataBuilder()
-
-
Method Details
-
createUnknownInstance
Creates the metadata for a channel whose type is not yet known.- Returns:
- the instance.
-
createStringInstance
Creates the metadata for a channel whose type is STRING.- Returns:
- the instance.
-
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.
-