Class AlarmRef
java.lang.Object
com.inductiveautomation.factorypmi.application.components.alarm.AlarmRef
- All Implemented Interfaces:
AlarmEventParseContext.SelectedAlarmEventModel
Acts as a mutable getter for the current alarm event that we are evaluating visual style for.
This helps us avoid re-parsing the expression all the time with a different parse context.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the alarm event that is currently selected for evaluation.voidsetSelectedEvent(AlarmEvent event) Sets the alarm event to be evaluated.
-
Constructor Details
-
AlarmRef
public AlarmRef()
-
-
Method Details
-
getSelectedEvent
Returns the alarm event that is currently selected for evaluation.- Specified by:
getSelectedEventin interfaceAlarmEventParseContext.SelectedAlarmEventModel- Returns:
- The currently selected
AlarmEvent.
-
setSelectedEvent
Sets the alarm event to be evaluated.- Parameters:
event- TheAlarmEventto set.
-