fr.cnes.genopus.events
Class GPVisibilityFromStationDetector

java.lang.Object
  extended by fr.cnes.genius.main.GComponent
      extended by fr.cnes.genius.lowLevel.GContainer
          extended by fr.cnes.genopus.events.GPEventDetectorAbstract
              extended by fr.cnes.genopus.events.GPTriggeredEventDetectorAbstract
                  extended by fr.cnes.genopus.events.GPVisibilityFromStationDetector
All Implemented Interfaces:
fr.cnes.genius.main.GClear, fr.cnes.genius.main.GCondensedStatusInterface, fr.cnes.genius.main.GDisplay, fr.cnes.genius.main.GListener, fr.cnes.genius.main.GReadWrite, GPPatrius<CustomEventDetector>, GPPatriusWithObjects<CustomEventDetector>

public class GPVisibilityFromStationDetector
extends GPTriggeredEventDetectorAbstract
implements GPPatriusWithObjects<CustomEventDetector>

Widget representing an Orekit's VisibilityFromStationDetector.

Author:
aadt
Default Constraint(s):
IndexClassItemConstraint
0GLabelWithIndicatorlabel0, 0 => "newline , gapleft 0 , split 2"
0, 1 => (null)
1GComboBoxWithLabelcomboBoxAction1, 0, 0 => "newline , gapleft 30 , split 2"
1, 0, 1 => (null)
1, 1 => (null)
2GCheckBoxcheckBoxExpertConfig"newline , gapleft 30 , split 2"
3GEntryRealentryRealMaxCheck3, 0, 0 => "newline , gapleft 30 , split 2"
3, 0, 1 => (null)
3, 1 => "split 2"
3, 2 => (null)
4GEntryRealentryRealThreshold4, 0, 0 => "newline , gapleft 30 , split 2"
4, 0, 1 => (null)
4, 1 => "split 2"
4, 2 => (null)
5GEntryInttriggerCount5, 0, 0 => "newline , gapleft 30 , split 2"
5, 0, 1 => (null)
5, 1 => (null)
6GPGeodeticPointgeodeticPointStationCoordinates"newline"
(see table below)
7GPOneAxisEllipsoidoneAxisEllipsoidEarthShape"newline"
(see table below)
8GChoicechoiceVisibilityDetector8, 0, 0 => "newline , gapleft 30 , split 2"
8, 0, 1 => (null)
8, 1 => "split"

Default Constraint(s) for geodeticPointStationCoordinates:
IndexClassItemConstraint
6, 0GLabelWithIndicatorlabel6, 0, 0 => "newline , gapleft 30 , split 2"
6, 0, 1 => (null)
6, 1GEntryRealentryRealLatitude6, 1, 0, 0 => "newline , gapleft 50 , split 2"
6, 1, 0, 1 => (null)
6, 1, 1 => "split 2"
6, 1, 2 => (null)
6, 2GEntryRealentryRealLongitude6, 2, 0, 0 => "newline , gapleft 50 , split 2"
6, 2, 0, 1 => (null)
6, 2, 1 => "split 2"
6, 2, 2 => (null)
6, 3GEntryRealentryRealAltitude6, 3, 0, 0 => "newline , gapleft 50 , split 2"
6, 3, 0, 1 => (null)
6, 3, 1 => "split 2"
6, 3, 2 => (null)

Default Constraint(s) for oneAxisEllipsoidEarthShape:
IndexClassItemConstraint
7, 0GLabelWithIndicatorlabel7, 0, 0 => "newline , gapleft 30 , split 2"
7, 0, 1 => (null)
7, 1GPEntryEarthEqRadentryRealEqRadius"newline"
(see table below)
7, 2GPEntryEarthFlatentryFlatness"newline"
(see table below)
7, 3GPFramebodyFrame"newline"
(see table below)
7, 4GEntryStringentryStringName7, 4, 0, 0 => "newline , gapleft 60 , split 2"
7, 4, 0, 1 => (null)
7, 4, 1 => (null)

Default Constraint(s) for entryRealEqRadius:
IndexClassItemConstraint
7, 1, 0GLabelWithIndicatorlabel7, 1, 0, 0 => "newline , gapleft 60 , split 2"
7, 1, 0, 1 => (null)
7, 1, 1GRealFieldtextField(null)
7, 1, 2GPopupListunits(null)
7, 1, 3GConstantSelectorconstantSelector"newline"
(see table below)

Default Constraint(s) for constantSelector:
IndexClassItemConstraint
7, 1, 3, 0GButtonbutton"split 3"
7, 1, 3, 1GConstantSelelectorDialogdialog"newline , pushx , pushy , growx , growy"
(see table below)

