fr.cnes.genopus.forces
Class GPForceModels

java.lang.Object
  extended by fr.cnes.genius.main.GComponent
      extended by fr.cnes.genius.lowLevel.GPanel
          extended by fr.cnes.genopus.forces.GPForceModels
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<CustomForceModels>, GPPatriusWithObjects<CustomForceModels>

public class GPForceModels
extends fr.cnes.genius.lowLevel.GPanel
implements fr.cnes.genius.main.GReadWrite, fr.cnes.genius.main.GClear, fr.cnes.genius.main.GCondensedStatusInterface, GPPatriusWithObjects<CustomForceModels>, fr.cnes.genius.main.GListener

Class containing force models definition widget.

Author:
ffsm
Default Constraint(s):
IndexClassItemConstraint
0GPEarthPotentialForceModelearthPotentialForceModel"newline"
(see table below)
1GPThirdBodyForceModelthirdBodyForceModel"newline"
(see table below)
2GPAeroForceModelaeroForceModel"newline"
(see table below)
3GPSRPForceModelsrpForceModel"newline"
(see table below)
4GPRediffusedSRPForceModelrediffusedSRPForceModel"newline"
(see table below)
5GPOceanTidesForceModeloceanTidesForceModel"newline"
(see table below)

Default Constraint(s) for earthPotentialForceModel:
IndexClassItemConstraint
0, 0GLabelWithIndicatorearthPotentialLabel0, 0, 0 => "newline , gapleft 0 , split 2"
0, 0, 1 => "wmin 128"
0, 1GChoiceattractionModelChoice0, 1, 0, 0 => "newline , gapleft 20 , split 2"
0, 1, 0, 1 => (null)
0, 1, 1 => "split"
0, 2GComboBoxWithLabelearthPotentialFileComboBox0, 2, 0, 0 => "newline , gapleft 20 , split 2"
0, 2, 0, 1 => (null)
0, 2, 1 => (null)
0, 3GEntryIntmaxOrdDegEntryInt0, 3, 0, 0 => "newline , gapleft 20 , split 2"
0, 3, 0, 1 => (null)
0, 3, 1 => (null)
0, 4GEntryIntdegreeEntryInt0, 4, 0, 0 => "newline , gapleft 20 , split 2"
0, 4, 0, 1 => (null)
0, 4, 1 => (null)
0, 5GEntryIntorderEntryInt0, 5, 0, 0 => "newline , gapleft 20 , split 2"
0, 5, 0, 1 => (null)
0, 5, 1 => (null)
0, 6GEntryIntdegreeOptionalEntryInt0, 6, 0, 0 => "newline , gapleft 20 , split 2"
0, 6, 0, 1 => (null)
0, 6, 1 => (null)
0, 7GEntryIntorderOptionalEntryInt0, 7, 0, 0 => "newline , gapleft 20 , split 2"
0, 7, 0, 1 => (null)
0, 7, 1 => (null)
0, 8GChoicecoeffsComputedOnceChoice0, 8, 0, 0 => "newline , gapleft 20 , split 2"
0, 8, 0, 1 => (null)
0, 8, 1 => "split"

Default Constraint(s) for thirdBodyForceModel:
IndexClassItemConstraint
1, 0GCheckBoxWithIndicatorthirdBodyCheckBox1, 0, 0, 0 => "newline , gapleft 0 , split 2"
1, 0, 0, 1 => (null)
1, 0, 1 => (null)
1, 1GCheckBoxWithIndicatorthirdBodyMoonCheckBox1, 1, 0, 0 => "newline , gapleft 20 , split 2"
1, 1, 0, 1 => (null)
1, 1, 1 => (null)
1, 2GCheckBoxWithIndicatorthirdBodySunCheckBox1, 2, 0, 0 => "newline , gapleft 20 , split 2"
1, 2, 0, 1 => (null)
1, 2, 1 => (null)
1, 3GCheckBoxWithIndicatorthirdBodyVenusCheckBox1, 3, 0, 0 => "newline , gapleft 20 , split 2"
1, 3, 0, 1 => (null)
1, 3, 1 => (null)
1, 4GCheckBoxWithIndicatorthirdBodyMarsCheckBox1, 4, 0, 0 => "newline , gapleft 20 , split 2"
1, 4, 0, 1 => (null)
1, 4, 1 => (null)
1, 5GCheckBoxWithIndicatorthirdBodyJupiterCheckBox1, 5, 0, 0 => "newline , gapleft 20 , split 2"
1, 5, 0, 1 => (null)
1, 5, 1 => (null)

