public abstract class GPParametersAbstractWithAnomaly extends GPParametersAbstract
ANGLE_UNITS, DISTANCE_UNITS, INT_ERR_MNS_2_TO_2, INT_ERR_MNS_INF_TO_ZERO, INT_ERR_MNS_ONE_TO_ONE_EXC, INT_ERR_MNS_ONE_TO_ONE_INC, INT_ERR_ZERO_EX_TO_INF, INT_ERR_ZERO_IN_TO_INF, INT_ERR_ZERO_TO_PI, INT_WARN_MNS_PI_TO_PI, INT_WARN_MNS_PI_TO_TWO_PI, NULL_PARAMS, VELOCITY_UNITS| Constructor and Description |
|---|
GPParametersAbstractWithAnomaly(String widgetId,
String name,
String label)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
aditionalActionsAfter1(fr.cnes.genius.main.GEvent e)
Additional actions to be performed by the after() method of class
GPParametersAbstract, to be
implemented by its sub-classes. |
protected abstract void |
aditionalActionsAfter2(fr.cnes.genius.main.GEvent e)
Additional actions to be performed by the after() method of class
GPParametersAbstractWithAnomaly, to be implemented by its sub-classes. |
void |
clear() |
void |
display() |
void |
generic() |
protected abstract fr.cnes.genius.highLevel.GEntryReal |
getAnomalyEntryReal()
Generic getter for the GEntryReal corresponding to the anomaly/longitude/AoL.
|
protected fr.cnes.sirius.patrius.orbits.PositionAngle |
getCurrentAnomalyType()
Getter for the current type of anomaly/longitude/AoL (TRUE, MEAN or ECCENTRIC).
|
protected abstract double |
getCurrentAnomalyValue()
Getter for the current value of the anomaly/longitude/AoL.
|
abstract fr.cnes.genius.highLevel.GPopupListWithLabel |
getGPopupList()
Generic getter for the GPopupListWithLabel corresponding to the anomaly/longitude/AoL type selector
(true, mean ou eccentric).
|
double[] |
getParams()
Getter for the parameters array.
|
fr.cnes.sirius.patrius.orbits.PositionAngle |
getPivotAnomalyType()
Getter for the type of parameters of the pivot.
|
fr.cnes.genius.main.GComponent |
getSubComponent(int position) |
boolean |
isButtonForcePivotVisible() |
boolean |
isInPivot()
Returns if the current set of parameters are in pivot or not: the shown values corresponds exactly to
the values in memory.
|
boolean |
isModified() |
void |
onButtonForcePivot()
Actions when the event comes from the pivot button.
|
protected void |
onGEntryRealParams(fr.cnes.genius.main.GEvent e)
Actions when the event comes from any of the first 6 parameters GEntryReals.
|
void |
onPopupListAnomalyType(fr.cnes.genius.main.GEvent e)
Actions when the event comes from the popup list to choose the anomaly type.
|
void |
read() |
protected abstract void |
recomputeAnomaliesMap()
Recomputes the three types of anomaly/longitude/AoL by creating an auxiliary orbit.
|
protected void |
recomputePivot()
Recompute the pivot anomaly/AoL/longitude from the specified data in the widget.
|
protected void |
setAnomalies(Double trueAnomaly,
Double eccentricAnomaly,
Double meanAnomaly)
Save in memory the three values of the anomaly/longitude/AoL.
|
void |
setButtonForcePivotVisible(boolean buttonForcePivotVisible) |
void |
setConstraint(int labelGap,
int paramsGap)
Setter for the constraints of the orbital parameters.
|
protected void |
setCurrentAnomalyType(fr.cnes.sirius.patrius.orbits.PositionAngle anomalyType)
Setter for the current type of anomaly/longitude/AoL (TRUE, MEAN or ECCENTRIC).
|
void |
setDefaultParams(double[] defaultParams)
Sets the default orbital parameters.
|
void |
setDefaultParams(double[] defaultParams,
fr.cnes.sirius.patrius.orbits.PositionAngle defaultAnomalyType)
Sets the default orbital parameters.
|
void |
setDefaultParams(fr.cnes.sirius.patrius.orbits.orbitalparameters.IOrbitalParameters defaultParams)
Sets the default orbital parameters.
|
void |
setDefaultParams(fr.cnes.sirius.patrius.orbits.orbitalparameters.IOrbitalParameters defaultParams,
fr.cnes.sirius.patrius.orbits.PositionAngle anomalyType)
Sets the default orbital parameters.
|
void |
setDisplayIsModifiedIndicatorAll(fr.cnes.genius.main.GComponent.DisplayIndicatorStatus displayIndicatorStatus)
Controls the display of the isModified indicator of all sub-widgets (except for Mu, because it is
always comparable, it is always present in the rest of representations).
|
void |
setEnabled(boolean b) |
void |
setParams(double[] params)
Sets the specified orbital parameters in the widget.
|
void |
setParams(double[] params,
fr.cnes.sirius.patrius.orbits.PositionAngle anomalyType)
Setter for the widget parameters.
|
void |
setParams(fr.cnes.sirius.patrius.orbits.orbitalparameters.IOrbitalParameters params)
Sets the specified orbital parameters in the widget.
|
void |
setParams(fr.cnes.sirius.patrius.orbits.orbitalparameters.IOrbitalParameters params,
fr.cnes.sirius.patrius.orbits.PositionAngle anomalyType)
Sets the specified orbital parameters in the widget.
|
void |
setPivotAnomalyType(fr.cnes.sirius.patrius.orbits.PositionAngle pivot)
Method used to change pivot anomaly map.
|
void |
setSavedParams(double[] savedParams)
Sets the saved orbital parameters.
|
void |
setSavedParams(double[] savedParams,
fr.cnes.sirius.patrius.orbits.PositionAngle savedAnomalyType)
Setter for the saved parameters.
|
void |
setSavedParams(fr.cnes.sirius.patrius.orbits.orbitalparameters.IOrbitalParameters savedParams)
Sets the saved orbital parameters.
|
void |
setSavedParams(fr.cnes.sirius.patrius.orbits.orbitalparameters.IOrbitalParameters savedParams,
fr.cnes.sirius.patrius.orbits.PositionAngle anomalyType)
Sets the saved orbital parameters.
|
void |
updateIsModifiedIndicator() |
protected void |
updateIsPivotButtonEnabled()
Update the status enabled/disabled of the force pivot button.
It will be enabled if all conditions are fulfilled: - The widget is enabled - The widget is not in error status - The widget is not pivoted already - The widget is not null |
void |
updateStatus()
Update the status of the orbital parameters.
|
void |
write() |
aditionalActionsBefore1, after, attachCopyPasteMenu, before, checkGlobalCoherence, computeParamsArray, copyNullParams, getGEntryRealMu, getGLabel, getName, getParametersGEntryRealsList, getPatriusObject, getXMLType, handleOrbitCopyPasteEvent, isBlockedConversions, isClear, isEnabled, isParamsNull, modMinusPiPlusPi, onGEntryRealMu, setBlockedConversions, setDefaultConstraint, updateCondensedStatusactivateConstraintsByType, attachCopyPasteMenu, beginOfElement, beginOfElement, beginOfElement, beginOfElement, clearAllInnerDescendantConstraint, clearConstraint, clearInnerDescendantContraint, composeWidgetId, doDisplay, endOfElement, getCommentInConfigFile, getComponent, getConstraint, getCurrentOperation, getDisplayIndicatorStatus, getDisplayIsModifiedIndicator, getElement, getGClassName, getGPanel, getGParent, getGUnitInConfigFile, getInnerDescendantConstraint, getNameInConfigFile, getOperationSaveValue, getPathInConfigFile, getSimpleWidgetId, getStatus, getStringConstraint, getWidgetId, handleCopyPasteEvent, handleCopyPasteEvent, handleProcessEventException, isCopyPasteEvent, isForcedStatus, launchInvalidPositionException, mouseWheelMoved, parseSimpleConstraint, processGEvent, processMouseWheelEvent, setBusyCursor, setCommentInConfigFile, setConstraint, setCopyPasteMenuEnabled, setCurrentOperation, setDataForConstraintsByType, setDefaultConstraints, setDisplayIsModifiedIndicator, setElement, setForcedStatus, setGPanel, setGParent, setGUnitInConfigFile, setInnerDescendantConstraint, setName, setNameAndCommentInConfigFile, setNameInConfigFile, setPathInConfigFile, setStatus, setStringConstraint, setToolTipText, setWidgetId, setWidth, setWindowBusyCursor, writeCollection, writeCollection, writeCollection, writeCollection, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItempublic GPParametersAbstractWithAnomaly(String widgetId, String name, String label)
widgetId - widget identifier, if null an identifier will be automatically created.name - name for the set of orbital parameters.label - label for the set of orbital parameterspublic void setParams(fr.cnes.sirius.patrius.orbits.orbitalparameters.IOrbitalParameters params)
throws GPOrbitException,
fr.cnes.genius.exception.GArithmeticException
setParams in class GPParametersAbstractparams - the orbital parameters as an IOrbitalParameters patrius object.GPOrbitException - if the params are invalid:fr.cnes.genius.exception.GArithmeticException - if the params contain NaNs:public void setParams(fr.cnes.sirius.patrius.orbits.orbitalparameters.IOrbitalParameters params,
fr.cnes.sirius.patrius.orbits.PositionAngle anomalyType)
throws GPOrbitException,
fr.cnes.genius.exception.GArithmeticException
params - the orbital parameters as a IOrbitalParameters patrius object.anomalyType - type of anomaly (TRUE, MEAN or ECCENTRIC)GPOrbitException - if the params are invalid:fr.cnes.genius.exception.GArithmeticException - if the params contain NaNs:public void generic()
throws fr.cnes.genius.exception.GException
generic in class GPParametersAbstractfr.cnes.genius.exception.GExceptionpublic void display()
throws fr.cnes.genius.exception.GException
display in interface fr.cnes.genius.main.GDisplaydisplay in class GPParametersAbstractfr.cnes.genius.exception.GExceptionprotected void recomputePivot()
throws GPOrbitException
GPOrbitException - if the widget orbital parameters do not represent a valid orbit.protected abstract double getCurrentAnomalyValue()
protected fr.cnes.sirius.patrius.orbits.PositionAngle getCurrentAnomalyType()
protected void setCurrentAnomalyType(fr.cnes.sirius.patrius.orbits.PositionAngle anomalyType)
anomalyType - the current type of anomaly/longitude/AoL (TRUE, MEAN or ECCENTRIC)protected abstract void recomputeAnomaliesMap()
throws GPOrbitException
GPOrbitException - if the current orbital parameters (with pivot anomaly/longitude/AoL) do not represent a
valid orbit.protected void updateIsPivotButtonEnabled()
public fr.cnes.sirius.patrius.orbits.PositionAngle getPivotAnomalyType()
public void setPivotAnomalyType(fr.cnes.sirius.patrius.orbits.PositionAngle pivot)
pivot - pivot anomaly typepublic void setEnabled(boolean b)
setEnabled in class GPParametersAbstractprotected abstract fr.cnes.genius.highLevel.GEntryReal getAnomalyEntryReal()
public abstract fr.cnes.genius.highLevel.GPopupListWithLabel getGPopupList()
public void updateIsModifiedIndicator()
updateIsModifiedIndicator in class GPParametersAbstractpublic void setDisplayIsModifiedIndicatorAll(fr.cnes.genius.main.GComponent.DisplayIndicatorStatus displayIndicatorStatus)
setDisplayIsModifiedIndicatorAll in class GPParametersAbstractdisplayIndicatorStatus - if Always the modifiedStatusIndicator is always shown, if Never the modifiedStatusIndicator
is always shown, if Automatic the modifiedStatusIndicator is shown as needed.public boolean isButtonForcePivotVisible()
public void setButtonForcePivotVisible(boolean buttonForcePivotVisible)
buttonForcePivotVisible - the m_buttonForcePivotVisible to setpublic boolean isInPivot()
public void clear()
throws fr.cnes.genius.exception.GException
clear in interface fr.cnes.genius.main.GClearclear in class GPParametersAbstractfr.cnes.genius.exception.GExceptionpublic boolean isModified()
isModified in class GPParametersAbstractpublic void write()
throws fr.cnes.genius.exception.GException
write in interface fr.cnes.genius.main.GReadWritewrite in class GPParametersAbstractfr.cnes.genius.exception.GExceptionpublic void read()
throws fr.cnes.genius.exception.GException
read in interface fr.cnes.genius.main.GReadWriteread in class GPParametersAbstractfr.cnes.genius.exception.GExceptionprotected void aditionalActionsAfter1(fr.cnes.genius.main.GEvent e)
throws GPOrbitException
GPParametersAbstract, to be
implemented by its sub-classes.aditionalActionsAfter1 in class GPParametersAbstracte - processed eventGPOrbitException - in case of any problemprotected abstract void aditionalActionsAfter2(fr.cnes.genius.main.GEvent e)
throws GPOrbitException
GPParametersAbstractWithAnomaly, to be implemented by its sub-classes.e - processed eventGPOrbitException - in case of any problemprotected void onGEntryRealParams(fr.cnes.genius.main.GEvent e)
throws GPOrbitException
onGEntryRealParams in class GPParametersAbstracte - eventGPOrbitException - if the widget orbital parameters do not represent a valid orbit.public void onPopupListAnomalyType(fr.cnes.genius.main.GEvent e)
throws GPOrbitException
e - eventGPOrbitException - in case that the orbit with the current parameters cannot be definedpublic void onButtonForcePivot()
throws GPOrbitException
GPOrbitException - if the widget orbital parameters do not represent a valid orbit.public void setSavedParams(fr.cnes.sirius.patrius.orbits.orbitalparameters.IOrbitalParameters savedParams)
throws GPOrbitException,
fr.cnes.genius.exception.GArithmeticException
setSavedParams in class GPParametersAbstractsavedParams - the orbital parameters as an IOrbitalParameters patrius object to be set as saved one.GPOrbitException - if the params are invalid:fr.cnes.genius.exception.GArithmeticException - if the params contain NaNs:public void setSavedParams(fr.cnes.sirius.patrius.orbits.orbitalparameters.IOrbitalParameters savedParams,
fr.cnes.sirius.patrius.orbits.PositionAngle anomalyType)
throws GPOrbitException,
fr.cnes.genius.exception.GArithmeticException
savedParams - the orbital parameters as a IOrbitalParameters patrius object to be set as saved one.anomalyType - type of anomaly (TRUE, MEAN or ECCENTRIC)GPOrbitException - if the params are invalid:fr.cnes.genius.exception.GArithmeticException - if the params contain NaNs:public void setSavedParams(double[] savedParams,
fr.cnes.sirius.patrius.orbits.PositionAngle savedAnomalyType)
throws fr.cnes.genius.exception.GArithmeticException
savedParams - the array of parameters to set as saved ones.savedAnomalyType - the type of anomaly/longitude/AoL (TRUE, MEAN or ECCENTRIC) to be set as saved one.fr.cnes.genius.exception.GArithmeticException - if any of the savedParams is NaN.public void setSavedParams(double[] savedParams)
throws fr.cnes.genius.exception.GArithmeticException
setSavedParams in class GPParametersAbstractsavedParams - the saved orbital parameters in the same order as shown in the widget.fr.cnes.genius.exception.GArithmeticException - if any of the savedParams is NaN.public void setDefaultParams(fr.cnes.sirius.patrius.orbits.orbitalparameters.IOrbitalParameters defaultParams)
throws GPOrbitException,
fr.cnes.genius.exception.GArithmeticException
setDefaultParams in class GPParametersAbstractdefaultParams - the orbital parameters as an IOrbitalParameters patrius object to be set as default one.GPOrbitException - if the params are invalid:fr.cnes.genius.exception.GArithmeticException - if the params contain NaNs:public void setDefaultParams(fr.cnes.sirius.patrius.orbits.orbitalparameters.IOrbitalParameters defaultParams,
fr.cnes.sirius.patrius.orbits.PositionAngle anomalyType)
throws GPOrbitException,
fr.cnes.genius.exception.GArithmeticException
defaultParams - the orbital parameters as a IOrbitalParameters patrius object to be set as default one.anomalyType - type of anomaly (TRUE, MEAN or ECCENTRIC)GPOrbitException - if the params are invalid:fr.cnes.genius.exception.GArithmeticException - if the params contain NaNs:public void setDefaultParams(double[] defaultParams,
fr.cnes.sirius.patrius.orbits.PositionAngle defaultAnomalyType)
throws fr.cnes.genius.exception.GArithmeticException
defaultParams - the array of parameters to be set as default ones.defaultAnomalyType - the type of anomaly/longitude/AoL (TRUE, MEAN or ECCENTRIC) to be set as default one.fr.cnes.genius.exception.GArithmeticException - if any of the defaultParams is NaN.public void setDefaultParams(double[] defaultParams)
throws fr.cnes.genius.exception.GArithmeticException
setDefaultParams in class GPParametersAbstractdefaultParams - the default orbital parameters in the same order as shown in the widget.fr.cnes.genius.exception.GArithmeticException - if any of the defaultParams is NaN.public void setParams(double[] params,
fr.cnes.sirius.patrius.orbits.PositionAngle anomalyType)
throws GPOrbitException,
fr.cnes.genius.exception.GArithmeticException
params - the array of parameters to be set.anomalyType - the type of anomaly/longitude/AoL (TRUE, MEAN or ECCENTRIC) to be setGPOrbitException - if the given orbital parameters do not represent a valid orbit.fr.cnes.genius.exception.GArithmeticException - if any of the params is NaN.public void setParams(double[] params)
throws GPOrbitException,
fr.cnes.genius.exception.GArithmeticException
setParams in class GPParametersAbstractparams - the orbital parameters in the same order as shown in the widget.GPOrbitExceptionfr.cnes.genius.exception.GArithmeticException - if any of the params is NaN.public double[] getParams()
getParams in class GPParametersAbstractprotected void setAnomalies(Double trueAnomaly, Double eccentricAnomaly, Double meanAnomaly) throws fr.cnes.genius.exception.GArithmeticException
trueAnomaly - true anomalyeccentricAnomaly - eccentric anomalymeanAnomaly - mean anomalyfr.cnes.genius.exception.GArithmeticException - if one of the anomalies is NaN.public void setConstraint(int labelGap,
int paramsGap)
setConstraint in class GPParametersAbstractlabelGap - left gap from panel border to display the label of the orbital parametersparamsGap - left gap from panel border to display the orbital parameterspublic fr.cnes.genius.main.GComponent getSubComponent(int position)
throws fr.cnes.genius.exception.GComponentException
getSubComponent in class GPParametersAbstractfr.cnes.genius.exception.GComponentExceptionpublic void updateStatus()
updateStatus in class GPParametersAbstractCopyright © 2025. All rights reserved.