Default Constraint(s) for dialog:
IndexClassItemConstraint
7, 1, 3, 1, 0GComboBoxWithLabelcombobox7, 1, 3, 1, 0, 0, 0 => "split 3"
7, 1, 3, 1, 0, 0, 1 => (null)
7, 1, 3, 1, 0, 1 => (null)
7, 1, 3, 1, 1GLabellabel"newline , split 3"
7, 1, 3, 1, 2GLabelvalueLabel(null)
7, 1, 3, 1, 3GLabelunitLabel(null)
7, 1, 3, 1, 4GButtonselectButton"newline , pushx , pushy"
7, 1, 3, 1, 5GButtoncancelButton(null)

Default Constraint(s) for entryFlatness:
IndexClassItemConstraint
7, 2, 0GLabelWithIndicatorlabel7, 2, 0, 0 => "newline , gapleft 80 , split 2"
7, 2, 0, 1 => (null)
7, 2, 1GRealFieldtextField(null)
7, 2, 2GConstantSelectorconstantSelector"newline"
(see table below)
7, 2, 3GChoicechoiceFlattening7, 2, 3, 0, 0 => "newline , gapleft 60 , split 2"
7, 2, 3, 0, 1 => (null)
7, 2, 3, 1 => "split"
7, 2, 4GEntryRealentryRealFlatteningInverse7, 2, 4, 0, 0 => "newline , gapleft 80 , split 2"
7, 2, 4, 0, 1 => (null)
7, 2, 4, 1 => "gapleft 74"
7, 2, 5GEntryStringinfFieldDirect7, 2, 5, 0, 0 => "newline , gapleft 80 , split 2"
7, 2, 5, 0, 1 => (null)
7, 2, 5, 1 => (null)
7, 2, 6GEntryStringinfFieldInverse7, 2, 6, 0, 0 => "newline , gapleft 80 , split 2"
7, 2, 6, 0, 1 => (null)
7, 2, 6, 1 => "gapleft 74"

Default Constraint(s) for constantSelector:
IndexClassItemConstraint
7, 2, 2, 0GButtonbutton"split 2"
7, 2, 2, 1GConstantSelelectorDialogdialog"newline , pushx , pushy , growx , growy"
(see table below)

Default Constraint(s) for dialog:
IndexClassItemConstraint
7, 2, 2, 1, 0GComboBoxWithLabelcombobox7, 2, 2, 1, 0, 0, 0 => "split 3"
7, 2, 2, 1, 0, 0, 1 => (null)
7, 2, 2, 1, 0, 1 => (null)
7, 2, 2, 1, 1GLabellabel"newline , split 3"
7, 2, 2, 1, 2GLabelvalueLabel(null)
7, 2, 2, 1, 3GLabelunitLabel(null)
7, 2, 2, 1, 4GButtonselectButton"newline , pushx , pushy"
7, 2, 2, 1, 5GButtoncancelButton(null)

Default Constraint(s) for bodyFrame:
IndexClassItemConstraint
7, 3, 0GComboBoxWithLabelcomboBoxRefFrame7, 3, 0, 0, 0 => "newline , gapleft 60 , split 2"
7, 3, 0, 0, 1 => (null)
7, 3, 0, 1 => "split 4"
7, 3, 1GCheckBoxWithIndicatorcheckBoxEOP7, 3, 1, 0, 0 => (null)
7, 3, 1, 0, 1 => (null)
7, 3, 1, 1 => (null)
7, 3, 2GPAbsoluteDateabsoluteDateH0"newline"
(see table below)
7, 3, 3GEntryRealentryRealN7, 3, 3, 0, 0 => "newline , gapleft 80 , split 2"
7, 3, 3, 0, 1 => (null)
7, 3, 3, 1 => "split 2"
7, 3, 3, 2 => (null)
7, 3, 4GEntryRealentryRealLon7, 3, 4, 0, 0 => "newline , gapleft 80 , split 2"
7, 3, 4, 0, 1 => (null)
7, 3, 4, 1 => "split 2"
7, 3, 4, 2 => (null)

Default Constraint(s) for absoluteDateH0:
IndexClassItemConstraint
7, 3, 2, 0GLabelWithIndicatorlabel7, 3, 2, 0, 0 => "newline , gapleft 80 , split 2"
7, 3, 2, 0, 1 => (null)
7, 3, 2, 1GPDateFielddateField"spanx 2 , split 5"
7, 3, 2, 2GPopupListWithLabelpopupListTimeScales7, 3, 2, 2, 0, 0 => "split 4"
7, 3, 2, 2, 0, 1 => (null)
7, 3, 2, 2, 1 => (null)
7, 3, 2, 3GButtonbuttonRelativeDate(null)


