public abstract class GPTriggeredEventDetectorAbstract extends GPEventDetectorAbstract
ACTION, DETECTOR_ERROR
Constructor and Description |
---|
GPTriggeredEventDetectorAbstract(String widgetId,
String label,
fr.cnes.sirius.patrius.propagation.events.EventDetector.Action... actionsToShow)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
after(fr.cnes.genius.main.GEvent e) |
protected CustomEventDetector |
buildWrapper(CustomEventDetector detector)
Build detector depending on step.
|
void |
display() |
void |
generic() |
fr.cnes.genius.highLevel.GEntryInt |
getGEntryIntTriggerAt()
Getter for the GEntryInt at occurrence.
|
fr.cnes.genius.highLevel.GEntryInt |
getGEntryIntTriggerFrom()
Getter for the GEntryInt from occurrence.
|
fr.cnes.genius.highLevel.GEntryInt |
getGEntryIntTriggerStep()
Getter for the GEntryInt occurrence step.
|
fr.cnes.genius.highLevel.GEntryInt |
getGEntryIntTriggerTo()
Getter for the GEntryInt to occurrence.
|
fr.cnes.genius.main.GComponent |
getSubComponent(int position) |
protected int |
getTriggerFrom()
Getter for the trigger at/from.
|
protected int |
getTriggerStep()
Getter for the trigger step.
|
protected int |
getTriggerTo()
Getter for the trigger to.
|
boolean |
isModified() |
protected void |
setAbstractClassDefaultValue(CustomEventDetector customDetector)
Set default values for the abstract class sub-widgets from a given custom detector:
- the entry int for the triggerer. |
protected void |
setAbstractClassSavedValue(CustomEventDetector customDetector)
Set saved values for the abstract class sub-widgets from a given custom detector:
- the entry int for the triggerer. |
protected void |
setAbstractClassValue(CustomEventDetector customDetector)
Set default values for the abstract class sub-widgets from a given custom detector:
- the entry int for the triggerer. |
void |
setConstraint(int labelGap,
int subWidgetGap)
Setter for the constraints of the Event Detector widget.
|
void |
setDisplayIsModifiedIndicatorAll(fr.cnes.genius.main.GComponent.DisplayIndicatorStatus displayIndicatorStatus)
Controls the display of the isModified indicator of all sub-widgets.
|
void |
setEnabled(boolean b) |
void |
setWidgetId(String widgetId) |
void |
updateCondensedStatus(fr.cnes.genius.main.GCondensedStatus condensedStatus) |
attachCopyPasteMenu, clear, getAvailableActions, getGCheckBoxExpertConfig, getGComboBoxAction, getGEntryRealMaxCheck, getGEntryRealThreshold, getGLabel, getPatriusObject, getSelectedAction, getXMLTag, initMaxCheckAndThresholdGEntryReals, isEnabled, isNativeEventDetector, read, setAvailableActions, setDefaultConstraint, setDefaultEventDetector, setDisplayExpertConfig, setEventDetector, setSavedEventDetector, updateIsModifiedIndicator, updateStatus, write
activateConstraintsByType, attachCopyPasteMenu, beginOfElement, beginOfElement, beginOfElement, beginOfElement, clearAllInnerDescendantConstraint, clearConstraint, clearInnerDescendantContraint, composeWidgetId, doDisplay, endOfElement, getCommentInConfigFile, getComponent, getConstraint, getCurrentOperation, getDisplayIndicatorStatus, getDisplayIsModifiedIndicator, getElement, getGClassName, getGPanel, getGParent, getGUnitInConfigFile, getInnerDescendantConstraint, getName, getNameInConfigFile, getOperationSaveValue, getPathInConfigFile, getSimpleWidgetId, getStatus, getStringConstraint, getWidgetId, handleCopyPasteEvent, handleCopyPasteEvent, handleProcessEventException, isCopyPasteEvent, isForcedStatus, launchInvalidPositionException, parseSimpleConstraint, processGEvent, setBusyCursor, setCommentInConfigFile, setConstraint, setCopyPasteMenuEnabled, setCurrentOperation, setDataForConstraintsByType, setDefaultConstraints, setDisplayIsModifiedIndicator, setElement, setForcedStatus, setGPanel, setGParent, setGUnitInConfigFile, setInnerDescendantConstraint, setNameAndCommentInConfigFile, setNameInConfigFile, setStatus, setStringConstraint, setToolTipText, setWidth, writeCollection, writeCollection, writeCollection, writeCollection, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem
public GPTriggeredEventDetectorAbstract(String widgetId, String label, fr.cnes.sirius.patrius.propagation.events.EventDetector.Action... actionsToShow)
widgetId
- widget identifier, if null an identifier will be automatically created.label
- text to display in the label.actionsToShow
- list of actions to show in the widget. If null or empty all actions will
be available.public void setWidgetId(String widgetId)
setWidgetId
in class GPEventDetectorAbstract
public fr.cnes.genius.highLevel.GEntryInt getGEntryIntTriggerAt()
public fr.cnes.genius.highLevel.GEntryInt getGEntryIntTriggerFrom()
public fr.cnes.genius.highLevel.GEntryInt getGEntryIntTriggerStep()
public fr.cnes.genius.highLevel.GEntryInt getGEntryIntTriggerTo()
protected int getTriggerFrom()
protected int getTriggerStep()
protected int getTriggerTo()
protected CustomEventDetector buildWrapper(CustomEventDetector detector)
detector
- detectorpublic void setConstraint(int labelGap, int subWidgetGap)
setConstraint
in class GPEventDetectorAbstract
labelGap
- left gap from panel border to display the label of the event.subWidgetGap
- left gap from panel border to display the sub-widgets of the event.public void setDisplayIsModifiedIndicatorAll(fr.cnes.genius.main.GComponent.DisplayIndicatorStatus displayIndicatorStatus)
setDisplayIsModifiedIndicatorAll
in class GPEventDetectorAbstract
displayIndicatorStatus
- if Always the modifiedStatusIndicator is always shown, if Never the modifiedStatusIndicator
is always shown, if Automatic the modifiedStatusIndicator is shown as needed.public void setEnabled(boolean b)
setEnabled
in class GPEventDetectorAbstract
public boolean isModified()
isModified
in class GPEventDetectorAbstract
public void generic() throws fr.cnes.genius.exception.GException
generic
in class GPEventDetectorAbstract
fr.cnes.genius.exception.GException
public void display() throws fr.cnes.genius.exception.GException
display
in interface fr.cnes.genius.main.GDisplay
display
in class GPEventDetectorAbstract
fr.cnes.genius.exception.GException
public void after(fr.cnes.genius.main.GEvent e) throws GPEventException
after
in interface fr.cnes.genius.main.GListener
after
in class GPEventDetectorAbstract
GPEventException
protected void setAbstractClassValue(CustomEventDetector customDetector) throws fr.cnes.genius.exception.GArithmeticException, GPEventException
setAbstractClassValue
in class GPEventDetectorAbstract
customDetector
- the custom detector where to extract the values to be set as default
ones in the sub-widgetsfr.cnes.genius.exception.GArithmeticException
- if max check interval or threshold in customDetector are Nan.GPEventException
- If action is not available.protected void setAbstractClassDefaultValue(CustomEventDetector customDetector) throws fr.cnes.genius.exception.GArithmeticException, GPEventException
setAbstractClassDefaultValue
in class GPEventDetectorAbstract
customDetector
- the custom detector where to extract the values to be set as default
ones in the sub-widgetsfr.cnes.genius.exception.GArithmeticException
- if max check interval or threshold in customDetector are Nan.GPEventException
- If action is not available.protected void setAbstractClassSavedValue(CustomEventDetector customDetector) throws fr.cnes.genius.exception.GArithmeticException, GPEventException
setAbstractClassSavedValue
in class GPEventDetectorAbstract
customDetector
- the custom detector where to extract the values to be set as saved ones
in the sub-widgetsfr.cnes.genius.exception.GArithmeticException
- if max check interval or threshold in customDetector are Nan.GPEventException
- If action is not available.public fr.cnes.genius.main.GComponent getSubComponent(int position) throws fr.cnes.genius.exception.GComponentException
getSubComponent
in class GPEventDetectorAbstract
fr.cnes.genius.exception.GComponentException
public void updateCondensedStatus(fr.cnes.genius.main.GCondensedStatus condensedStatus)
updateCondensedStatus
in interface fr.cnes.genius.main.GCondensedStatusInterface
updateCondensedStatus
in class GPEventDetectorAbstract
Copyright © 2018. All rights reserved.