Class TagEventSourceEditorViewModel
java.lang.Object
com.inductiveautomation.eventstream.designer.sources.tageventsource.TagEventSourceEditorViewModel
- All Implemented Interfaces:
EventStreamEditorViewModel
,ViewModel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.inductiveautomation.ignition.common.gson.JsonObject
Method is used to retrieve the edited Event Stream.void
initialize
(EventStreamContext context, com.inductiveautomation.ignition.common.gson.JsonObject json) Method initializes the ViewModel with the content of an Event Streamvoid
onTextStart
(AttributedText tagPaths) void
setQualityTrigger
(boolean qualityTrigger) void
setSkipInitialValues
(boolean skipInitialValues) void
setTagPaths
(String tagPaths, LocalDateTime timestamp) void
setTimestampTrigger
(boolean timestampTrigger) void
setValueTrigger
(boolean valueTrigger) tagPaths()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.inductiveautomation.eventstream.designer.api.EventStreamEditorViewModel
dispose, onEnabled
-
Constructor Details
-
TagEventSourceEditorViewModel
public TagEventSourceEditorViewModel()
-
-
Method Details
-
initialize
public void initialize(EventStreamContext context, @Nullable com.inductiveautomation.ignition.common.gson.JsonObject json) Description copied from interface:EventStreamEditorViewModel
Method initializes the ViewModel with the content of an Event Stream- Specified by:
initialize
in interfaceEventStreamEditorViewModel
- Parameters:
context
- Contains useful methods for working with the Event Streamsjson
- Contains the Event Stream configuration. Expected to be null when new Event Stream is created.
-
getConfig
public com.inductiveautomation.ignition.common.gson.JsonObject getConfig()Description copied from interface:EventStreamEditorViewModel
Method is used to retrieve the edited Event Stream.- Specified by:
getConfig
in interfaceEventStreamEditorViewModel
- Returns:
- A json containing the Event Stream config.
-
setValueTrigger
public void setValueTrigger(boolean valueTrigger) -
setQualityTrigger
public void setQualityTrigger(boolean qualityTrigger) -
setTimestampTrigger
public void setTimestampTrigger(boolean timestampTrigger) -
setSkipInitialValues
public void setSkipInitialValues(boolean skipInitialValues) -
onTextStart
-
setTagPaths
-
valueTrigger
-
qualityTrigger
-
timestampTrigger
-
tagPaths
-
skipInitialValues
-