fr.cnes.genopus.attitudes
Class GPLOFAttitudeLaw

java.lang.Object
  extended by fr.cnes.genius.main.GComponent
      extended by fr.cnes.genius.lowLevel.GContainer
          extended by fr.cnes.genopus.attitudes.GPAttitudeLawAbstract
              extended by fr.cnes.genopus.attitudes.GPSpinStabilizedAbstract
                  extended by fr.cnes.genopus.attitudes.GPLOFAttitudeLaw
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<CustomAttitudeLaw>

public class GPLOFAttitudeLaw
extends GPSpinStabilizedAbstract
implements fr.cnes.genius.main.GListener

Widget for a LOF attitude law.

Author:
ffsm
Default Constraint(s):
IndexClassItemConstraint
0GLabelWithIndicatorlabelLawName0, 0 => "newline , gapleft 0 , split 2"
0, 1 => (null)
1GSeparatorseparator1"newline , gapleft 0 , spanx 3 , growx"
2GComboBoxWithLabelcomboBoxLawEvol2, 0, 0 => "newline , gapleft 0 , split 2"
2, 0, 1 => (null)
2, 1 => (null)
3GPSpinStabilizedDataspinStabilizedData"newline"
(see table below)
4GComboBoxWithLabelcomboBoxLofType4, 0, 0 => "newline , gapleft 20 , split 2"
4, 0, 1 => (null)
4, 1 => (null)
5GCheckBoxcheckBoxExpertConfig"newline , gapleft 20 , split 2"
6GPFramepseudoInertialFrame"newline"
(see table below)
7GCheckBoxWithIndicatorcheckboxAngleBias7, 0, 0 => "newline , gapleft 20 , split 2"
7, 0, 1 => (null)
7, 1 => (null)
8GPRotationrotationAngleBias"newline"
(see table below)

Default Constraint(s) for spinStabilizedData:
IndexClassItemConstraint
3, 0GSeparatorseparator2"newline , gapleft 20 , spanx 3 , growx"
3, 1GLabelWithIndicatorlabelSpinData3, 1, 0 => "newline , gapleft 20 , split 2"
3, 1, 1 => (null)
3, 2GPDateOffsetdateOffsetSpinDelay"newline"
(see table below)
3, 3GCheckBoxWithIndicatorcheckboxOccultAxis3, 3, 0, 0 => "newline , gapleft 40 , split 2"
3, 3, 0, 1 => (null)
3, 3, 1 => (null)
3, 4GPAxisCoordinatesaxisCoordinatesSpinAxis"newline"
(see table below)
3, 5GEntryRealentryRealSpinRate3, 5, 0, 0 => "newline , gapleft 40 , split 2"
3, 5, 0, 1 => (null)
3, 5, 1 => "split 2"
3, 5, 2 => (null)

Default Constraint(s) for dateOffsetSpinDelay:
IndexClassItemConstraint
3, 2, 0GLabelWithIndicatorlabel3, 2, 0, 0 => "newline , gapleft 40 , split 2"
3, 2, 0, 1 => (null)
3, 2, 1GPDateOffsetFieldoffsetField"split 2"
3, 2, 2GPopupListpopupListUnits(null)

Default Constraint(s) for axisCoordinatesSpinAxis:
IndexClassItemConstraint
3, 4, 0GLabelWithIndicatorlabel3, 4, 0, 0 => "newline , gapleft 40 , split 2"
3, 4, 0, 1 => (null)
3, 4, 1GComboBoxWithLabelcomboBoxType3, 4, 1, 0, 0 => "newline , gapleft 60 , split 2"
3, 4, 1, 0, 1 => (null)
3, 4, 1, 1 => (null)
3, 4, 2GEntryRealentryRealVecX3, 4, 2, 0, 0 => "newline , gapleft 60 , split 2"
3, 4, 2, 0, 1 => (null)
3, 4, 2, 1 => "split 2"
3, 4, 3GEntryRealentryRealVecY3, 4, 3, 0, 0 => "newline , gapleft 60 , split 2"
3, 4, 3, 0, 1 => (null)
3, 4, 3, 1 => "split 2"
3, 4, 4GEntryRealentryRealVecZ3, 4, 4, 0, 0 => "newline , gapleft 60 , split 2"
3, 4, 4, 0, 1 => (null)
3, 4, 4, 1 => "split 2"
3, 4, 5GEntryRealentryRealAlfa3, 4, 5, 0, 0 => "newline , gapleft 60 , split 2"
3, 4, 5, 0, 1 => (null)
3, 4, 5, 1 => "split 2"
3, 4, 5, 2 => (null)
3, 4, 6GEntryRealentryRealBeta3, 4, 6, 0, 0 => "newline , gapleft 60 , split 2"
3, 4, 6, 0, 1 => (null)
3, 4, 6, 1 => "split 2"
3, 4, 6, 2 => (null)
3, 4, 7GEntryRealentryRealNorm3, 4, 7, 0, 0 => "newline , gapleft 60 , split 2"
3, 4, 7, 0, 1 => (null)
3, 4, 7, 1 => "split 2"