Default Constraint(s) for aeroForceModel:
IndexClassItemConstraint
2, 0GCheckBoxWithIndicatoraeroForceCheckBox2, 0, 0, 0 => "newline , gapleft 0 , split 2"
2, 0, 0, 1 => (null)
2, 0, 1 => (null)
2, 1GChoiceaeroModelChoice2, 1, 0, 0 => "newline , gapleft 20 , split 2"
2, 1, 0, 1 => (null)
2, 1, 1 => "split"
2, 2GChoicesolarActivityChoice2, 2, 0, 0 => "newline , gapleft 40 , split 2"
2, 2, 0, 1 => (null)
2, 2, 1 => "split"
2, 3GEntryRealf107EntryReal2, 3, 0, 0 => "newline , gapleft 60 , split 2"
2, 3, 0, 1 => (null)
2, 3, 1 => (null)
2, 4GEntryRealapEntryReal2, 4, 0, 0 => "newline , gapleft 60 , split 2"
2, 4, 0, 1 => (null)
2, 4, 1 => (null)
2, 5GButtonloadSolarActivityFileButton"newline , skip 1"
2, 6GEntryStringloadedSolarActivityFileEntryString2, 6, 0, 0 => "newline , gapleft 60 , split 2"
2, 6, 0, 1 => (null)
2, 6, 1 => (null)
2, 7GEntryRealdensityH0EntryReal2, 7, 0, 0 => "newline , gapleft 40 , split 2"
2, 7, 0, 1 => (null)
2, 7, 1 => "split 2"
2, 7, 2 => (null)
2, 8GEntryRealh0EntryReal2, 8, 0, 0 => "newline , gapleft 40 , split 2"
2, 8, 0, 1 => (null)
2, 8, 1 => "split 2"
2, 8, 2 => (null)
2, 9GEntryRealhScaleEntryReal2, 9, 0, 0 => "newline , gapleft 40 , split 2"
2, 9, 0, 1 => (null)
2, 9, 1 => "split 2"
2, 9, 2 => (null)
2, 10GEntryRealmultipAeroForceEntryReal2, 10, 0, 0 => "newline , gapleft 20 , split 2"
2, 10, 0, 1 => (null)
2, 10, 1 => (null)

Default Constraint(s) for srpForceModel:
IndexClassItemConstraint
3, 0GCheckBoxWithIndicatorsRPCheckBox3, 0, 0, 0 => "newline , gapleft 0 , split 2"
3, 0, 0, 1 => (null)
3, 0, 1 => (null)
3, 1GEntryRealrefDistEntryReal3, 1, 0, 0 => "newline , gapleft 20 , split 2"
3, 1, 0, 1 => (null)
3, 1, 1 => "split 2"
3, 1, 2 => (null)
3, 2GEntryRealrefPressureEntryReal3, 2, 0, 0 => "newline , gapleft 20 , split 2"
3, 2, 0, 1 => (null)
3, 2, 1 => "split 2"
3, 2, 2 => (null)
3, 3GEntryRealmultipSRPEntryReal3, 3, 0, 0 => "newline , gapleft 20 , split 2"
3, 3, 0, 1 => (null)
3, 3, 1 => (null)

Default Constraint(s) for rediffusedSRPForceModel:
IndexClassItemConstraint
4, 0GCheckBoxWithIndicatorrediffusedSRPCheckBox4, 0, 0, 0 => "newline , gapleft 0 , split 2"
4, 0, 0, 1 => (null)
4, 0, 1 => (null)
4, 1GCheckBoxWithIndicatorrediffusedAlbedoCheckBox4, 1, 0, 0 => "newline , gapleft 20 , split 2"
4, 1, 0, 1 => (null)
4, 1, 1 => (null)
4, 2GCheckBoxWithIndicatorrediffusedInfraredCheckBox4, 2, 0, 0 => "newline , gapleft 20 , split 2"
4, 2, 0, 1 => (null)
4, 2, 1 => (null)
4, 3GEntryRealmultipRediffusedAlbedo4, 3, 0, 0 => "newline , gapleft 40 , split 2"
4, 3, 0, 1 => (null)
4, 3, 1 => (null)
4, 4GEntryRealmultipRediffusedInfrared4, 4, 0, 0 => "newline , gapleft 40 , split 2"
4, 4, 0, 1 => (null)
4, 4, 1 => (null)

