public final class GPAttitudeSequence extends fr.cnes.genius.lowLevel.GPanel implements fr.cnes.genius.main.GReadWrite, fr.cnes.genius.main.GListener, fr.cnes.genius.main.GDisplay, fr.cnes.genius.main.GClear, fr.cnes.genius.main.GCondensedStatusInterface, GPPatriusWithObjects<fr.cnes.sirius.patrius.attitudes.AttitudeProvider>
Index | Class | Item | Constraint |
0 | GPDualAbsoluteDate | refAbsoluteDate | "newline" (see table below) |
1 | GLabelWithIndicator | attitudeLawsLabel | 1, 0 =>
"newline , split 2" 1, 1 => (null) |
2 | GButton | selectLawsButton | "newline , gapleft 10 , spanx 3" |
3 | GLabelWithIndicator | switchesLabel | 3, 0 => "newline , split 2" 3, 1 => (null) |
4 | GComponentList | switchComponentList | "newline , gapleft 0 , spanx 3" (see table below) |
5 | GStandardPanelDialog | lawListDialog | "newline , pushx , pushy , growx , growy" |
Index | Class | Item | Constraint |
0, 0 | GLabelWithIndicator | label | 0, 0, 0 =>
"newline , gapleft 0 , split 2" 0, 0, 1 => "wmin 24" |
0, 1 | GChoice | typeDateChoice | 0, 1, 0, 0 =>
"newline , gapleft 20 , split 2" 0, 1, 0, 1 => (null) 0, 1, 1 => "split" |
0, 2 | GPAbsoluteDate | referenceAbsoluteDate | "newline" (see table below) |
0, 3 | GPAbsoluteDate | externalAbsoluteDate | "newline" (see table below) |
Index | Class | Item | Constraint |
0, 2, 0 | GLabelWithIndicator | label | 0,
2, 0, 0 => "newline , gapleft 20 , split 2" 0, 2, 0, 1 => (null) |
0, 2, 1 | GPDateField | dateField | (null) |
0, 2, 2 | GPopupListWithLabel | popupListTimeScales | 0, 2, 2, 0, 0 => "split 4" 0, 2, 2, 0, 1 => (null) 0, 2, 2, 1 => (null) |
0, 2, 3 | GButton | buttonRelativeDate | (null) |
Index | Class | Item | Constraint |
0, 3, 0 | GLabelWithIndicator | label | 0, 3,
0, 0 => "newline , gapleft 20 , split 2" 0, 3, 0, 1 => (null) |
0, 3, 1 | GPDateField | dateField | (null) |
0, 3, 2 | GPopupListWithLabel | popupListTimeScales | 0, 3, 2, 0, 0 => "split 4" 0, 3, 2, 0, 1 => (null) 0, 3, 2, 1 => (null) |
0, 3, 3 | GButton | buttonRelativeDate | (null) |
Index | Class | Item | Constraint |
4, 0 | GHeaderPanel | header | "hmin 40" (see table below) |
4, 1 | GLabel | spaceLabel | "newline , height 0" |
Index | Class | Item | Constraint |
4, 0, 0 | GEntryInt | totalNumberItemsEntry | 4, 0, 0, 0, 0
=> "newline , split 2" 4, 0, 0, 0, 1 => (null) 4, 0, 0, 1 => "skip 2 , width 50" |
4, 0, 1 | GEntryInt | currentItemRankEntry | 4, 0, 1, 0, 0 => "split 2" 4, 0, 1, 0, 1 => (null) 4, 0, 1, 1 => "width 50" |
4, 0, 2 | GButton | decrButton | "alignx Right , height 20" |
4, 0, 3 | GButton | incrButton | "height 20" |
4, 0, 4 | GPopupList | menu | (null) |
Modifier and Type | Class and Description |
---|---|
static class |
GPAttitudeSequence.AttSeqModesEnum
Enum for mode selection.
|
static class |
GPAttitudeSequence.GPAttitudeSequenceSwitch
Widget for attitude sequence switches with an attitude law before and after a given event
chosen by an event selector.
|
class |
GPAttitudeSequence.GPLawsComponentList
Widget to define a list of attitude laws with required methods to deny the introduction of
two laws with the same name.
|
fr.cnes.genius.lowLevel.GPanel.Panel, fr.cnes.genius.lowLevel.GPanel.ScrollBarVisibility
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
Constructor and Description |
---|
GPAttitudeSequence()
Empty constructor.
|
GPAttitudeSequence(fr.cnes.sirius.patrius.time.AbsoluteDate externalDate,
boolean switchListSingleMode,
boolean lawsListSingleMode)
Constructor with an external date.
|
GPAttitudeSequence(fr.cnes.sirius.patrius.time.AbsoluteDate externalDate,
boolean switchListSingleMode,
boolean lawsListSingleMode,
fr.cnes.sirius.patrius.attitudes.AttitudeLaw[] attitudeLaws,
String[] attitudeLawsNames,
int selectedLawIndex)
Constructor with an external date and attitude laws choice.
|
GPAttitudeSequence(boolean switchListSingleMode,
boolean lawsListSingleMode)
Constructor.
|
GPAttitudeSequence(String widgetId,
fr.cnes.sirius.patrius.time.AbsoluteDate externalDate,
boolean switchListSingleMode,
boolean lawsListSingleMode)
Constructor with an external date.
|
GPAttitudeSequence(String widgetId,
fr.cnes.sirius.patrius.time.AbsoluteDate externalDate,
boolean switchListSingleMode,
boolean lawsListSingleMode,
fr.cnes.sirius.patrius.attitudes.AttitudeLaw[] attitudeLaws,
String[] attitudeLawsNames,
int selectedLawIndex)
Constructor with an external date and attitude laws choice.
|
GPAttitudeSequence(String widgetId,
boolean switchListSingleMode,
boolean lawsListSingleMode)
Constructor.
|
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 |
display() |
void |
generic() |
ArrayList<GPAttitudeLawSelector> |
getAttLawsList()
Get attitude laws list.
|
fr.cnes.sirius.patrius.bodies.OneAxisEllipsoid |
getEarthShape()
Getter for the Earth shape.
|
fr.cnes.genius.lowLevel.GButton |
getGButtonSelectLaws()
Get the select laws button sub-widget.
|
fr.cnes.genius.highLevel.GChoice |
getGChoiceMode()
Get mode choice.
|
fr.cnes.genius.highLevel.GComboBoxWithLabel |
getGComboBoxSimpleLaw()
Get simple law combo box.
|
fr.cnes.genius.highLevel.GComponentList |
getGComponentListSwitches()
Get the switches component list sub-widget.
|
fr.cnes.genius.lowLevel.GStandardPanelDialog |
getGDialogAttitudeLaws()
Get the attitude laws dialog sub-widget.
|
fr.cnes.genius.highLevel.GLabelWithIndicator |
getGLabelAttitudeLaws()
Get the attitude laws label sub-widget.
|
fr.cnes.genius.highLevel.GLabelWithIndicator |
getGLabelSwitches()
Get the switches label sub-widget.
|
GPDualAbsoluteDate |
getGPDualAbsoluteDate()
Get the reference date sub-widget.
|
GPAttitudeSequence.GPLawsComponentList |
getGPLawsComponentList()
Get the attitude laws component list sub-widget.
|
String |
getLawBeforeSelectedName()
Get simple law name.
|
fr.cnes.sirius.patrius.attitudes.AttitudeProvider |
getPatriusObject()
Method to obtain a PATRIUS AttitudesSequence object builded with MMI parameters.
|
fr.cnes.sirius.patrius.attitudes.AttitudeProvider |
getPatriusObject(Object... args)
Returns the PATRIUS object associated to a GENOPUS widget.
|
GPAttitudeSequence.AttSeqModesEnum |
getSelectedMode()
Get the selected mode as an enum item.
|
fr.cnes.genius.main.GComponent |
getSubComponent(int position) |
ArrayList<GPAttitudeSequence.GPAttitudeSequenceSwitch> |
getSwitchList()
Get switches list.
|
boolean |
isEnabled() |
void |
read() |
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 |
setCurrentLawsNumber(int currentLawsNumber)
Set the current number of items in the attitude laws list, if the value is not contained in
minLawNumber <= currentLawsNumber <= maxLawNumber, nothing is done.
|
void |
setCurrentSwitchesNumber(int currentSwitchesNumber)
Set the current number of items in the attitude switches list, if the value is not contained
in minSwitchesNumber <= currentSwitchesNumber <= maxSwitchesNumber, nothing is done.
|
void |
setEarthShape(fr.cnes.sirius.patrius.bodies.OneAxisEllipsoid earthShape)
Method to set the reference date for the attitude laws.
|
void |
setEnabled(boolean flag) |
void |
setExternalDate(fr.cnes.sirius.patrius.time.AbsoluteDate externalDate)
Method to set the external date used as reference date in "external" mode.
|
void |
setMinMaxLawsNumber(Integer minLawNumber,
Integer maxLawNumber)
Set the minimum and maximum number of attitude laws allowed.
|
void |
setMinMaxSwitchesNumber(Integer minSwitchesNumber,
Integer maxSwitchesNumber)
Set the minimum and maximum number of attitude switches allowed.
|
void |
setPropagationFrame(fr.cnes.sirius.patrius.frames.Frame propagationFrame)
Setter for the propagation frame.
|
void |
setReferenceDate(fr.cnes.sirius.patrius.time.AbsoluteDate refDate)
Set the reference date.
|
void |
updateCondensedStatus(fr.cnes.genius.main.GCondensedStatus condensedStatus) |
void |
updateExternalDate(fr.cnes.sirius.patrius.time.AbsoluteDate externalDate)
Update external date value.
|
protected void |
updateStatus()
Update the global status of the widget following the status of its components.
|
void |
write() |
clearConstraint, getClassConstraint, getComponent, getHorizontalScroll, getInnerDescendantClassConstraint, getJPanel, getJScrollPane, getLayoutConstraints, getStringClassConstraint, getVerticalScroll, mainClear, mainDisplay, processMouseWheelEvent, put, setClassConstraint, setColumnConstraints, setConstraint, setDefaultConstraints, setHorizontalScroll, setInnerDescendantClassConstraint, setLayoutConstraints, setMargins, setPanelConstraints, setPreferredSize, setRowConstraints, setUnitIncrement, setVerticalScroll, unput
activateConstraintsByType, attachCopyPasteMenu, attachCopyPasteMenu, beginOfElement, beginOfElement, beginOfElement, beginOfElement, clearAllInnerDescendantConstraint, clearInnerDescendantContraint, composeWidgetId, doDisplay, endOfElement, getCommentInConfigFile, getConstraint, getCurrentOperation, getDisplayIndicatorStatus, getDisplayIsModifiedIndicator, getElement, getGClassName, getGPanel, getGParent, getGUnitInConfigFile, getInnerDescendantConstraint, getName, getNameInConfigFile, getOperationSaveValue, getPathInConfigFile, getSimpleWidgetId, getStatus, getStringConstraint, getWidgetId, handleCopyPasteEvent, handleCopyPasteEvent, handleProcessEventException, isCopyPasteEvent, isForcedStatus, isModified, launchInvalidPositionException, mouseWheelMoved, parseSimpleConstraint, processGEvent, setBusyCursor, setCommentInConfigFile, setCopyPasteMenuEnabled, setCurrentOperation, setDataForConstraintsByType, setDisplayIsModifiedIndicator, setElement, setForcedStatus, setGPanel, setGParent, setGUnitInConfigFile, setInnerDescendantConstraint, setName, setNameAndCommentInConfigFile, setNameInConfigFile, setPathInConfigFile, setStatus, setStringConstraint, setToolTipText, setWidgetId, setWidth, setWindowBusyCursor, updateIsModifiedIndicator, writeCollection, writeCollection, writeCollection, writeCollection, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem
public GPAttitudeSequence() throws GPAttitudeException
GPAttitudeException
- thrown if attitudeLaws length != attitudeLawsNames length or selectedLawIndex not in
[0, attitudeLaws length[public GPAttitudeSequence(boolean switchListSingleMode, boolean lawsListSingleMode) throws GPAttitudeException
switchListSingleMode
- flag to determine if the switches component list is in
"single widget mode" or not.lawsListSingleMode
- flag to determine if the attitude laws list is in
"single widget mode" or not.GPAttitudeException
- thrown if attitudeLaws length != attitudeLawsNames length or selectedLawIndex not in
[0, attitudeLaws length[public GPAttitudeSequence(String widgetId, boolean switchListSingleMode, boolean lawsListSingleMode) throws GPAttitudeException
widgetId
- widget identifier, if null an identifier will be automatically created.switchListSingleMode
- flag to determine if the switches component list is in
"single widget mode" or not.lawsListSingleMode
- flag to determine if the attitude laws list is in
"single widget mode" or not.GPAttitudeException
- thrown if attitudeLaws length != attitudeLawsNames length or selectedLawIndex not in
[0, attitudeLaws length[public GPAttitudeSequence(fr.cnes.sirius.patrius.time.AbsoluteDate externalDate, boolean switchListSingleMode, boolean lawsListSingleMode) throws GPAttitudeException
externalDate
- date to be initially set as reference date.switchListSingleMode
- flag to determine if the switches component list is in
"single widget mode" or not.lawsListSingleMode
- flag to determine if the attitude laws list is in
"single widget mode" or not.GPAttitudeException
- thrown if attitudeLaws length != attitudeLawsNames length or selectedLawIndex not in
[0, attitudeLaws length[public GPAttitudeSequence(String widgetId, fr.cnes.sirius.patrius.time.AbsoluteDate externalDate, boolean switchListSingleMode, boolean lawsListSingleMode) throws GPAttitudeException
widgetId
- widget identifier, if null an identifier will be automatically created.externalDate
- date to be initially set as reference date.switchListSingleMode
- flag to determine if the switches component list is in
"single widget mode" or not.lawsListSingleMode
- flag to determine if the attitude laws list is in
"single widget mode" or not.GPAttitudeException
- thrown if attitudeLaws length != attitudeLawsNames length or selectedLawIndex not in
[0, attitudeLaws length[public GPAttitudeSequence(fr.cnes.sirius.patrius.time.AbsoluteDate externalDate, boolean switchListSingleMode, boolean lawsListSingleMode, fr.cnes.sirius.patrius.attitudes.AttitudeLaw[] attitudeLaws, String[] attitudeLawsNames, int selectedLawIndex) throws GPAttitudeException
externalDate
- date to be initially set as reference date.switchListSingleMode
- flag to determine if the switches component list is in
"single widget mode" or not.lawsListSingleMode
- flag to determine if the attitude laws list is in
"single widget mode" or not.attitudeLaws
- list of initial attitude laws present in the widgetattitudeLawsNames
- list of initial attitude laws names present in the widget (should be of the same size
than attitudeLaws)selectedLawIndex
- initial selected attitude law. Should be in the range [-1, number of initial attitude
laws], -1 is for NONE attitude lawGPAttitudeException
- thrown if attitudeLaws length != attitudeLawsNames length or selectedLawIndex not in
[-1, attitudeLaws length[public GPAttitudeSequence(String widgetId, fr.cnes.sirius.patrius.time.AbsoluteDate externalDate, boolean switchListSingleMode, boolean lawsListSingleMode, fr.cnes.sirius.patrius.attitudes.AttitudeLaw[] attitudeLaws, String[] attitudeLawsNames, int selectedLawIndex) throws GPAttitudeException
widgetId
- widget identifier, if null an identifier will be automatically created.externalDate
- date to be initially set as reference date.switchListSingleMode
- flag to determine if the switches component list is in
"single widget mode" or not.lawsListSingleMode
- flag to determine if the attitude laws list is in
"single widget mode" or not.attitudeLaws
- list of initial attitude laws present in the widgetattitudeLawsNames
- list of initial attitude laws names present in the widget (should be of the same size
than attitudeLaws)selectedLawIndex
- initial selected attitude law. Should be in the range [-1, number of initial attitude
laws], -1 is for NONE attitude lawGPAttitudeException
- thrown if attitudeLaws length != attitudeLawsNames length or selectedLawIndex not in
[-1, attitudeLaws length[public GPDualAbsoluteDate getGPDualAbsoluteDate()
public fr.cnes.genius.highLevel.GLabelWithIndicator getGLabelAttitudeLaws()
public fr.cnes.genius.lowLevel.GButton getGButtonSelectLaws()
public fr.cnes.genius.lowLevel.GStandardPanelDialog getGDialogAttitudeLaws()
public GPAttitudeSequence.GPLawsComponentList getGPLawsComponentList()
public fr.cnes.genius.highLevel.GChoice getGChoiceMode()
public fr.cnes.genius.highLevel.GComboBoxWithLabel getGComboBoxSimpleLaw()
public String getLawBeforeSelectedName()
public fr.cnes.genius.highLevel.GLabelWithIndicator getGLabelSwitches()
public fr.cnes.genius.highLevel.GComponentList getGComponentListSwitches()
public void setConstraint(int widgetGap)
widgetGap
- left gap from panel border to display the label of the widget.public GPAttitudeSequence.AttSeqModesEnum getSelectedMode()
public void generic() throws fr.cnes.genius.exception.GException
generic
in class fr.cnes.genius.lowLevel.GPanel
fr.cnes.genius.exception.GException
public void read() throws fr.cnes.genius.exception.GException
read
in interface fr.cnes.genius.main.GReadWrite
fr.cnes.genius.exception.GException
public void write() throws fr.cnes.genius.exception.GException
write
in interface fr.cnes.genius.main.GReadWrite
fr.cnes.genius.exception.GException
public void display() throws fr.cnes.genius.exception.GException
display
in interface fr.cnes.genius.main.GDisplay
fr.cnes.genius.exception.GException
public void setEnabled(boolean flag)
setEnabled
in class fr.cnes.genius.main.GComponent
public boolean isEnabled()
isEnabled
in class fr.cnes.genius.main.GComponent
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
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 setReferenceDate(fr.cnes.sirius.patrius.time.AbsoluteDate refDate) throws fr.cnes.genius.exception.GArithmeticException
refDate
- the reference datefr.cnes.genius.exception.GArithmeticException
- if refDate contains a NaN value in the double for the seconds in
day (offset attribut)public void setExternalDate(fr.cnes.sirius.patrius.time.AbsoluteDate externalDate) throws fr.cnes.genius.exception.GArithmeticException
externalDate
- date to be set.fr.cnes.genius.exception.GArithmeticException
- if externalDate contains a NaN value in the double for the
seconds in day (offset attribut)public void updateExternalDate(fr.cnes.sirius.patrius.time.AbsoluteDate externalDate) throws fr.cnes.genius.exception.GArithmeticException
externalDate
- the new external datefr.cnes.genius.exception.GArithmeticException
- if externalDate contains a NaN value in the double for the
seconds in day (offset attribut)public ArrayList<GPAttitudeLawSelector> getAttLawsList()
public ArrayList<GPAttitudeSequence.GPAttitudeSequenceSwitch> getSwitchList()
public fr.cnes.sirius.patrius.attitudes.AttitudeProvider 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.AttitudeProvider>
args
- The parameters are 0: OneAxisEllipsoid.fr.cnes.sirius.patrius.utils.exception.PatriusException
- problem with patrius objectfr.cnes.genius.exception.GException
- if the PATRIUS object cannot be created from the widget data.public fr.cnes.sirius.patrius.attitudes.AttitudeProvider getPatriusObject() throws GPAttitudeException, fr.cnes.sirius.patrius.utils.exception.PatriusException
getPatriusObject
in interface GPPatrius<fr.cnes.sirius.patrius.attitudes.AttitudeProvider>
GPAttitudeException
- in case the law before or after of one of the switches is
undefinedfr.cnes.sirius.patrius.utils.exception.PatriusException
- problem with patrius objectpublic void setEarthShape(fr.cnes.sirius.patrius.bodies.OneAxisEllipsoid earthShape) throws GPAttitudeException, fr.cnes.genius.exception.GArithmeticException
earthShape
- Earth Shape to be set.GPAttitudeException
- In case of problems settings Earth Shape to event Selector or if
the Earth shape is not an instance of an OneAxisEllipsoid
fr.cnes.genius.exception.GArithmeticException
- if eq. radius or flatness in earthShape are NaN.public fr.cnes.sirius.patrius.bodies.OneAxisEllipsoid getEarthShape()
public void setBodyShapeWidgetsVisible(boolean b)
b
- if true the widget will be visible, if false it will not.public void setPropagationFrame(fr.cnes.sirius.patrius.frames.Frame propagationFrame) throws GPAttitudeException
propagationFrame
- frame to be set as pseudoinertial frame in the LOF attitude law (onlyGPAttitudeException
- In case the of invalid frame.public void updateCondensedStatus(fr.cnes.genius.main.GCondensedStatus condensedStatus)
updateCondensedStatus
in interface fr.cnes.genius.main.GCondensedStatusInterface
public void clear() throws fr.cnes.genius.exception.GException
clear
in interface fr.cnes.genius.main.GClear
fr.cnes.genius.exception.GException
protected void updateStatus()
public fr.cnes.genius.main.GComponent getSubComponent(int position) throws fr.cnes.genius.exception.GComponentException
getSubComponent
in class fr.cnes.genius.main.GComponent
fr.cnes.genius.exception.GComponentException
public void setMinMaxLawsNumber(Integer minLawNumber, Integer maxLawNumber)
minLawNumber
- minimum number of attitude laws, if null do not change the current value.maxLawNumber
- maximum number of attitude laws, if null do not change the current value,
if -1 do limit the maximum number of attitude laws.public void setCurrentLawsNumber(int currentLawsNumber)
currentLawsNumber
- current number of items in the attitude laws list, if the value is
not contained in minLawNumber <= currentLawsNumber <= maxLawNumber, nothing is done.public void setMinMaxSwitchesNumber(Integer minSwitchesNumber, Integer maxSwitchesNumber)
minSwitchesNumber
- minimum number of attitude switches, if null do not change the
current value.maxSwitchesNumber
- maximum number of attitude switches, if null do not change the
current value, if -1 do limit the maximum number of attitude switches.public void setCurrentSwitchesNumber(int currentSwitchesNumber)
currentSwitchesNumber
- current number of items in the attitude switches list, if the
value is not contained in minSwitchesNumber <= currentSwitchesNumber <=
maxSwitchesNumber, nothing is done.Copyright © 2024. All rights reserved.