Default Constraint(s) for pseudoInertialFrame:
IndexClassItemConstraint
6, 0GComboBoxWithLabelcomboBoxRefFrame6, 0, 0, 0 => "newline , gapleft 40 , split 2"
6, 0, 0, 1 => (null)
6, 0, 1 => "split 4"
6, 1GCheckBoxWithIndicatorcheckBoxEOP6, 1, 0, 0 => (null)
6, 1, 0, 1 => (null)
6, 1, 1 => (null)
6, 2GPAbsoluteDateabsoluteDateH0"newline"
(see table below)
6, 3GEntryRealentryRealN6, 3, 0, 0 => "newline , gapleft 20 , split 2"
6, 3, 0, 1 => (null)
6, 3, 1 => "split 2"
6, 3, 2 => (null)
6, 4GEntryRealentryRealLon6, 4, 0, 0 => "newline , gapleft 20 , split 2"
6, 4, 0, 1 => (null)
6, 4, 1 => "split 2"
6, 4, 2 => (null)

Default Constraint(s) for absoluteDateH0:
IndexClassItemConstraint
6, 2, 0GLabelWithIndicatorlabel6, 2, 0, 0 => "newline , gapleft 20 , split 2"
6, 2, 0, 1 => (null)
6, 2, 1GPDateFielddateField"spanx 2 , split 5"
6, 2, 2GPopupListWithLabelpopupListTimeScales6, 2, 2, 0, 0 => "split 4"
6, 2, 2, 0, 1 => (null)
6, 2, 2, 1 => (null)
6, 2, 3GButtonbuttonRelativeDate(null)

Default Constraint(s) for rotationAngleBias:
IndexClassItemConstraint
8, 0GLabelWithIndicatorlabel8, 0, 0 => "newline , gapleft 40 , split 2"
8, 0, 1 => (null)
8, 1GButtonforcePivotButton(null)
8, 2GCheckBoxdeactivateConversionsCheckbox"newline , gapleft 60 , spanx 4"
8, 3GComboBoxWithLabelcomboBoxRotationOrder8, 3, 0, 0 => "newline , gapleft 60 , split 2"
8, 3, 0, 1 => (null)
8, 3, 1 => (null)
8, 4GEntryRealentryRealPsi8, 4, 0, 0 => "newline , gapleft 60 , split 2"
8, 4, 0, 1 => (null)
8, 4, 1 => "split 2"
8, 4, 2 => (null)
8, 5GEntryRealentryRealTheta8, 5, 0, 0 => "newline , gapleft 60 , split 2"
8, 5, 0, 1 => (null)
8, 5, 1 => "split 2"
8, 5, 2 => (null)
8, 6GEntryRealentryRealPhi8, 6, 0, 0 => "newline , gapleft 60 , split 2"
8, 6, 0, 1 => (null)
8, 6, 1 => "split 2"
8, 6, 2 => (null)


Nested Class Summary
static class GPLOFAttitudeLaw.GPLOFTypes
          Enumerate of available LOF types in the widget with their equivalent Patrius enumerate item.
 
Nested classes/interfaces inherited from class fr.cnes.genopus.attitudes.GPSpinStabilizedAbstract
GPSpinStabilizedAbstract.GPLawsEvolution
 
