|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.cnes.genius.main.GComponent
fr.cnes.genius.lowLevel.GContainer
fr.cnes.genopus.attitudes.GPAttitudeLawAbstract
fr.cnes.genopus.attitudes.GPSpinStabilizedAbstract
public abstract class GPSpinStabilizedAbstract
Abstract class defining the default methods to be implemented by any spinned stabilized attitude law class.
| Nested Class Summary | |
|---|---|
static class |
GPSpinStabilizedAbstract.GPLawsEvolution
Law evolutions enumerate. |
| 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 | |
|---|---|
GPSpinStabilizedAbstract(String widgetId,
String label)
Constructor. |
|
GPSpinStabilizedAbstract(String widgetId,
String label,
boolean withShowAxisMechanism,
String checkboxTooltip)
Constructor. |
|
| Method Summary | |
|---|---|
void |
after(fr.cnes.genius.main.GEvent e)
|
void |
clear()
|
protected void |
displaySpinStabilizedData()
Calls put method for all subwidgets related to spin stabilized data. |
void |
generic()
|
GPSpinStabilizedAbstract.GPLawsEvolution[] |
getAvailableLawEvolutions()
Getter for the list of laws evolutions proposed in the combo box. |
protected abstract 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 |
getGCheckBoxOccultAxis()
Getter for the checkbox to show/occult axis. |
fr.cnes.genius.highLevel.GComboBoxWithLabel |
getGComboBoxLawEvolution()
Getter for the law evolution combo box subwidget. |
fr.cnes.genius.highLevel.GEntryReal |
getGEntryRealSpinRate()
Getter for the spin rate subwidget. |
fr.cnes.genius.highLevel.GLabelWithIndicator |
getGLabelSpinData()
Getter for the spin data label subwidget. |
GPAxisCoordinates |
getGPAxisCoordinatesSpinAxis()
Get spin axis subwidget. |
GPDateOffset |
getGPDateOffsetSpinDelay()
Getter for the spin delay subwidget. |
GPSpinStabilizedAbstract.GPLawsEvolution |
getGPLawEvolutionEnum()
Get attitude law evolution type currently selected in the combo box. |
fr.cnes.genius.lowLevel.GSeparator |
getGSeparator2()
Getter for the separator subwidget before the spin data. |
protected abstract 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. |
org.orekit.time.AbsoluteDate |
getReferenceDate()
Method to get the reference date for the attitude laws. |
protected abstract 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. |
protected CustomAttitudeLaw |
getSpinnedLaw(CustomAttitudeLaw basicLaw)
Gets the PATRIUS spin stabilized attitude law from a non rotating law, applying the spin stabilized data. |
fr.cnes.genius.main.GComponent |
getSubComponent(int position)
|
boolean |
isModified()
|
void |
setAttitudeLaw(CustomAttitudeLaw attitudeLaw)
Setter from a PATRIUS attitude law. |
protected void |
setAvailableLawEvolutions(GPSpinStabilizedAbstract.GPLawsEvolution... evolutions)
Method to modify the laws evolutions proposed in the combo box. |
void |
setConstraint(int widgetGap)
Setter for the constraints of the widget. |
void |
setDefaultAttitudeLaw(CustomAttitudeLaw 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 |
setEnabled(boolean flag)
|
void |
setGPLawEvolutionEnum(GPSpinStabilizedAbstract.GPLawsEvolution evolution)
Set attitude law evolution type combo box to a given value. |
void |
setReferenceDate(org.orekit.time.AbsoluteDate refDate,
org.orekit.time.TimeScale timeScale)
Method to set the reference date for the attitude laws. |
void |
setSavedAttitudeLaw(CustomAttitudeLaw savedAttitudeLaw)
Setter of the saved value from a PATRIUS attitude law. |
protected abstract void |
setSubWidgetsDefaultValues(CustomAttitudeLaw attitudeLaw)
Private method to set the default values to the sub-widgets related to the non-rotating law. |
protected abstract void |
setSubWidgetsSavedValues(CustomAttitudeLaw attitudeLaw)
Private method to set the saved values to the sub-widgets related to the non-rotating law. |
protected abstract 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.GPAttitudeLawAbstract |
|---|
display, getGLabelLawName, getGSeparator1, getPatriusObject, isEnabled, isNativeAttitudeLaw, 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 |
| Methods inherited from interface fr.cnes.genius.main.GListener |
|---|
before |
| Constructor Detail |
|---|
public GPSpinStabilizedAbstract(String widgetId,
String label)
widgetId - widget identifier, if null an identifier will be automatically createdlabel - label for the attitude law contents section.
public GPSpinStabilizedAbstract(String widgetId,
String label,
boolean withShowAxisMechanism,
String checkboxTooltip)
widgetId - widget identifier, if null an identifier will be automatically createdlabel - label for the attitude law contents section.withShowAxisMechanism - true to activate the mecanism to hide the axis coordinates depending on a checkbox.checkboxTooltip - tooltip to associate to the checkbox that hides the axis coordinates.| Method Detail |
|---|
public void setWidgetId(String widgetId)
setWidgetId in class GPAttitudeLawAbstractpublic fr.cnes.genius.highLevel.GComboBoxWithLabel getGComboBoxLawEvolution()
public fr.cnes.genius.lowLevel.GSeparator getGSeparator2()
public fr.cnes.genius.highLevel.GLabelWithIndicator getGLabelSpinData()
public GPDateOffset getGPDateOffsetSpinDelay()
public fr.cnes.genius.highLevel.GCheckBoxWithIndicator getGCheckBoxOccultAxis()
public GPAxisCoordinates getGPAxisCoordinatesSpinAxis()
public fr.cnes.genius.highLevel.GEntryReal getGEntryRealSpinRate()
public void setAttitudeLaw(CustomAttitudeLaw attitudeLaw)
throws GPAttitudeException
setAttitudeLaw in class GPAttitudeLawAbstractattitudeLaw - to be set in the widget
GPAttitudeException - if the given attitude law is not compatible with the widget.
public void setDefaultAttitudeLaw(CustomAttitudeLaw defaultAttitudeLaw)
throws GPAttitudeException
setDefaultAttitudeLaw in class GPAttitudeLawAbstractdefaultAttitudeLaw - to be set as default in the widget
GPAttitudeException - if the given attitude law is not compatible with the widget.
public void setSavedAttitudeLaw(CustomAttitudeLaw savedAttitudeLaw)
throws GPAttitudeException
setSavedAttitudeLaw in class GPAttitudeLawAbstractsavedAttitudeLaw - to be set as saved in the widget
GPAttitudeException - if the given attitude law is not compatible with the widget.public void setConstraint(int widgetGap)
setConstraint in class GPAttitudeLawAbstractwidgetGap - left gap from panel border to display the label of the widget.
public void generic()
throws fr.cnes.genius.exception.GException
generic in class GPAttitudeLawAbstractfr.cnes.genius.exception.GException
protected void displaySpinStabilizedData()
throws fr.cnes.genius.exception.GException
fr.cnes.genius.exception.GException - in case of problem when reading or writingpublic void setDisplayIsModifiedIndicatorAll(fr.cnes.genius.main.GComponent.DisplayIndicatorStatus displayIndicatorStatus)
setDisplayIsModifiedIndicatorAll in class GPAttitudeLawAbstractdisplayIndicatorStatus - 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.GComponentprotected void updateIsModifiedIndicator()
updateIsModifiedIndicator in class GPAttitudeLawAbstract
public fr.cnes.genius.main.GComponent getSubComponent(int position)
throws fr.cnes.genius.exception.GComponentException
getSubComponent in class GPAttitudeLawAbstractfr.cnes.genius.exception.GComponentException
protected abstract void setSubWidgetsValues(CustomAttitudeLaw attitudeLaw)
throws GPAttitudeException
attitudeLaw - PATRIUS attitude law. Must be of native type.
GPAttitudeException - if there is some problem
protected abstract void setSubWidgetsDefaultValues(CustomAttitudeLaw attitudeLaw)
throws GPAttitudeException
attitudeLaw - PATRIUS attitude law. Must be of native type.
GPAttitudeException - if there is some problem
protected abstract void setSubWidgetsSavedValues(CustomAttitudeLaw attitudeLaw)
throws GPAttitudeException
attitudeLaw - PATRIUS attitude law. Must be of native type.
GPAttitudeException - if there is some problempublic GPSpinStabilizedAbstract.GPLawsEvolution getGPLawEvolutionEnum()
GPSpinStabilizedAbstract.GPLawsEvolution enum).public void setGPLawEvolutionEnum(GPSpinStabilizedAbstract.GPLawsEvolution evolution)
evolution - the attitude evolution type (as a choice of the GPSpinStabilizedAbstract.GPLawsEvolution enum).protected void setAvailableLawEvolutions(GPSpinStabilizedAbstract.GPLawsEvolution... evolutions)
evolutions - items of GPSpinStabilizedAbstract.GPLawsEvolution enum to be shown in the combobox.public GPSpinStabilizedAbstract.GPLawsEvolution[] getAvailableLawEvolutions()
GPSpinStabilizedAbstract.GPLawsEvolution enum items with the list of laws evolutions proposed in the
widget.public void updateCondensedStatus(fr.cnes.genius.main.GCondensedStatus condensedStatus)
updateCondensedStatus in interface fr.cnes.genius.main.GCondensedStatusInterface
protected CustomAttitudeLaw getSpinnedLaw(CustomAttitudeLaw basicLaw)
throws GPAttitudeException
basicLaw - the widget non rotating attitude law
GPAttitudeException - if the spin vector is not defined (unreacheble) or if the spin start date is not defined or
out of bounds (for calendar format representation)
protected abstract org.apache.commons.math3.geometry.euclidean.threed.Vector3D getPointingAxis()
throws GPAttitudeException
GPAttitudeException - in case of any problem.
protected abstract org.apache.commons.math3.geometry.euclidean.threed.Vector3D getDefaultPointingAxis()
throws GPAttitudeException
GPAttitudeException - in case of any problem.
protected abstract org.apache.commons.math3.geometry.euclidean.threed.Vector3D getSavedPointingAxis()
throws GPAttitudeException
GPAttitudeException - in case of any problem.
public void setReferenceDate(org.orekit.time.AbsoluteDate refDate,
org.orekit.time.TimeScale timeScale)
refDate - reference datetimeScale - time scale for the time offsets of the spin stabilized laws
public org.orekit.time.AbsoluteDate getReferenceDate()
throws GPAttitudeException
GPAttitudeException - if the reference date is undefined.
public void clear()
throws fr.cnes.genius.exception.GException
clear in interface fr.cnes.genius.main.GClearfr.cnes.genius.exception.GExceptionpublic void setEnabled(boolean flag)
setEnabled in class GPAttitudeLawAbstract
public void after(fr.cnes.genius.main.GEvent e)
throws fr.cnes.genius.exception.GException
after in interface fr.cnes.genius.main.GListenerfr.cnes.genius.exception.GException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||