Nested Class Summary
 
Nested classes/interfaces inherited from class fr.cnes.genius.main.GComponent
fr.cnes.genius.main.GComponent.CopyPasteOperation, fr.cnes.genius.main.GComponent.DisplayIndicatorStatus, fr.cnes.genius.main.GComponent.ItemType, fr.cnes.genius.main.GComponent.Operation
 
Nested classes/interfaces inherited from interface fr.cnes.genopus.main.GPPatriusWithObjects
GPPatriusWithObjects.ArgsChecker
 
Field Summary
 
Fields inherited from class fr.cnes.genopus.events.GPEventDetectorAbstract
ACTION, DETECTOR_ERROR
 
Fields inherited from class fr.cnes.genius.main.GComponent
NAME_ATTRIBUTE
 
Constructor Summary
GPVisibilityFromStationDetector(String label)
          Constructor without default visibilityFromStation detector.
GPVisibilityFromStationDetector(String label, CustomVisibilityFromStationDetector visibilityFromStationDetector)
          Constructor.
GPVisibilityFromStationDetector(String widgetId, String label)
          Constructor without default visibilityFromStation detector.
GPVisibilityFromStationDetector(String widgetId, String label, CustomVisibilityFromStationDetector visibilityFromStationDetector)
          Constructor.
 
Method Summary
 void after(fr.cnes.genius.main.GEvent e)
          
 void before(fr.cnes.genius.main.GEvent e)
          
 void clear()
          
 void display()
          
 void generic()
          
 org.orekit.bodies.ExtendedOneAxisEllipsoid getBodyShape()
          Getter for the ExtendedOneAxisEllipsoid defining the central ellipsoid for the event detector.
 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).
 GPGeodeticPoint getGPGeodeticPointStationCoordinates()
          Getter for the GPGeodeticPoint defining the antenna coordinates of the event detector.
 GPOneAxisEllipsoid getGPOneAxisEllipsoidEarthShape()
          Getter for the GPOneAxisEllipsoid defining the central ellipsoid for the event detector.
 CustomVisibilityFromStationDetector getPatriusObject()
          Returns the PATRIUS object associated to a GENOPUS widget.
 CustomEventDetector getPatriusObject(Object... args)
          Returns the PATRIUS object associated to a GENOPUS widget.
 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 setBodyShape(org.orekit.bodies.ExtendedOneAxisEllipsoid ellipsoid)
          Setter for the ExtendedOneAxisEllipsoid defining the central ellipsoid for the event detector.
 void setBodyShapeWidgetVisible(boolean b)
          Method to force the GPOneAxisEllipsoid widget to be visible/invisible.
 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 setSavedEventDetector(CustomEventDetector savedEventDetector)
          Setter for the reference event detector.
 void setWidgetId(String widgetId)
          
 void updateCondensedStatus(fr.cnes.genius.main.GCondensedStatus condensedStatus)
          
 
Methods inherited from class fr.cnes.genopus.events.GPTriggeredEventDetectorAbstract
getGEntryIntTriggerCount, setAbstractClassDefaultValue, setAbstractClassSavedValue, setAbstractClassValue
 
Methods inherited from class fr.cnes.genopus.events.GPEventDetectorAbstract
attachCopyPasteMenu, blockAction, getGCheckBoxExpertConfig, getGComboBoxAction, getGEntryRealMaxCheck, getGEntryRealThreshold, getGLabel, getSelectedAction, isEnabled, read, setDefaultConstraint, setDisplayAction, setDisplayExpertConfig, updateIsModifiedIndicator, updateStatus, write
 
Methods inherited from class fr.cnes.genius.lowLevel.GContainer
put
 
Methods inherited from class fr.cnes.genius.main.GComponent
activateConstraintsByType, attachCopyPasteMenu, beginOfElement, beginOfElement, beginOfElement, beginOfElement, composeWidgetId, doDisplay, endOfElement, getCommentInConfigFile, getComponent, getConstraint, getCurrentOperation, getDisplayIndicatorStatus, getDisplayIsModifiedIndicator, getElement, getGPanel, getGParent, getGUnitInConfigFile, getInnerDescendantConstraint, getName, getNameInConfigFile, getOperationSaveValue, getSimpleWidgetId, getStatus, getStringConstraint, getWidgetId, handleCopyPasteEvent, handleProcessEventException, isCopyPasteEvent, launchInvalidPositionException, parseSimpleConstraint, processGEvent, setBusyCursor, setCommentInConfigFile, setConstraint, setCopyPasteMenuEnabled, setCurrentOperation, setDataForConstraintsByType, setDisplayIsModifiedIndicator, setElement, setGPanel, setGParent, setGUnitInConfigFile, setInnerDescendantConstraint, setNameAndCommentInConfigFile, setNameInConfigFile, setStatus, setStringConstraint, setToolTipText, setWidth, writeCollection, writeCollection, writeCollection, writeCollection, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GPVisibilityFromStationDetector