Nested classes/interfaces inherited from class fr.cnes.genopus.attitudes.GPAttitudeLawAbstract
GPAttitudeLawAbstract.GPAttitudeLawWithEarthShape
 
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
 
Field Summary
 
Fields inherited from class fr.cnes.genopus.attitudes.GPAttitudeLawAbstract
ANGLE_UNITS, ANGULAR_SPEED_UNITS, SUB_GAP
 
Fields inherited from class fr.cnes.genius.main.GComponent
NAME_ATTRIBUTE
 
Constructor Summary
GPLOFAttitudeLaw(String label)
          Creates a new instance.The widgetId will be assigned automatically.
GPLOFAttitudeLaw(String label, CustomLofOffset attitudeLaw)
          Creates a new instance.
GPLOFAttitudeLaw(String widgetId, String label)
          Creates a new instance.
GPLOFAttitudeLaw(String widgetId, String label, CustomLofOffset attitudeLaw)
          Creates a new instance.
 
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.genius.highLevel.GComboBoxWithLabel getComboBoxLofType()
          Getter for the GComboBox to select the LOF type.
protected  org.apache.commons.math3.geometry.euclidean.threed.Vector3D getDefaultPointingAxis()
          Gets the pointing axis for the spin stabilized attitude law in case of comming from outside the spin stabilized data.
 fr.cnes.genius.highLevel.GCheckBoxWithIndicator getGCheckboxAngleBias()
          Getter for the GCheckBox to select whether angle bias has to be shown or not.
 fr.cnes.genius.lowLevel.GCheckBox getGCheckBoxExpertConfig()
          Getter for the GCheckBox to select whether expert configuration has to be shown or not.
 GPFrame getGPFramePseudoInertialFrame()
          Getter for the GPFrame to define the pseudo inertial frame.
 GPRotation getGPRotationAngleBias()
          Getter for the GPRotation to set the angle bias.
 CustomAttitudeLaw getLaw()
          Gets the PATRIUS attitude law object builded with MMI parameters.
 CustomAttitudeLaw getPatriusObject()
          Returns the PATRIUS object associated to a GENOPUS widget.
protected  org.apache.commons.math3.geometry.euclidean.threed.Vector3D getPointingAxis()
          Gets the pointing axis for the spin stabilized attitude law in case of comming from outside the spin stabilized data.
protected  org.apache.commons.math3.geometry.euclidean.threed.Vector3D getSavedPointingAxis()
          Gets the pointing axis for the spin stabilized attitude law in case of comming from outside the spin stabilized data.
 fr.cnes.genius.main.GComponent getSubComponent(int position)
          
 boolean isModified()
          
 boolean isNativeAttitudeLaw(CustomAttitudeLaw attLaw)
          Method to check if an attitude law is an instance of this type.
 void setConstraint(int widgetGap)
          Setter for the constraints of the widget.
 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 flag)
          
 void setPseudoInertialFrame(org.orekit.frames.Frame pseudoInertialFrame)
          Set the frame to the pseudo inertial frame.
protected  void setSubWidgetsDefaultValues(CustomAttitudeLaw attitudeLaw)
          Private method to set the default values to the sub-widgets related to the non-rotating law.
protected  void setSubWidgetsSavedValues(CustomAttitudeLaw attitudeLaw)
          Private method to set the saved values to the sub-widgets related to the non-rotating law.
protected  void setSubWidgetsValues(CustomAttitudeLaw attitudeLaw)
          Private method to set the values to the sub-widgets related to the non-rotating law.
 void setWidgetId(String widgetId)
          
 void updateCondensedStatus(fr.cnes.genius.main.GCondensedStatus condensedStatus)
          
protected  void updateIsModifiedIndicator()
          
 
Methods inherited from class fr.cnes.genopus.attitudes.GPSpinStabilizedAbstract
displaySpinStabilizedData, getAvailableLawEvolutions, getGCheckBoxOccultAxis, getGComboBoxLawEvolution, getGEntryRealSpinRate, getGLabelSpinData, getGPAxisCoordinatesSpinAxis, getGPDateOffsetSpinDelay, getGPLawEvolutionEnum, getGSeparator2, getReferenceDate, getSpinnedLaw, setAttitudeLaw, setAvailableLawEvolutions, setDefaultAttitudeLaw, setGPLawEvolutionEnum, setReferenceDate, setSavedAttitudeLaw
 