Default Constraint(s) for oceanTidesForceModel:
IndexClassItemConstraint
5, 0GCheckBoxWithIndicatoroceanTidesCheckBox5, 0, 0, 0 => "newline , gapleft 0 , split 2"
5, 0, 0, 1 => (null)
5, 0, 1 => (null)
5, 1GEntryRealwaterDensityEntryReal5, 1, 0, 0 => "newline , gapleft 20 , split 2"
5, 1, 0, 1 => (null)
5, 1, 1 => "split 2"
5, 1, 2 => (null)
5, 2GEntryIntorderOceanTidesEntryInt5, 2, 0, 0 => "newline , gapleft 20 , split 2"
5, 2, 0, 1 => (null)
5, 2, 1 => (null)
5, 3GEntryIntdegreeOceanTidesEntryInt5, 3, 0, 0 => "newline , gapleft 20 , split 2"
5, 3, 0, 1 => (null)
5, 3, 1 => (null)
5, 4GCheckBoxWithIndicatorwithAdmittanceCheckBox5, 4, 0, 0 => "newline , gapleft 20 , split 2"
5, 4, 0, 1 => (null)
5, 4, 1 => (null)


Nested Class Summary
static class GPForceModels.TypeEphemeris
          Enum containing ephemeris types.
 
Nested classes/interfaces inherited from class fr.cnes.genius.lowLevel.GPanel
fr.cnes.genius.lowLevel.GPanel.Panel, fr.cnes.genius.lowLevel.GPanel.ScrollBarVisibility
 
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
GPForceModels()
          Creates a new instance where all forces appear.
GPForceModels(boolean thirdBodyForceIsVisible, boolean aeroForceIsVisible, boolean srPForceIsVisible, boolean rediffusedSRPForceIsVisible, boolean oceanTidesForceIsVisible, boolean terrestrialTidesForceIsVisible)
          Creates a new instance where the shown forces are customized.
GPForceModels(String widgetId)
          Creates a new instance where all forces appear.
GPForceModels(String widgetId, boolean thirdBodyForceIsVisible, boolean aeroForceIsVisible, boolean srPForceIsVisible, boolean rediffusedSRPForceIsVisible, boolean oceanTidesForceIsVisible, boolean terrestrialTidesForceIsVisible)
          Creates a new instance where the shown forces are customized.
 
Method Summary
 void after(fr.cnes.genius.main.GEvent e)
          
 void before(fr.cnes.genius.main.GEvent e)
          
 void clear()
          
 void display()
          
 void generic()
          
 fr.cnes.sirius.patrius.assembly.Assembly getAssembly()
          Getter for the assembly used in drag force, SRP and the rediffused SRP force models.
 CustomAtmosphere getAtmosphere()
          Get the atmospheric model from widget data.
 org.orekit.bodies.ExtendedOneAxisEllipsoid getBodyShape()
          Getter for the body's ellipsoid that defines its shape.
 fr.cnes.genius.highLevel.GChoice getGChoiceEphemerisType()
          Getter for the GChoice defining the ephemeris type.
 GPAeroForceModel getGPAeroForceModel()
          Getter for the Atmospheric Force Model subwidget.
 GPEarthPotentialForceModel getGPEarthPotentialForceModel()
          Getter for the Earth Potential Force Model subwidget.
 GPOceanTidesForceModel getGPOceanTidesForceModel()
          Getter for the Ocean Tides Force Model subwidget.
 GPOneAxisEllipsoid getGPOneAxisEllipsoidEarthShape()
          Getter for the GPOneAxisEllipsoid defining the Earth's ellipsoid.
 GPRediffusedSRPForceModel getGPRediffusedSRPForceModel()
          Getter for the Rediffused Solar Radiation Pressure Force Model subwidget.
 GPSRPForceModel getGPSRPForceModel()
          Getter for the Solar Radiation Pressure Force Model subwidget.
 GPTerrestrialTidesForceModel getGPTerrestrialTidesForceModel()
          Getter for the Terrestrial Tides Force Model subwidget.
 GPThirdBodyForceModel getGPThirdBodyForceModel()
          Getter for the Third body Force Model subwidget.
 fr.cnes.genius.lowLevel.GSeparator[] getGSeparatorsArray()
          Getter for the array of GSeparators in the widget.
 double getMultiplicativeFactorAero()
          Get Aero force model multiplicative factor.
 double getMultiplicativeFactorRediffusedSRPAlbedo()
          Get redifused SRP force model albedo multiplicative factor.
 double getMultiplicativeFactorRediffusedSRPInfrared()
          Get redifused SRP force model infrared multiplicative factor.
 double getMultiplicativeFactorSRP()
          Get SRP force model multiplicative factor.
 CustomForceModels getPatriusObject()
          Returns the PATRIUS object associated to a GENOPUS widget.
 CustomForceModels getPatriusObject(Object... args)
          Returns the PATRIUS object associated to a GENOPUS widget.
 GPForceModels.TypeEphemeris getSelectedEphemerisType()
          Get selected ephemeris type as a GPForceModels.TypeEphemeris enum value.
 fr.cnes.genius.main.GComponent getSubComponent(int position)
          
 org.orekit.bodies.CelestialBody getSun()
          Getter for the Sun celestial body to be used for drag force model creation.
 boolean isAeroForceModelActive()
          Boolean to know if the aero force model is active.
 boolean isEnabled()
          
 boolean isEphemerisTypeVisible()
          Boolean to know if the ephemeris type choice is visible.
 boolean isOceanTidesForceModelActive()
          Boolean to know if the ocean tides force model is active.
 boolean isRediffusedSRPForceModelActive()
          Boolean to know if the rediffused SRP force model is active.
 boolean isSRPForceModelActive()
          Boolean to know if the SRP force model is active.
 boolean isTerrestrialTidesForceModelActive()
          Boolean to know if the terrestrial tides force model is active.
 boolean isThirdBodyForceModelActive()
          Boolean to know if the third body force model is active.
 void read()
          
 void setAssembly(fr.cnes.sirius.patrius.assembly.Assembly assembly)
          Setter for the assembly to be used for drag force, the SRP and the rediffused SRP force models.
 void setBodyShape(org.orekit.bodies.ExtendedOneAxisEllipsoid bodyShape)
          Set body's shape.
 void setBodyShapeWidgetsVisible(boolean b)
          Method to force the GPOneAxisEllipsoid widget to be visible/invisible.
 void setConstraint(int widgetGap)
          Setter for the constraints of the widget.
 void setEnabled(boolean b)
          
 void updateCondensedStatus(fr.cnes.genius.main.GCondensedStatus condensedStatus)
          
 void write()
          
 