public GPVisibilityFromStationDetector(String label)
Constructor without default visibilityFromStation detector. The widgetId will be assigned automatically.

Parameters:
label - text to display in the label.

GPVisibilityFromStationDetector

public GPVisibilityFromStationDetector(String label,
                                       CustomVisibilityFromStationDetector visibilityFromStationDetector)
Constructor. The widgetId will be assigned automatically.

Parameters:
label - text to display in the label.
visibilityFromStationDetector - visibilityFromStation detector to set.

GPVisibilityFromStationDetector

public GPVisibilityFromStationDetector(String widgetId,
                                       String label)
Constructor without default visibilityFromStation detector.

Parameters:
widgetId - widget identifier, if null an identifier will be automatically created.
label - text to display in the label.

GPVisibilityFromStationDetector

public GPVisibilityFromStationDetector(String widgetId,
                                       String label,
                                       CustomVisibilityFromStationDetector visibilityFromStationDetector)
Constructor.

Parameters:
widgetId - widget identifier, if null an identifier will be automatically created.
label - text to display in the label.
visibilityFromStationDetector - visibilityFromStation detector to set.
Method Detail

setWidgetId

public void setWidgetId(String widgetId)

Overrides:
setWidgetId in class GPTriggeredEventDetectorAbstract

getGPGeodeticPointStationCoordinates

public GPGeodeticPoint getGPGeodeticPointStationCoordinates()
Getter for the GPGeodeticPoint defining the antenna coordinates of the event detector.

Returns:
the GPGeodeticPoint defining the antenna coordinates of the event detector.

getGPOneAxisEllipsoidEarthShape

public GPOneAxisEllipsoid getGPOneAxisEllipsoidEarthShape()
Getter for the GPOneAxisEllipsoid defining the central ellipsoid for the event detector.

Returns:
the GPOneAxisEllipsoid defining the central ellipsoid for the event detector.

setBodyShapeWidgetVisible

public void setBodyShapeWidgetVisible(boolean b)
Method to force the GPOneAxisEllipsoid widget to be visible/invisible.

Parameters:
b - if true the widget will be visible, if false it will not.

setBodyShape

public void setBodyShape(org.orekit.bodies.ExtendedOneAxisEllipsoid ellipsoid)
                  throws GPEventException
Setter for the ExtendedOneAxisEllipsoid defining the central ellipsoid for the event detector. When it is set with this method, the GPOneAxisEllipsoid widget is no further visible. If the input ellipsoid is null, the GPOneAxisEllipsoid widget is forced to be visible.

Parameters:
ellipsoid - the ExtendedOneAxisEllipsoid defining the central body shape for the event detector.
Throws:
GPEventException - if frame contained in the ellipsoid is not available in the GPOneAxisEllipsoid frame selector

getGChoiceVisibilityDetector

public 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).

Returns:
the visibility detector choice (0-entering FoW, 1-exiting FoW, 2-entering or exiting FoW).

getBodyShape

public org.orekit.bodies.ExtendedOneAxisEllipsoid getBodyShape()
                                                        throws GPEventException
Getter for the ExtendedOneAxisEllipsoid defining the central ellipsoid for the event detector.

Returns:
the ExtendedOneAxisEllipsoid defining the central body shape for the event detector.
Throws:
GPEventException - if EOP data is not initialized.

getPatriusObject

public CustomVisibilityFromStationDetector getPatriusObject()
                                                     throws GPEventException
Returns the PATRIUS object associated to a GENOPUS widget.

Specified by:
getPatriusObject in interface GPPatrius<CustomEventDetector>
Specified by:
getPatriusObject in class GPEventDetectorAbstract
Returns:
the PATRIUS object associated to the widget.
Throws:
GPEventException

getPatriusObject

public CustomEventDetector getPatriusObject(Object... args)
                                     throws fr.cnes.genius.exception.GException
Returns the PATRIUS object associated to a GENOPUS widget.

