fr.cnes.genopus.forces
Class GPEarthPotentialForceModel

java.lang.Object
  extended by fr.cnes.genius.main.GComponent
      extended by fr.cnes.genius.lowLevel.GContainer
          extended by fr.cnes.genopus.forces.GPEarthPotentialForceModel
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<org.orekit.forces.ForceModel>, GPPatriusWithObjects<org.orekit.forces.ForceModel>

public class GPEarthPotentialForceModel
extends fr.cnes.genius.lowLevel.GContainer
implements fr.cnes.genius.main.GDisplay, fr.cnes.genius.main.GReadWrite, fr.cnes.genius.main.GClear, fr.cnes.genius.main.GListener, fr.cnes.genius.main.GCondensedStatusInterface, GPPatriusWithObjects<org.orekit.forces.ForceModel>

Class containing the widget to define the Earth Potential force model.

Author:
ffsm
Default Constraint(s):
IndexClassItemConstraint
0GLabelWithIndicatorearthPotentialLabel0, 0 => "newline , gapleft 0 , split 2"
0, 1 => (null)
1GChoiceattractionModelChoice1, 0, 0 => "newline , gapleft 20 , split 2"
1, 0, 1 => (null)
1, 1 => "split"
2GComboBoxWithLabelearthPotentialFileComboBox2, 0, 0 => "newline , gapleft 20 , split 2"
2, 0, 1 => (null)
2, 1 => (null)
3GEntryIntmaxOrdDegEntryInt3, 0, 0 => "newline , gapleft 20 , split 2"
3, 0, 1 => (null)
3, 1 => (null)
4GEntryIntdegreeEntryInt4, 0, 0 => "newline , gapleft 20 , split 2"
4, 0, 1 => (null)
4, 1 => (null)
5GEntryIntorderEntryInt5, 0, 0 => "newline , gapleft 20 , split 2"
5, 0, 1 => (null)
5, 1 => (null)
6GEntryIntdegreeOptionalEntryInt6, 0, 0 => "newline , gapleft 20 , split 2"
6, 0, 1 => (null)
6, 1 => (null)
7GEntryIntorderOptionalEntryInt7, 0, 0 => "newline , gapleft 20 , split 2"
7, 0, 1 => (null)
7, 1 => (null)
8GChoicecoeffsComputedOnceChoice8, 0, 0 => "newline , gapleft 20 , split 2"
8, 0, 1 => (null)
8, 1 => "split"


Nested Class Summary
static class GPEarthPotentialForceModel.AttractionModelsEnum
          Enumerate for normalized/unnormalized attraction models.
 
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.genius.main.GComponent
NAME_ATTRIBUTE
 
