public class GPAeroAttitudeLaw extends GPAttitudeLawAbstract implements GPAttitudeLawAbstract.GPAttitudeLawWithEarthShape, fr.cnes.genius.main.GCondensedStatusInterface, fr.cnes.genius.main.GListener, GPPatriusWithObjects<fr.cnes.sirius.patrius.attitudes.AttitudeLaw>
Index | Class | Item | Constraint |
0 | GLabelWithIndicator | labelLawName | 0, 0 =>
"newline , gapleft 0 , split 2" 0, 1 => (null) |
1 | GSeparator | separator1 | "newline , gapleft 0 , spanx 3 , growx" |
2 | GEntryReal | entryRealAngleOfAttack | 2, 0, 0 =>
"newline , gapleft 20 , split 2" 2, 0, 1 => (null) 2, 1 => "split 2" 2, 2 => (null) |
3 | GEntryReal | entryRealSideSlipAngle | 3, 0, 0 =>
"newline , gapleft 20 , split 2" 3, 0, 1 => (null) 3, 1 => "split 2" 3, 2 => (null) |
4 | GEntryReal | entryRealBankAngle | 4, 0, 0 =>
"newline , gapleft 20 , split 2" 4, 0, 1 => (null) 4, 1 => "split 2" 4, 2 => (null) |
GPAttitudeLawAbstract.GPAttitudeLawWithEarthShape
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
ANGLE_UNITS, ANGULAR_SPEED_UNITS, SUB_GAP
Constructor and Description |
---|
GPAeroAttitudeLaw(String label)
Creates a new instance.The widgetId will be assigned automatically.
|
GPAeroAttitudeLaw(String label,
fr.cnes.sirius.patrius.attitudes.AeroAttitudeLaw attitudeLaw)
Creates a new instance.
|
GPAeroAttitudeLaw(String widgetId,
String label)
Creates a new instance.
|
GPAeroAttitudeLaw(String widgetId,
String label,
fr.cnes.sirius.patrius.attitudes.AeroAttitudeLaw attitudeLaw)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
after(fr.cnes.genius.main.GEvent e) |
void |
before(fr.cnes.genius.main.GEvent e) |
void |
clear() |
void |
generic() |
fr.cnes.sirius.patrius.bodies.ExtendedOneAxisEllipsoid |
getEarthShape()
Getter for the Earth shape.
|
fr.cnes.genius.highLevel.GEntryReal |
getGEntryRealAngleOfAttack()
Getter for the angle of attack subwidget.
|
fr.cnes.genius.highLevel.GEntryReal |
getGEntryRealBankAngle()
Getter for the bank angle subwidget.
|
fr.cnes.genius.highLevel.GEntryReal |
getGEntryRealSideSlipAngle()
Getter for the side slip angle subwidget.
|
fr.cnes.sirius.patrius.attitudes.AttitudeLaw |
getPatriusObject()
Returns the PATRIUS object associated to a GENOPUS widget.
|
fr.cnes.sirius.patrius.attitudes.AttitudeLaw |
getPatriusObject(Object... args)
Returns the PATRIUS object associated to a GENOPUS widget.
|
fr.cnes.genius.main.GComponent |
getSubComponent(int position) |
boolean |
isModified() |
boolean |
isNativeAttitudeLaw(fr.cnes.sirius.patrius.attitudes.AttitudeLaw attLaw)
Method to check if an attitude law is an instance of this type.
|
void |
setAttitudeLaw(fr.cnes.sirius.patrius.attitudes.AttitudeLaw attitudeLaw)
Setter from a PATRIUS attitude law.
|
void |
setConstraint(int widgetGap)
Setter for the constraints of the widget.
|
void |
setDefaultAttitudeLaw(fr.cnes.sirius.patrius.attitudes.AttitudeLaw defaultAttitudeLaw)
Setter of the default value from a PATRIUS attitude law.
|
void |
setDisplayIsModifiedIndicatorAll(fr.cnes.genius.main.GComponent.DisplayIndicatorStatus displayIndicatorStatus)
Controls the display of the isModified indicator of all sub-widgets.
|
void |
setEarthShape(fr.cnes.sirius.patrius.bodies.ExtendedOneAxisEllipsoid earthShape)
Setter for the Earth shape.
|
void |
setEnabled(boolean flag) |
void |
setSavedAttitudeLaw(fr.cnes.sirius.patrius.attitudes.AttitudeLaw savedAttitudeLaw)
Setter of the saved value from a PATRIUS attitude law.
|
void |
setWidgetId(String widgetId) |
void |
updateCondensedStatus(fr.cnes.genius.main.GCondensedStatus condensedStatus) |
display, getGLabelLawName, getGSeparator1, isEnabled, read, setDefaultConstraints, updateIsModifiedIndicator, updateStatus, write
activateConstraintsByType, attachCopyPasteMenu, 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, parseSimpleConstraint, processGEvent, setBusyCursor, setCommentInConfigFile, setConstraint, setCopyPasteMenuEnabled, setCurrentOperation, setDataForConstraintsByType, setDisplayIsModifiedIndicator, setElement, setForcedStatus, setGPanel, setGParent, setGUnitInConfigFile, setInnerDescendantConstraint, setNameAndCommentInConfigFile, setNameInConfigFile, setStatus, setStringConstraint, setToolTipText, setWidth, writeCollection, writeCollection, writeCollection, writeCollection, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem
public GPAeroAttitudeLaw(String label)
label
- for the widgetpublic GPAeroAttitudeLaw(String widgetId, String label)
widgetId
- widget identifier, if null an identifier will be automatically created.label
- for the widgetpublic GPAeroAttitudeLaw(String widgetId, String label, fr.cnes.sirius.patrius.attitudes.AeroAttitudeLaw attitudeLaw)
widgetId
- widget identifier, if null an identifier will be automatically created.label
- for the widgetattitudeLaw
- attitude law to initialize the widgetpublic GPAeroAttitudeLaw(String label, fr.cnes.sirius.patrius.attitudes.AeroAttitudeLaw attitudeLaw)
label
- for the widgetattitudeLaw
- attitude law to initialize the widgetpublic void setWidgetId(String widgetId)
setWidgetId
in class GPAttitudeLawAbstract
public fr.cnes.genius.highLevel.GEntryReal getGEntryRealAngleOfAttack()
public fr.cnes.genius.highLevel.GEntryReal getGEntryRealSideSlipAngle()
public fr.cnes.genius.highLevel.GEntryReal getGEntryRealBankAngle()
public void setConstraint(int widgetGap)
setConstraint
in class GPAttitudeLawAbstract
widgetGap
- left gap from panel border to display the label of the widget.public void generic() throws fr.cnes.genius.exception.GException
generic
in class GPAttitudeLawAbstract
fr.cnes.genius.exception.GException
public fr.cnes.sirius.patrius.attitudes.AttitudeLaw getPatriusObject(Object... args) throws fr.cnes.genius.exception.GException, fr.cnes.sirius.patrius.utils.exception.PatriusException
getPatriusObject
in interface GPPatriusWithObjects<fr.cnes.sirius.patrius.attitudes.AttitudeLaw>
args
- The parameters are 0: ExtendedOneAxisEllipsoid.fr.cnes.sirius.patrius.utils.exception.PatriusException
fr.cnes.genius.exception.GException
- if the PATRIUS object cannot be created from the widget data.public fr.cnes.sirius.patrius.attitudes.AttitudeLaw getPatriusObject() throws fr.cnes.sirius.patrius.utils.exception.PatriusException, GPAttitudeException
getPatriusObject
in interface GPPatrius<fr.cnes.sirius.patrius.attitudes.AttitudeLaw>
getPatriusObject
in class GPAttitudeLawAbstract
fr.cnes.sirius.patrius.utils.exception.PatriusException
- if the earth shape has not been initializedGPAttitudeException
public void setEarthShape(fr.cnes.sirius.patrius.bodies.ExtendedOneAxisEllipsoid earthShape) throws fr.cnes.genius.exception.GArithmeticException
setEarthShape
in interface GPAttitudeLawAbstract.GPAttitudeLawWithEarthShape
earthShape
- the Earth shape.fr.cnes.genius.exception.GArithmeticException
- if equatorial radius or flatness in earthShape are NaNpublic fr.cnes.sirius.patrius.bodies.ExtendedOneAxisEllipsoid getEarthShape()
getEarthShape
in interface GPAttitudeLawAbstract.GPAttitudeLawWithEarthShape
public void clear() throws fr.cnes.genius.exception.GException
clear
in interface fr.cnes.genius.main.GClear
fr.cnes.genius.exception.GException
public void setEnabled(boolean flag)
setEnabled
in class GPAttitudeLawAbstract
public boolean isNativeAttitudeLaw(fr.cnes.sirius.patrius.attitudes.AttitudeLaw attLaw)
isNativeAttitudeLaw
in class GPAttitudeLawAbstract
attLaw
- input attitude law.public void setAttitudeLaw(fr.cnes.sirius.patrius.attitudes.AttitudeLaw attitudeLaw) throws GPAttitudeException, fr.cnes.genius.exception.GArithmeticException
setAttitudeLaw
in class GPAttitudeLawAbstract
attitudeLaw
- to be set in the widgetfr.cnes.genius.exception.GArithmeticException
- if the angle of attack, the side slip angle or the bank angle in
attitudeLaw are NaN.GPAttitudeException
- if the given attitude law is not compatible with the widget.public void setDefaultAttitudeLaw(fr.cnes.sirius.patrius.attitudes.AttitudeLaw defaultAttitudeLaw) throws GPAttitudeException, fr.cnes.genius.exception.GArithmeticException
setDefaultAttitudeLaw
in class GPAttitudeLawAbstract
defaultAttitudeLaw
- to be set as default in the widgetfr.cnes.genius.exception.GArithmeticException
- if the angle of attack, the side slip angle or the bank angle in
attitudeLaw are NaN.GPAttitudeException
- if the given attitude law is not compatible with the widget.public void setSavedAttitudeLaw(fr.cnes.sirius.patrius.attitudes.AttitudeLaw savedAttitudeLaw) throws GPAttitudeException, fr.cnes.genius.exception.GArithmeticException
setSavedAttitudeLaw
in class GPAttitudeLawAbstract
savedAttitudeLaw
- to be set as saved in the widgetfr.cnes.genius.exception.GArithmeticException
- if the angle of attack, the side slip angle or the bank angle in
attitudeLaw are NaN.GPAttitudeException
- if the given attitude law is not compatible with the widget.public void updateCondensedStatus(fr.cnes.genius.main.GCondensedStatus condensedStatus)
updateCondensedStatus
in interface fr.cnes.genius.main.GCondensedStatusInterface
public void setDisplayIsModifiedIndicatorAll(fr.cnes.genius.main.GComponent.DisplayIndicatorStatus displayIndicatorStatus)
setDisplayIsModifiedIndicatorAll
in class GPAttitudeLawAbstract
displayIndicatorStatus
- if Always the modifiedStatusIndicator is always shown, if Never
the modifiedStatusIndicator is never shown, if Automatic the modifiedStatusIndicator
is shown as needed.public boolean isModified()
isModified
in class fr.cnes.genius.main.GComponent
public fr.cnes.genius.main.GComponent getSubComponent(int position) throws fr.cnes.genius.exception.GComponentException
getSubComponent
in class GPAttitudeLawAbstract
fr.cnes.genius.exception.GComponentException
public void before(fr.cnes.genius.main.GEvent e) throws fr.cnes.genius.exception.GException
before
in interface fr.cnes.genius.main.GListener
fr.cnes.genius.exception.GException
public void after(fr.cnes.genius.main.GEvent e) throws fr.cnes.genius.exception.GException
after
in interface fr.cnes.genius.main.GListener
fr.cnes.genius.exception.GException
Copyright © 2018. All rights reserved.