Specified by:
getPatriusObject in interface GPPatriusWithObjects<CustomEventDetector>
Parameters:
args - The parameters are 0: ExtendedOneAxisEllipsoid.
Returns:
the PATRIUS object associated to the widget.
Throws:
fr.cnes.genius.exception.GException - if the PATRIUS object cannot be created from the widget data.

setEventDetector

public void setEventDetector(CustomEventDetector eventDetector)
                      throws GPEventException
Setter for the event detector. Event detector can only be set if it is compatible with the widget.

Specified by:
setEventDetector in class GPEventDetectorAbstract
Parameters:
eventDetector - event detector to set.
Throws:
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.

setDefaultEventDetector

public void setDefaultEventDetector(CustomEventDetector defaultEventDetector)
                             throws GPEventException
Setter for the default event detector. Event detector can only be set if it is compatible with the widget.

Specified by:
setDefaultEventDetector in class GPEventDetectorAbstract
Parameters:
defaultEventDetector - default event detector to set.
Throws:
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.

setSavedEventDetector

public void setSavedEventDetector(CustomEventDetector savedEventDetector)
                           throws GPEventException
Setter for the reference event detector. Event detector can only be set if it is compatible with the widget.

Specified by:
setSavedEventDetector in class GPEventDetectorAbstract
Parameters:
savedEventDetector - reference event detector to set.
Throws:
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.

setConstraint

public void setConstraint(int labelGap,
                          int subWidgetGap)
Setter for the constraints of the Event Detector widget.

Overrides:
setConstraint in class GPTriggeredEventDetectorAbstract
Parameters:
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.

setDisplayIsModifiedIndicatorAll

public void setDisplayIsModifiedIndicatorAll(fr.cnes.genius.main.GComponent.DisplayIndicatorStatus displayIndicatorStatus)
Controls the display of the isModified indicator of all sub-widgets.

Overrides:
setDisplayIsModifiedIndicatorAll in class GPTriggeredEventDetectorAbstract
Parameters:
displayIndicatorStatus - if Always the modifiedStatusIndicator is always shown, if Never the modifiedStatusIndicator is always shown, if Automatic the modifiedStatusIndicator is shown as needed.

isNativeEventDetector

public boolean isNativeEventDetector(CustomEventDetector eventDetector)
Check if a given event detector is defined in the native type of event detector of the widget.

Specified by:
isNativeEventDetector in class GPEventDetectorAbstract
Parameters:
eventDetector - the event detector to be checked.
Returns:
true if the given event detector is defined in the native type of event detector of the widget.

setEnabled

public void setEnabled(boolean b)

Overrides:
setEnabled in class GPTriggeredEventDetectorAbstract

isModified

public boolean isModified()

Overrides:
isModified in class GPTriggeredEventDetectorAbstract

clear

public void clear()
           throws fr.cnes.genius.exception.GException

Specified by:
clear in interface fr.cnes.genius.main.GClear
Overrides:
clear in class GPEventDetectorAbstract
Throws:
fr.cnes.genius.exception.GException

generic

public void generic()
             throws fr.cnes.genius.exception.GException

Overrides:
generic in class GPTriggeredEventDetectorAbstract
Throws:
fr.cnes.genius.exception.GException

display

public void display()
             throws fr.cnes.genius.exception.GException

Specified by:
display in interface fr.cnes.genius.main.GDisplay
Overrides:
display in class GPTriggeredEventDetectorAbstract
Throws:
fr.cnes.genius.exception.GException

before

public void before(fr.cnes.genius.main.GEvent e)

Specified by:
before in interface fr.cnes.genius.main.GListener

after

public void after(fr.cnes.genius.main.GEvent e)
           throws GPEventException

Specified by:
after in interface fr.cnes.genius.main.GListener
Overrides:
after in class GPTriggeredEventDetectorAbstract
Throws:
GPEventException

getXMLTag

protected GPItemType getXMLTag()
Getter for the tag to be used int the XML configuration file.

Specified by:
getXMLTag in class GPEventDetectorAbstract
Returns:
the tag to be used int the XML configuration file

getSubComponent

public fr.cnes.genius.main.GComponent getSubComponent(int position)
                                               throws fr.cnes.genius.exception.GComponentException

Overrides:
getSubComponent in class GPTriggeredEventDetectorAbstract
Throws:
fr.cnes.genius.exception.GComponentException

updateCondensedStatus

public void updateCondensedStatus(fr.cnes.genius.main.GCondensedStatus condensedStatus)

Specified by:
updateCondensedStatus in interface fr.cnes.genius.main.GCondensedStatusInterface
Overrides:
updateCondensedStatus in class GPTriggeredEventDetectorAbstract


Copyright © 2017. All rights reserved.