Methods inherited from class fr.cnes.genopus.attitudes.GPAttitudeLawAbstract
getGLabelLawName, getGSeparator1, isEnabled, read, setDefaultConstraints, updateStatus, 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, 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

GPLOFAttitudeLaw

public GPLOFAttitudeLaw(String label)
Creates a new instance.The widgetId will be assigned automatically.

Parameters:
label - for the widget

GPLOFAttitudeLaw

public GPLOFAttitudeLaw(String widgetId,
                        String label)
Creates a new instance.

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

GPLOFAttitudeLaw

public GPLOFAttitudeLaw(String widgetId,
                        String label,
                        CustomLofOffset attitudeLaw)
Creates a new instance.

Parameters:
widgetId - widget identifier, if null an identifier will be automatically created.
label - for the widget
attitudeLaw - attitude law to initialize the widget

GPLOFAttitudeLaw

public GPLOFAttitudeLaw(String label,
                        CustomLofOffset attitudeLaw)
Creates a new instance. The widgetId will be asigned automatically.

Parameters:
label - for the widget
attitudeLaw - attitude law to initialize the widget
Method Detail

setWidgetId

public void setWidgetId(String widgetId)

Overrides:
setWidgetId in class GPSpinStabilizedAbstract

getComboBoxLofType

public fr.cnes.genius.highLevel.GComboBoxWithLabel getComboBoxLofType()
Getter for the GComboBox to select the LOF type.

Returns:
the GComboBox to select the LOF type

getGCheckBoxExpertConfig

public fr.cnes.genius.lowLevel.GCheckBox getGCheckBoxExpertConfig()
Getter for the GCheckBox to select whether expert configuration has to be shown or not.

Returns:
the GCheckBox to select whether expert configuration has to be shown or not.

getGPFramePseudoInertialFrame

public GPFrame getGPFramePseudoInertialFrame()
Getter for the GPFrame to define the pseudo inertial frame.

Returns:
the GPFrame to define the pseudo inertial frame

getGCheckboxAngleBias

public fr.cnes.genius.highLevel.GCheckBoxWithIndicator getGCheckboxAngleBias()
Getter for the GCheckBox to select whether angle bias has to be shown or not.

Returns:
the GCheckBox to select whether angle bias has to be shown or not

getGPRotationAngleBias

public GPRotation getGPRotationAngleBias()
Getter for the GPRotation to set the angle bias.

Returns:
the GPRotation to set the angle bias

setPseudoInertialFrame

public void setPseudoInertialFrame(org.orekit.frames.Frame pseudoInertialFrame)
                            throws GPAttitudeException
Set the frame to the pseudo inertial frame.

Parameters:
pseudoInertialFrame - The frame to be set.
Throws:
GPAttitudeException - In case the of invalid frame.

setConstraint

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

Overrides:
setConstraint in class GPSpinStabilizedAbstract
Parameters:
widgetGap - left gap from panel border to display the label of the widget.

setDisplayExpertConfig

public void setDisplayExpertConfig(boolean display)
Sets whether the expert configuration is to be shown or not.

Parameters:
display - whether the expert configuration is to be shown or not.

display

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

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

generic

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

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

getLaw

public CustomAttitudeLaw getLaw()
                         throws GPAttitudeException
Gets the PATRIUS attitude law object builded with MMI parameters.

Returns:
the attitude law (Patrius object)
Throws:
GPAttitudeException - if PatriusDataSet has not been initialized or if the pseudo inertial Frame is not pseudo-inertial or if the spin start date is not defined

getPatriusObject

public CustomAttitudeLaw getPatriusObject()
                                   throws GPAttitudeException
Returns the PATRIUS object associated to a GENOPUS widget.

Specified by:
getPatriusObject in interface GPPatrius<CustomAttitudeLaw>
Specified by:
getPatriusObject in class GPAttitudeLawAbstract
Returns:
the PATRIUS object associated to the widget.
Throws:
GPAttitudeException - if pseudoInertialFrame is not a pseudo-inertial frame or if PatriusDataSet has not been initialized or if the spin start date is not defined.