Methods inherited from class fr.cnes.genius.lowLevel.GPanel
getClassConstraint, getComponent, getHorizontalScroll, getInnerDescendantClassConstraint, getJPanel, getJScrollPane, getStringClassConstraint, getVerticalScroll, mainClear, mainDisplay, put, setClassConstraint, setColumnConstraints, setHorizontalScroll, setInnerDescendantClassConstraint, setLayoutConstraints, setPreferredSize, setRowConstraints, setVerticalScroll
 
Methods inherited from class fr.cnes.genius.main.GComponent
activateConstraintsByType, attachCopyPasteMenu, attachCopyPasteMenu, beginOfElement, beginOfElement, beginOfElement, beginOfElement, composeWidgetId, doDisplay, endOfElement, getCommentInConfigFile, getConstraint, getCurrentOperation, getDisplayIndicatorStatus, getDisplayIsModifiedIndicator, getElement, getGPanel, getGParent, getGUnitInConfigFile, getInnerDescendantConstraint, getName, getNameInConfigFile, getOperationSaveValue, getSimpleWidgetId, getStatus, getStringConstraint, getWidgetId, handleCopyPasteEvent, handleProcessEventException, isCopyPasteEvent, isModified, launchInvalidPositionException, parseSimpleConstraint, processGEvent, setBusyCursor, setCommentInConfigFile, setConstraint, setCopyPasteMenuEnabled, setCurrentOperation, setDataForConstraintsByType, setDisplayIsModifiedIndicator, setElement, setGPanel, setGParent, setGUnitInConfigFile, setInnerDescendantConstraint, setNameAndCommentInConfigFile, setNameInConfigFile, setStatus, setStringConstraint, setToolTipText, setWidgetId, setWidth, updateIsModifiedIndicator, 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

GPForceModels

public GPForceModels()
Creates a new instance where all forces appear. There is a widget to define the Earth's shape. The widgetId will be assigned automatically.


GPForceModels

public GPForceModels(String widgetId)
Creates a new instance where all forces appear. There is a widget to define the Earth's shape.

Parameters:
widgetId - widget identifier, if null an identifier will be automatically created.

GPForceModels

public GPForceModels(boolean thirdBodyForceIsVisible,
                     boolean aeroForceIsVisible,
                     boolean srPForceIsVisible,
                     boolean rediffusedSRPForceIsVisible,
                     boolean oceanTidesForceIsVisible,
                     boolean terrestrialTidesForceIsVisible)
