public class GPVisibilityFromStationDetector extends GPTriggeredEventDetectorAbstract implements fr.cnes.genius.main.GReadWrite, GPPatriusWithObjects<CustomEventDetector>
Index | Class | Item | Constraint |
0 | GLabelWithIndicator | label | 0, 0 => "newline , gapleft 0 , split 2" 0, 1 => (null) |
1 | GComboBoxWithLabel | comboBoxAction | 1, 0, 0 =>
"newline , gapleft 30 , split 2" 1, 0, 1 => (null) 1, 1 => (null) |
2 | GCheckBox | checkBoxExpertConfig | "newline , gapleft 30 , split 2" |
3 | GEntryReal | entryRealMaxCheck | 3, 0, 0 =>
"newline , gapleft 30 , split 2" 3, 0, 1 => (null) 3, 1 => "split 2" 3, 2 => (null) |
4 | GEntryReal | entryRealThreshold | 4, 0, 0 =>
"newline , gapleft 30 , split 2" 4, 0, 1 => (null) 4, 1 => "split 2" 4, 2 => (null) |
5 | GEntryInt | triggerCount | 5, 0, 0 =>
"newline , gapleft 30 , split 2" 5, 0, 1 => (null) 5, 1 => (null) |
6 | GButton | setStationsButton | "newline , gapleft 10 , spanx 3" |
(undefined) | (undefined) | (undefined) | |
7 | GComboBoxWithLabel | comboBoxStation | "newline" |
8 | GComponentList | mStationComponentList |
"newline , gapleft 0 , spanx 3" (see table below) |
9 | GStandardPanelDialog | mStationListDialog | "newline , pushx , pushy , growx , growy" |
10 | GChoice | choiceVisibilityDetector | 10, 0, 0 =>
"newline , gapleft 30 , split 2" 10, 0, 1 => (null) 10, 1 => "split" * |
Index | Class | Item | Constraint |
4, 0 | GHeaderPanel | header | "hmin 40" (see table below) |
4, 1 | GLabel | spaceLabel | "newline , height 0" |
Modifier and Type | Class and Description |
---|---|
class |
GPVisibilityFromStationDetector.GPStationsComponentList
Widget to define a list of ground stations with required methods to deny the introduction of
two stations with the same name.
|
static class |
GPVisibilityFromStationDetector.VisibilityDetectionChoice
Choices for visibility from station events detection.
|
fr.cnes.genius.main.GComponent.CopyPasteOperation, fr.cnes.genius.main.GComponent.DisplayIndicatorStatus, fr.cnes.genius.main.GComponent.ItemType, fr.cnes.genius.main.GComponent.Operation
GPPatriusWithObjects.ArgsChecker
ACTION, DETECTOR_ERROR
Constructor and Description |
---|
GPVisibilityFromStationDetector()
Empty constructor.
|
GPVisibilityFromStationDetector(String widgetId)
Constructor.
|
GPVisibilityFromStationDetector(String label,
CustomVisibilityFromStationDetector visibilityFromStationDetector,
fr.cnes.sirius.patrius.events.EventDetector.Action... actionsToShow)
Constructor.
|
GPVisibilityFromStationDetector(String label,
fr.cnes.sirius.patrius.events.EventDetector.Action... actionsToShow)
Constructor without default visibilityFromStation detector.
|
GPVisibilityFromStationDetector(String widgetId,
String label,
CustomVisibilityFromStationDetector visibilityFromStationDetector,
fr.cnes.sirius.patrius.events.EventDetector.Action... actionsToShow)
Constructor.
|
GPVisibilityFromStationDetector(String widgetId,
String label,
fr.cnes.sirius.patrius.events.EventDetector.Action... actionsToShow)
Constructor without default visibilityFromStation detector.
|
Modifier and Type | Method and Description |
---|---|
void |
after(fr.cnes.genius.main.GEvent e) |
void |
before(fr.cnes.genius.main.GEvent e) |
void |
display() |
void |
generic() |
fr.cnes.genius.highLevel.GChoice |
getGChoiceVisibilityDetector()
Getter for the GChoice representing visibility detector choice (0-entering FoW, 1-exiting
FoW, 2-entering or exiting FoW)visibility detector choice (0-entering FoW, 1-exiting FoW,
2-entering or exiting FoW).
|
ArrayList<GPGroundStation> |
getGroundStationsList()
Get ground stations list.
|
CustomEventDetector |
getPatriusObject()
Returns the PATRIUS object associated to a GENOPUS widget.
|
CustomEventDetector |
getPatriusObject(Object... args)
Returns the PATRIUS object associated to a GENOPUS widget.
|
GPGroundStation |
getSelectedStation() |
fr.cnes.genius.main.GComponent |
getSubComponent(int position) |
protected GPItemType |
getXMLTag()
Getter for the tag to be used int the XML configuration file.
|
boolean |
isModified() |
boolean |
isNativeEventDetector(CustomEventDetector eventDetector)
Check if a given event detector is defined in the native type of event detector of the widget.
|
void |
read() |
void |
setBodyShape(fr.cnes.sirius.patrius.bodies.OneAxisEllipsoid ellipsoid)
Setter for the OneAxisEllipsoid defining the central ellipsoid for the event
detector.
|
void |
setConstraint(int labelGap,
int subWidgetGap)
Setter for the constraints of the Event Detector widget.
|
void |
setDefaultEventDetector(CustomEventDetector defaultEventDetector)
Setter for the default event detector.
|
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 |
setEventDetector(CustomEventDetector eventDetector)
Setter for the event detector.
|
void |
setGroundStationsList(ArrayList<fr.cnes.genius.main.GComponent> stationList)
Set ground stations list.
|
void |
setSavedEventDetector(CustomEventDetector savedEventDetector)
Setter for the reference event detector.
|
void |
setWidgetId(String widgetId) |
void |
updateCondensedStatus(fr.cnes.genius.main.GCondensedStatus condensedStatus) |
void |
write() |
buildWrapper, getGEntryIntTriggerAt, getGEntryIntTriggerFrom, getGEntryIntTriggerStep, getGEntryIntTriggerTo, getTriggerFrom, getTriggerStep, getTriggerTo, setAbstractClassDefaultValue, setAbstractClassSavedValue, setAbstractClassValue
attachCopyPasteMenu, clear, getAvailableActions, getGCheckBoxExpertConfig, getGComboBoxAction, getGEntryRealMaxCheck, getGEntryRealThreshold, getGLabel, getSelectedAction, initMaxCheckAndThresholdGEntryReals, isEnabled, setAvailableActions, setDefaultConstraint, setDisplayExpertConfig, updateIsModifiedIndicator, updateStatus
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, mouseWheelMoved, parseSimpleConstraint, processGEvent, processMouseWheelEvent, setBusyCursor, setCommentInConfigFile, setConstraint, setCopyPasteMenuEnabled, setCurrentOperation, setDataForConstraintsByType, setDefaultConstraints, setDisplayIsModifiedIndicator, setElement, setForcedStatus, setGPanel, setGParent, setGUnitInConfigFile, setInnerDescendantConstraint, setName, setNameAndCommentInConfigFile, setNameInConfigFile, setPathInConfigFile, setStatus, setStringConstraint, setToolTipText, setWidth, setWindowBusyCursor, writeCollection, writeCollection, writeCollection, writeCollection, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem
public GPVisibilityFromStationDetector()
public GPVisibilityFromStationDetector(String widgetId)
widgetId
- widget identifier, if null an identifier will be automatically created.public GPVisibilityFromStationDetector(String label, fr.cnes.sirius.patrius.events.EventDetector.Action... actionsToShow)
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 GPVisibilityFromStationDetector(String label, CustomVisibilityFromStationDetector visibilityFromStationDetector, fr.cnes.sirius.patrius.events.EventDetector.Action... actionsToShow)
label
- text to display in the label.visibilityFromStationDetector
- visibilityFromStation detector to set.actionsToShow
- list of actions to show in the widget. If null or empty all actions will
be available.public GPVisibilityFromStationDetector(String widgetId, String label, fr.cnes.sirius.patrius.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 GPVisibilityFromStationDetector(String widgetId, String label, CustomVisibilityFromStationDetector visibilityFromStationDetector, fr.cnes.sirius.patrius.events.EventDetector.Action... actionsToShow)
widgetId
- widget identifier, if null an identifier will be automatically created.label
- text to display in the label.visibilityFromStationDetector
- visibilityFromStation detector to set.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 GPTriggeredEventDetectorAbstract
public fr.cnes.genius.highLevel.GChoice getGChoiceVisibilityDetector()
public CustomEventDetector getPatriusObject(Object... args) throws fr.cnes.genius.exception.GException
getPatriusObject
in interface GPPatriusWithObjects<CustomEventDetector>
args
- The parameters are 0: OneAxisEllipsoid.fr.cnes.genius.exception.GException
- if the PATRIUS object cannot be created from the widget data.public CustomEventDetector getPatriusObject() throws GPEventException
getPatriusObject
in interface GPPatrius<CustomEventDetector>
getPatriusObject
in class GPEventDetectorAbstract
GPEventException
- if EOP data is not initializedpublic final void setEventDetector(CustomEventDetector eventDetector) throws GPEventException, fr.cnes.genius.exception.GArithmeticException
setEventDetector
in class GPEventDetectorAbstract
eventDetector
- event detector to set.GPEventException
- if the given event detector is not compatible with the widget. If
body shape defined in given visibilityFromStation detector is not a one axis
ellipsoid or if ellipsoid's frame is not available in the frame selector.fr.cnes.genius.exception.GArithmeticException
- if latitude, longitude or altitude in the geodeticPoint in
eventDetector are NaN or if if eq. radius or flatness in ellipsoid in eventDetector
are NaN.public final void setDefaultEventDetector(CustomEventDetector defaultEventDetector) throws GPEventException, fr.cnes.genius.exception.GArithmeticException
setDefaultEventDetector
in class GPEventDetectorAbstract
defaultEventDetector
- default event detector to set.GPEventException
- If body shape defined in given visibilityFromStation detector is not
a one axis ellipsoid or if ellipsoid's frame is not available in the frame selector.fr.cnes.genius.exception.GArithmeticException
- if latitude, longitude or altitude in the geodeticPoint in
defaultEventDetector are NaN or if if eq. radius or flatness in ellipsoid in
defaultEventDetector are NaN.public final void setSavedEventDetector(CustomEventDetector savedEventDetector) throws GPEventException, fr.cnes.genius.exception.GArithmeticException
setSavedEventDetector
in class GPEventDetectorAbstract
savedEventDetector
- reference event detector to set.GPEventException
- If body shape defined in given visibilityFromStation detector is not
a one axis ellipsoid or if ellipsoid's frame is not available in the frame selector.fr.cnes.genius.exception.GArithmeticException
- if latitude, longitude or altitude in the geodeticPoint in
savedEventDetector are NaN or if if eq. radius or flatness in ellipsoid in
savedEventDetector are NaN.public void setBodyShape(fr.cnes.sirius.patrius.bodies.OneAxisEllipsoid ellipsoid) throws GPEventException, fr.cnes.genius.exception.GArithmeticException
ellipsoid
- the OneAxisEllipsoid defining the central body shape for the event
detector.GPEventException
- if frame contained in the ellipsoid is not available in the
GPOneAxisEllipsoid frame selectorfr.cnes.genius.exception.GArithmeticException
- if eq. radius or flatness in ellipsoid are NaN.public void setConstraint(int labelGap, int subWidgetGap)
setConstraint
in class GPTriggeredEventDetectorAbstract
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 GPTriggeredEventDetectorAbstract
displayIndicatorStatus
- if Always the modifiedStatusIndicator is always shown, if Never the modifiedStatusIndicator
is always shown, if Automatic the modifiedStatusIndicator is shown as needed.public boolean isNativeEventDetector(CustomEventDetector eventDetector)
isNativeEventDetector
in class GPEventDetectorAbstract
eventDetector
- the event detector to be checked.public void setEnabled(boolean b)
setEnabled
in class GPTriggeredEventDetectorAbstract
public boolean isModified()
isModified
in class GPTriggeredEventDetectorAbstract
public void generic() throws fr.cnes.genius.exception.GException
generic
in class GPTriggeredEventDetectorAbstract
fr.cnes.genius.exception.GException
public void read() throws fr.cnes.genius.exception.GException
read
in interface fr.cnes.genius.main.GReadWrite
read
in class GPEventDetectorAbstract
fr.cnes.genius.exception.GException
public void write() throws fr.cnes.genius.exception.GException
write
in interface fr.cnes.genius.main.GReadWrite
write
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 GPTriggeredEventDetectorAbstract
fr.cnes.genius.exception.GException
public void before(fr.cnes.genius.main.GEvent e)
before
in interface fr.cnes.genius.main.GListener
public void after(fr.cnes.genius.main.GEvent e) throws GPEventException
after
in interface fr.cnes.genius.main.GListener
after
in class GPTriggeredEventDetectorAbstract
GPEventException
protected GPItemType getXMLTag()
getXMLTag
in class GPEventDetectorAbstract
public fr.cnes.genius.main.GComponent getSubComponent(int position) throws fr.cnes.genius.exception.GComponentException
getSubComponent
in class GPTriggeredEventDetectorAbstract
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 GPTriggeredEventDetectorAbstract
public ArrayList<GPGroundStation> getGroundStationsList()
public void setGroundStationsList(ArrayList<fr.cnes.genius.main.GComponent> stationList) throws fr.cnes.genius.exception.GComponentListException
stationList
- stations listfr.cnes.genius.exception.GComponentListException
- problem to set ground station listpublic GPGroundStation getSelectedStation()
Copyright © 2024. All rights reserved.