clear

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

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

setEnabled

public void setEnabled(boolean flag)

Overrides:
setEnabled in class GPSpinStabilizedAbstract

isNativeAttitudeLaw

public boolean isNativeAttitudeLaw(CustomAttitudeLaw attLaw)
Method to check if an attitude law is an instance of this type.

Specified by:
isNativeAttitudeLaw in class GPAttitudeLawAbstract
Parameters:
attLaw - input attitude law.
Returns:
true if it is an instance of this.

setSubWidgetsValues

protected void setSubWidgetsValues(CustomAttitudeLaw attitudeLaw)
                            throws GPAttitudeException
Private method to set the values to the sub-widgets related to the non-rotating law.

Specified by:
setSubWidgetsValues in class GPSpinStabilizedAbstract
Parameters:
attitudeLaw - PATRIUS attitude law. Must be of native type.
Throws:
GPAttitudeException - if the attitude law pseudo inertial frame is not available in the widget

setSubWidgetsDefaultValues

protected void setSubWidgetsDefaultValues(CustomAttitudeLaw attitudeLaw)
                                   throws GPAttitudeException
Private method to set the default values to the sub-widgets related to the non-rotating law.

Specified by:
setSubWidgetsDefaultValues in class GPSpinStabilizedAbstract
Parameters:
attitudeLaw - PATRIUS attitude law. Must be of native type.
Throws:
GPAttitudeException - if the attitude law pseudo inertial frame is not available in the widget

setSubWidgetsSavedValues

protected void setSubWidgetsSavedValues(CustomAttitudeLaw attitudeLaw)
                                 throws GPAttitudeException
Private method to set the saved values to the sub-widgets related to the non-rotating law.

Specified by:
setSubWidgetsSavedValues in class GPSpinStabilizedAbstract
Parameters:
attitudeLaw - PATRIUS attitude law. Must be of native type.
Throws:
GPAttitudeException - if the attitude law pseudo inertial frame is not available in the widget

updateCondensedStatus

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

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

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 GPSpinStabilizedAbstract
Parameters:
displayIndicatorStatus - if Always the modifiedStatusIndicator is always shown, if Never the modifiedStatusIndicator is never shown, if Automatic the modifiedStatusIndicator is shown as needed.

isModified

public boolean isModified()

Overrides:
isModified in class GPSpinStabilizedAbstract

updateIsModifiedIndicator

protected void updateIsModifiedIndicator()

Overrides:
updateIsModifiedIndicator in class GPSpinStabilizedAbstract

getSubComponent

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

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

getPointingAxis

protected org.apache.commons.math3.geometry.euclidean.threed.Vector3D getPointingAxis()
Gets the pointing axis for the spin stabilized attitude law in case of comming from outside the spin stabilized data.

Specified by:
getPointingAxis in class GPSpinStabilizedAbstract
Returns:
the requiered pointing axis for the spin stabilized attitude law.

getDefaultPointingAxis

protected org.apache.commons.math3.geometry.euclidean.threed.Vector3D getDefaultPointingAxis()
                                                                                      throws GPAttitudeException
Gets the pointing axis for the spin stabilized attitude law in case of comming from outside the spin stabilized data.

Specified by:
getDefaultPointingAxis in class GPSpinStabilizedAbstract
Returns:
the requiered pointing axis for the spin stabilized attitude law.
Throws:
GPAttitudeException - in case of any problem.

getSavedPointingAxis

protected org.apache.commons.math3.geometry.euclidean.threed.Vector3D getSavedPointingAxis()
                                                                                    throws GPAttitudeException
Gets the pointing axis for the spin stabilized attitude law in case of comming from outside the spin stabilized data.

Specified by:
getSavedPointingAxis in class GPSpinStabilizedAbstract
Returns:
the requiered pointing axis for the spin stabilized attitude law.
Throws:
GPAttitudeException - in case of any problem.

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
Overrides:
after in class GPSpinStabilizedAbstract
Throws:
fr.cnes.genius.exception.GException


Copyright © 2017. All rights reserved.