Creates a new instance where the shown forces are customized. There is a widget to define the Earth's shape. The widgetId will be assigned automatically.

Parameters:
thirdBodyForceIsVisible - if true, third body force IsVisible
aeroForceIsVisible - if true, aerodynamic force IsVisible
srPForceIsVisible - if true, SRP force IsVisible
rediffusedSRPForceIsVisible - if true, rediffused SRP force IsVisible
oceanTidesForceIsVisible - if true, ocean tides force IsVisible
terrestrialTidesForceIsVisible - if true, terrestrial tides force IsVisible

GPForceModels

public GPForceModels(String widgetId,
                     boolean thirdBodyForceIsVisible,
                     boolean aeroForceIsVisible,
                     boolean srPForceIsVisible,
                     boolean rediffusedSRPForceIsVisible,
                     boolean oceanTidesForceIsVisible,
                     boolean terrestrialTidesForceIsVisible)
Creates a new instance where the shown forces are customized. A predefined Earth's shape is used. If null, a widget to define it will be available.

Parameters:
widgetId - widget identifier, if null an identifier will be automatically created.
thirdBodyForceIsVisible - if true, third body force IsVisible
aeroForceIsVisible - if true, aerodynamic force IsVisible
srPForceIsVisible - if true, SRP force IsVisible
rediffusedSRPForceIsVisible - if true, rediffused SRP force IsVisible
oceanTidesForceIsVisible - if true, ocean tides force IsVisible
terrestrialTidesForceIsVisible - if true, terrestrial tides force IsVisible
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.

setBodyShape

public void setBodyShape(org.orekit.bodies.ExtendedOneAxisEllipsoid bodyShape)
                  throws GPFrameException
Set body's shape. If null a GPOneAxisEllipsoid widget is shown to manually set body's shape.

Parameters:
bodyShape - body shape to be used to compute force models
Throws:
GPFrameException - if the ellipsoid cannot be set in a GPOneAxisEllipsoid widget

setAssembly

public void setAssembly(fr.cnes.sirius.patrius.assembly.Assembly assembly)
Setter for the assembly to be used for drag force, the SRP and the rediffused SRP force models.

Parameters:
assembly - the assembly to be set.

getAssembly

public fr.cnes.sirius.patrius.assembly.Assembly getAssembly()
Getter for the assembly used in drag force, SRP and the rediffused SRP force models. Normally it should be the same for the three force models. The priority is drag, then SRP, then rediffused SRP. If one force model is not present, then the assembly from the following one is returned.

Returns:
the used assembly.

getGPEarthPotentialForceModel

public GPEarthPotentialForceModel getGPEarthPotentialForceModel()
Getter for the Earth Potential Force Model subwidget.

Returns:
the Earth Potential Force Model subwidget

getGPThirdBodyForceModel

public GPThirdBodyForceModel getGPThirdBodyForceModel()
Getter for the Third body Force Model subwidget.

Returns:
the Third body Force Model subwidget

getGPAeroForceModel

public GPAeroForceModel getGPAeroForceModel()
Getter for the Atmospheric Force Model subwidget.

Returns:
the Atmospheric Force Model subwidget

getGPSRPForceModel

public GPSRPForceModel getGPSRPForceModel()
Getter for the Solar Radiation Pressure Force Model subwidget.

Returns:
the Solar Radiation Pressure Force Model subwidget

getGPRediffusedSRPForceModel

public GPRediffusedSRPForceModel getGPRediffusedSRPForceModel()
Getter for the Rediffused Solar Radiation Pressure Force Model subwidget.

Returns:
the Rediffused Solar Radiation Pressure Force Model subwidget

getGPOceanTidesForceModel

public GPOceanTidesForceModel getGPOceanTidesForceModel()
Getter for the Ocean Tides Force Model subwidget.

Returns:
the Ocean Tides Force Model subwidget

getGPTerrestrialTidesForceModel

public GPTerrestrialTidesForceModel getGPTerrestrialTidesForceModel()
Getter for the Terrestrial Tides Force Model subwidget.

Returns:
the Terrestrial Tides Force Model subwidget

getGChoiceEphemerisType

public fr.cnes.genius.highLevel.GChoice getGChoiceEphemerisType()
Getter for the GChoice defining the ephemeris type.

Returns:
the GChoice defining the ephemeris type

getGPOneAxisEllipsoidEarthShape

public GPOneAxisEllipsoid getGPOneAxisEllipsoidEarthShape()
Getter for the GPOneAxisEllipsoid defining the Earth's ellipsoid.

