public abstract class GPEventDetectorAbstract extends fr.cnes.genius.lowLevel.GContainer implements fr.cnes.genius.main.GReadWrite, fr.cnes.genius.main.GClear, fr.cnes.genius.main.GListener, fr.cnes.genius.main.GDisplay, GPPatrius<CustomEventDetector>, fr.cnes.genius.main.GCondensedStatusInterface
Modifier and Type | Field and Description |
---|---|
protected static String |
ACTION |
protected static String |
DETECTOR_ERROR |
Constructor and Description |
---|
GPEventDetectorAbstract(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) |
void |
attachCopyPasteMenu(String label,
fr.cnes.genius.main.GComponent.CopyPasteOperation... operationList) |
void |
clear() |
void |
display() |
void |
generic() |
fr.cnes.sirius.patrius.propagation.events.EventDetector.Action[] |
getAvailableActions()
Getter for the list of available actions in the widget.
|
fr.cnes.genius.lowLevel.GCheckBox |
getGCheckBoxExpertConfig()
Getter for the GCheckBox to select whether expert configuration has to be shown or not.
|
fr.cnes.genius.highLevel.GComboBoxWithLabel |
getGComboBoxAction()
Getter for the GComboBoxWithLabel defining the action to be performed in case of event detection.
|
fr.cnes.genius.highLevel.GEntryReal |
getGEntryRealMaxCheck()
Getter for the GEntryReal defining the maximum checking interval (s) for event detection.
|
fr.cnes.genius.highLevel.GEntryReal |
getGEntryRealThreshold()
Getter for the GEntryReal defining the convergence threshold (s) for event detection.
|
fr.cnes.genius.highLevel.GLabelWithIndicator |
getGLabel()
Getter for the label of the widget.
|
abstract CustomEventDetector |
getPatriusObject()
Returns the PATRIUS object associated to a GENOPUS widget.
|
protected fr.cnes.sirius.patrius.propagation.events.EventDetector.Action |
getSelectedAction()
Get the selected action in the combobox as a
EventDetector.Action enum item. |
fr.cnes.genius.main.GComponent |
getSubComponent(int position) |
protected abstract GPItemType |
getXMLTag()
Getter for the tag to be used int the XML configuration file.
|
protected void |
initMaxCheckAndThresholdGEntryReals(CustomEventDetector auxDetector)
Initializes the GEntryReals for MaxCheck and Threshold and the combobox for the action with the values
given by PATRIUS by default.
|
boolean |
isEnabled() |
boolean |
isModified() |
abstract boolean |
isNativeEventDetector(CustomEventDetector eventDetector)
Check if a given event detector is defined in the native type of event detector of the widget.
|
void |
read() |
protected void |
setAbstractClassDefaultValue(CustomEventDetector customDetector)
Set default values for the abstract class sub-widgets from a given custom detector:
- the combo box to set the action. |
protected void |
setAbstractClassSavedValue(CustomEventDetector customDetector)
Set saved values for the abstract class sub-widgets from a given custom detector:
- the combo box to set the action. |
protected void |
setAbstractClassValue(CustomEventDetector customDetector)
Set values for the abstract class sub-widgets from a given custom detector:
- the combo box to set the action. |
void |
setAvailableActions(fr.cnes.sirius.patrius.propagation.events.EventDetector.Action... actionsToShow)
Setter for the list of actions available in the widget.
|
void |
setConstraint(int labelGap,
int subWidgetGap)
Setter for the constraints of the Event Detector widget.
|
protected void |
setDefaultConstraint()
Setter for the default constraint of the date event.
|
abstract void |
setDefaultEventDetector(CustomEventDetector defaultEventDetector)
Setter for the default event detector.
|
void |
setDisplayExpertConfig(boolean display)
Sets whether the expert configuration is to be shown or not.
|
void |
setDisplayIsModifiedIndicatorAll(fr.cnes.genius.main.GComponent.DisplayIndicatorStatus displayIndicatorStatus)
Controls the display of the isModified indicator of all sub-widgets.
|
void |
setEnabled(boolean b) |
abstract void |
setEventDetector(CustomEventDetector eventDetector)
Setter for the event detector.
|
abstract void |
setSavedEventDetector(CustomEventDetector savedEventDetector)
Setter for the reference event detector.
|
void |
setWidgetId(String widgetId) |
void |
updateCondensedStatus(fr.cnes.genius.main.GCondensedStatus condensedStatus) |
void |
updateIsModifiedIndicator() |
void |
updateStatus()
Update the status of the orbital parameters.
|
void |
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
protected static final String DETECTOR_ERROR
protected static final String ACTION
public GPEventDetectorAbstract(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 fr.cnes.genius.main.GComponent
public fr.cnes.sirius.patrius.propagation.events.EventDetector.Action[] getAvailableActions()
public fr.cnes.genius.highLevel.GLabelWithIndicator getGLabel()
public fr.cnes.genius.highLevel.GComboBoxWithLabel getGComboBoxAction()
public fr.cnes.genius.lowLevel.GCheckBox getGCheckBoxExpertConfig()
public fr.cnes.genius.highLevel.GEntryReal getGEntryRealMaxCheck()
public fr.cnes.genius.highLevel.GEntryReal getGEntryRealThreshold()
protected fr.cnes.sirius.patrius.propagation.events.EventDetector.Action getSelectedAction()
EventDetector.Action
enum item.public abstract void setEventDetector(CustomEventDetector eventDetector) throws GPEventException, fr.cnes.genius.exception.GArithmeticException
eventDetector
- event detector to set.GPEventException
- if the given event detector is not compatible with the widget.fr.cnes.genius.exception.GArithmeticException
- if the input object contains NaNs.protected void setAbstractClassValue(CustomEventDetector customDetector) throws fr.cnes.genius.exception.GArithmeticException, GPEventException
customDetector
- the custom detector where to extract the values for the sub-widgetsfr.cnes.genius.exception.GArithmeticException
- if max check interval or threshold in customDetector are Nan.GPEventException
- If action is not available.public abstract void setDefaultEventDetector(CustomEventDetector defaultEventDetector) throws GPEventException, fr.cnes.genius.exception.GArithmeticException
defaultEventDetector
- default event detector to set.GPEventException
- if the given event detector is not compatible with the widget.fr.cnes.genius.exception.GArithmeticException
- if the input object contains NaNs.protected void setAbstractClassDefaultValue(CustomEventDetector customDetector) throws fr.cnes.genius.exception.GArithmeticException, GPEventException
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.public abstract void setSavedEventDetector(CustomEventDetector savedEventDetector) throws GPEventException, fr.cnes.genius.exception.GArithmeticException
savedEventDetector
- reference event detector to set.GPEventException
- if the given event detector is not compatible with the widget.fr.cnes.genius.exception.GArithmeticException
- if the input object contains NaNs.protected void setAbstractClassSavedValue(CustomEventDetector customDetector) throws fr.cnes.genius.exception.GArithmeticException, GPEventException
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 abstract boolean isNativeEventDetector(CustomEventDetector eventDetector)
eventDetector
- the event detector to be checked.protected void setDefaultConstraint()
public void setConstraint(int labelGap, int subWidgetGap)
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)
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 setDisplayExpertConfig(boolean display)
display
- whether the expert configuration is to be shown or not.public void attachCopyPasteMenu(String label, fr.cnes.genius.main.GComponent.CopyPasteOperation... operationList)
attachCopyPasteMenu
in class fr.cnes.genius.main.GComponent
public void updateIsModifiedIndicator()
updateIsModifiedIndicator
in class fr.cnes.genius.main.GComponent
public boolean isEnabled()
isEnabled
in class fr.cnes.genius.main.GComponent
public void setEnabled(boolean b)
setEnabled
in class fr.cnes.genius.main.GComponent
public boolean isModified()
isModified
in class fr.cnes.genius.main.GComponent
public void generic() throws fr.cnes.genius.exception.GException
generic
in class fr.cnes.genius.lowLevel.GContainer
fr.cnes.genius.exception.GException
public void display() throws fr.cnes.genius.exception.GException
display
in interface fr.cnes.genius.main.GDisplay
fr.cnes.genius.exception.GException
public void after(fr.cnes.genius.main.GEvent e) throws GPEventException
after
in interface fr.cnes.genius.main.GListener
GPEventException
public void read() throws fr.cnes.genius.exception.GException
read
in interface fr.cnes.genius.main.GReadWrite
fr.cnes.genius.exception.GException
public void write() throws fr.cnes.genius.exception.GException
write
in interface fr.cnes.genius.main.GReadWrite
fr.cnes.genius.exception.GException
protected abstract GPItemType getXMLTag()
public void clear() throws fr.cnes.genius.exception.GException
clear
in interface fr.cnes.genius.main.GClear
fr.cnes.genius.exception.GException
public fr.cnes.genius.main.GComponent getSubComponent(int position) throws fr.cnes.genius.exception.GComponentException
getSubComponent
in class fr.cnes.genius.main.GComponent
fr.cnes.genius.exception.GComponentException
public abstract CustomEventDetector getPatriusObject() throws GPEventException
getPatriusObject
in interface GPPatrius<CustomEventDetector>
GPEventException
public void updateStatus()
public void updateCondensedStatus(fr.cnes.genius.main.GCondensedStatus condensedStatus)
updateCondensedStatus
in interface fr.cnes.genius.main.GCondensedStatusInterface
public void setAvailableActions(fr.cnes.sirius.patrius.propagation.events.EventDetector.Action... actionsToShow)
actionsToShow
- an array of Action with the list of actions to show in the widget. If null: all frames will
be shown.protected void initMaxCheckAndThresholdGEntryReals(CustomEventDetector auxDetector)
auxDetector
- detector where the values are taken from.Copyright © 2018. All rights reserved.