Constructor Summary
GPEarthPotentialForceModel(String widgetId, String label, GPEarthPotentialForceModel.AttractionModelsEnum... earthPotentialTypeChoicesToShow)
          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()
          
 GPEarthPotentialForceModel.AttractionModelsEnum[] getAvailableAttractionModels()
          Getter for the list of available Earth potential choices in the widget.
 org.orekit.frames.Frame getEarthFrame()
          Getter for the Earth rotating frame to be used for the force model creation.
 fr.cnes.genius.highLevel.GChoice getGChoiceAttractionModel()
          Getter for the GChoice defining the attraction model.
 fr.cnes.genius.highLevel.GChoice getGChoiceCoeffsComputedOnce()
          Getter for the GChoice defining the coefficients computation option.
 fr.cnes.genius.highLevel.GComboBoxWithLabel getGComboBoxEarthPotentialFile()
          Getter for the GComboBoxWithLabel defining the earth potential filename.
 fr.cnes.genius.highLevel.GEntryInt getGEntryIntMaxDegreeAndOrder()
          Getter for the GEntryInt defining the maximal degree and order.
 fr.cnes.genius.highLevel.GEntryInt getGEntryIntOptionalTesseral()
          Getter for the GEntryInt defining the tesseral optional order.
 fr.cnes.genius.highLevel.GEntryInt getGEntryIntOptionalZonal()
          Getter for the GEntryInt defining the zonal optional degree.
 fr.cnes.genius.highLevel.GEntryInt getGEntryIntTesseral()
          Getter for the GEntryInt defining the tesseral order.
 fr.cnes.genius.highLevel.GEntryInt getGEntryIntZonal()
          Getter for the GEntryInt defining the zonal degree.
 fr.cnes.genius.highLevel.GLabelWithIndicator getGLabelForceModel()
          Getter for the label of the force model.
 org.orekit.forces.ForceModel getPatriusObject()
          Returns the PATRIUS object associated to a GENOPUS widget.
 org.orekit.forces.ForceModel getPatriusObject(Object... args)
          Returns the PATRIUS object associated to a GENOPUS widget.
 GPEarthPotentialForceModel.AttractionModelsEnum getSelectedAttractionModel()
          Get selected attraction model as a GPEarthPotentialForceModel.AttractionModelsEnum enum value.
 fr.cnes.genius.main.GComponent getSubComponent(int position)
          
 boolean isEnabled()
          
 boolean isModified()
          
 void read()
          
 void setAvailableAttractionModels(GPEarthPotentialForceModel.AttractionModelsEnum... attractionModelsToShow)
          Setter for the list of available Earth potential choices in the widget.
 void setConstraint(int widgetGap)
          Setter for the constraints of the widget.
 void setEarthFrame(org.orekit.frames.Frame earthFrame)
          Setter for the Earth rotating frame to be used for force model creation.
 void setEnabled(boolean b)
          
 void updateCondensedStatus(fr.cnes.genius.main.GCondensedStatus condensedStatus)
          
protected  void updateIsModifiedIndicator()
          
 void updateStatus()
          Update the status of the widget.
 void write()
          
 
Methods inherited from class fr.cnes.genius.lowLevel.GContainer
put
 
Methods inherited from class fr.cnes.genius.main.GComponent
activateConstraintsByType, attachCopyPasteMenu, 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, setWidgetId, 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

GPEarthPotentialForceModel

public GPEarthPotentialForceModel(String widgetId,
                                  String label,
                                  GPEarthPotentialForceModel.AttractionModelsEnum... earthPotentialTypeChoicesToShow)
Constructor.

Parameters:
widgetId - widget identifier, if null an identifier will be automatically created.
label - text to display in the label.
earthPotentialTypeChoicesToShow - list of Earth potential choices to show in the widget (array of GPEarthPotentialForceModel.AttractionModelsEnum ).
Method Detail

setConstraint

public void setConstraint(int widgetGap)
Setter for the constraints of the widget.

Parameters:
widgetGap - left gap from panel border to display the label of the widget.

getGLabelForceModel

public fr.cnes.genius.highLevel.GLabelWithIndicator getGLabelForceModel()
Getter for the label of the force model.

Returns:
the label of the force model

getGChoiceAttractionModel

public fr.cnes.genius.highLevel.GChoice getGChoiceAttractionModel()
Getter for the GChoice defining the attraction model.

Returns:
the GChoice defining the attraction model

getGComboBoxEarthPotentialFile

public fr.cnes.genius.highLevel.GComboBoxWithLabel getGComboBoxEarthPotentialFile()
Getter for the GComboBoxWithLabel defining the earth potential filename.

Returns:
the GComboBoxWithLabel defining the earth potential filename

getGEntryIntMaxDegreeAndOrder

public fr.cnes.genius.highLevel.GEntryInt getGEntryIntMaxDegreeAndOrder()
Getter for the GEntryInt defining the maximal degree and order.

Returns:
the GEntryInt defining the maximal degree and order

getGEntryIntZonal

public fr.cnes.genius.highLevel.GEntryInt getGEntryIntZonal()
Getter for the GEntryInt defining the zonal degree.

Returns:
the GEntryInt defining the zonal degree

getGEntryIntTesseral

public fr.cnes.genius.highLevel.GEntryInt getGEntryIntTesseral()
Getter for the GEntryInt defining the tesseral order.

Returns:
the GEntryInt defining the tesseral order

getGEntryIntOptionalZonal

public fr.cnes.genius.highLevel.GEntryInt getGEntryIntOptionalZonal()
Getter for the GEntryInt defining the zonal optional degree.