Returns:
the GPOneAxisEllipsoid defining the Earth's ellipsoid

getGSeparatorsArray

public fr.cnes.genius.lowLevel.GSeparator[] getGSeparatorsArray()
Getter for the array of GSeparators in the widget.

Returns:
the array of GSeparators in the widget

setEnabled

public void setEnabled(boolean b)

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

isEnabled

public boolean isEnabled()

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

generic

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

Specified by:
generic in class fr.cnes.genius.lowLevel.GPanel
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
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

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

getSelectedEphemerisType

public GPForceModels.TypeEphemeris getSelectedEphemerisType()
Get selected ephemeris type as a GPForceModels.TypeEphemeris enum value.

Returns:
the selected ephemeris type

getPatriusObject

public CustomForceModels getPatriusObject()
                                   throws GPForcesException
Returns the PATRIUS object associated to a GENOPUS widget.

Specified by:
getPatriusObject in interface GPPatrius<CustomForceModels>
Returns:
the PATRIUS object associated to the widget.
Throws:
GPForcesException - if the assembly has not been initialized or if some internal error occurs

getPatriusObject

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

Specified by:
getPatriusObject in interface GPPatriusWithObjects<CustomForceModels>
Parameters:
args - The parameters are 0: Assembly or 0: ExtendedOneAxisEllipsoid, 1: Assembly.
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.

getSun

public org.orekit.bodies.CelestialBody getSun()
Getter for the Sun celestial body to be used for drag force model creation. Requiered for the atmosphere model.

Returns:
the internal Sun celestial body.

getMultiplicativeFactorAero

public double getMultiplicativeFactorAero()
Get Aero force model multiplicative factor.

Returns:
the multiplicative factor for Aero force model

getMultiplicativeFactorSRP

public double getMultiplicativeFactorSRP()
Get SRP force model multiplicative factor.

Returns:
the multiplicative factor for SRP force model

getMultiplicativeFactorRediffusedSRPAlbedo

public double getMultiplicativeFactorRediffusedSRPAlbedo()
Get redifused SRP force model albedo multiplicative factor.

Returns:
the albedo multiplicative factor for rediffused SRP force model

getMultiplicativeFactorRediffusedSRPInfrared

public double getMultiplicativeFactorRediffusedSRPInfrared()
Get redifused SRP force model infrared multiplicative factor.

Returns:
the infrared multiplicative factor for rediffused SRP force model

isThirdBodyForceModelActive

public boolean isThirdBodyForceModelActive()
Boolean to know if the third body force model is active.

Returns:
true if the third body force model is present in the panel and it is selected.

isAeroForceModelActive

public boolean isAeroForceModelActive()
Boolean to know if the aero force model is active.

Returns:
true if the aero force model is present in the panel and it is selected

isSRPForceModelActive

public boolean isSRPForceModelActive()
Boolean to know if the SRP force model is active.

Returns:
true if the SRP force model is present in the panel and it is selected

isRediffusedSRPForceModelActive

public boolean isRediffusedSRPForceModelActive()
Boolean to know if the rediffused SRP force model is active.

Returns:
true if the rediffused SRP force model is present in the panel and it is selected

isOceanTidesForceModelActive

public boolean isOceanTidesForceModelActive()
Boolean to know if the ocean tides force model is active.

Returns:
true if the ocean tides force model is present in the panel and it is selected

isTerrestrialTidesForceModelActive

public boolean isTerrestrialTidesForceModelActive()
Boolean to know if the terrestrial tides force model is active.

Returns:
true if the terrestrial tides force model is present in the panel and it is selected

isEphemerisTypeVisible

public boolean isEphemerisTypeVisible()
Boolean to know if the ephemeris type choice is visible.

Returns:
true if the ephemeris type choice is present in the panel

updateCondensedStatus

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

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

getBodyShape

public org.orekit.bodies.ExtendedOneAxisEllipsoid getBodyShape()
                                                        throws GPForcesException
Getter for the body's ellipsoid that defines its shape.

Returns:
the body's ellipsoid
Throws:
GPForcesException - if EOP data is not initialized

setBodyShapeWidgetsVisible

public void setBodyShapeWidgetsVisible(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.

getAtmosphere

public CustomAtmosphere getAtmosphere()
                               throws GPForcesException
Get the atmospheric model from widget data.

Returns:
the atmospheric model.
Throws:
GPForcesException - if there is a problem with solar activity provider

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

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


Copyright © 2017. All rights reserved.