Returns:
the GEntryInt defining the zonal optional degree

getGEntryIntOptionalTesseral

public fr.cnes.genius.highLevel.GEntryInt getGEntryIntOptionalTesseral()
Getter for the GEntryInt defining the tesseral optional order.

Returns:
the GEntryInt defining the tesseral optional order

getGChoiceCoeffsComputedOnce

public fr.cnes.genius.highLevel.GChoice getGChoiceCoeffsComputedOnce()
Getter for the GChoice defining the coefficients computation option.

Returns:
the GChoice defining the coefficients computation option

setEarthFrame

public void setEarthFrame(org.orekit.frames.Frame earthFrame)
Setter for the Earth rotating frame to be used for force model creation. Requiered for the force model.

Parameters:
earthFrame - the Earth rotating frame to be set.

getEarthFrame

public org.orekit.frames.Frame getEarthFrame()
Getter for the Earth rotating frame to be used for the force model creation. Requiered for the force model.

Returns:
the internal Earth rotating frame.

isEnabled

public boolean isEnabled()

Overrides:
isEnabled in class fr.cnes.genius.main.GComponent

setEnabled

public void setEnabled(boolean b)

Overrides:
setEnabled in class fr.cnes.genius.main.GComponent

display

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

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

clear

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

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

read

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

Specified by:
read in interface fr.cnes.genius.main.GReadWrite
Throws:
fr.cnes.genius.exception.GException

write

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

Specified by:
write in interface fr.cnes.genius.main.GReadWrite
Throws:
fr.cnes.genius.exception.GException

generic

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

Specified by:
generic in class fr.cnes.genius.lowLevel.GContainer
Throws:
fr.cnes.genius.exception.GException

before

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

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

after

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

Specified by:
after in interface fr.cnes.genius.main.GListener
Throws:
fr.cnes.genius.exception.GException

getPatriusObject

public org.orekit.forces.ForceModel getPatriusObject()
                                              throws GPForcesException
Returns the PATRIUS object associated to a GENOPUS widget.

Specified by:
getPatriusObject in interface GPPatrius<org.orekit.forces.ForceModel>
Returns:
the PATRIUS object associated to the widget.
Throws:
GPForcesException - if the Earth frame has not been initialized or if the potential provider or the C and S coefficients for the potential force model cannot be computed

getPatriusObject

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

Specified by:
getPatriusObject in interface GPPatriusWithObjects<org.orekit.forces.ForceModel>
Parameters:
args - The parameters are 0: Frame.
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.

getSelectedAttractionModel

public GPEarthPotentialForceModel.AttractionModelsEnum getSelectedAttractionModel()
Get selected attraction model as a GPEarthPotentialForceModel.AttractionModelsEnum enum value.

Returns:
the selected attraction model

setAvailableAttractionModels

public void setAvailableAttractionModels(GPEarthPotentialForceModel.AttractionModelsEnum... attractionModelsToShow)
                                  throws GPForcesException
Setter for the list of available Earth potential choices in the widget. The current selected frame configuration must be one of them. If the list of frame configurations is null, all of them will be shown.

Parameters:
attractionModelsToShow - an array of GPEarthPotentialForceModel.AttractionModelsEnum with the list of available Earth potential choices in the widget. If null: all choices will be shown.
Throws:
GPForcesException - if the new list of frame configurations is empty.

getAvailableAttractionModels

public GPEarthPotentialForceModel.AttractionModelsEnum[] getAvailableAttractionModels()
Getter for the list of available Earth potential choices in the widget.

Returns:
an array of GPEarthPotentialForceModel.AttractionModelsEnum with the list of available Earth potential choices in the widget.

updateCondensedStatus

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

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

isModified

public boolean isModified()

Overrides:
isModified in class fr.cnes.genius.main.GComponent
Returns:

updateIsModifiedIndicator

protected void updateIsModifiedIndicator()

Overrides:
updateIsModifiedIndicator in class fr.cnes.genius.main.GComponent

updateStatus

public void updateStatus()
Update the status of the widget.


getSubComponent

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

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


Copyright © 2017. All rights reserved.