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_WARN_MNS_PI_TO_PI, INT_WARN_ZERO_TO_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 |
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 |
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.
|
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, isEnabled, isParamsNull, modMinusPiPlusPi, setBlockedConversions, setDefaultConstraint, updateCondensedStatus
activateConstraintsByType, 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, parseSimpleConstraint, processGEvent, setBusyCursor, setCommentInConfigFile, setConstraint, setCopyPasteMenuEnabled, setCurrentOperation, setDataForConstraintsByType, setDefaultConstraints, setDisplayIsModifiedIndicator, setElement, setForcedStatus, setGPanel, setGParent, setGUnitInConfigFile, setInnerDescendantConstraint, setNameAndCommentInConfigFile, setNameInConfigFile, setStatus, setStringConstraint, setToolTipText, setWidgetId, setWidth, writeCollection, writeCollection, writeCollection, writeCollection, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem
public 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 GPParametersAbstract
params
- 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 GPParametersAbstract
fr.cnes.genius.exception.GException
public void display() throws fr.cnes.genius.exception.GException
display
in interface fr.cnes.genius.main.GDisplay
display
in class GPParametersAbstract
fr.cnes.genius.exception.GException
protected 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 setEnabled(boolean b)
setEnabled
in class GPParametersAbstract
protected abstract fr.cnes.genius.highLevel.GEntryReal getAnomalyEntryReal()
public abstract fr.cnes.genius.highLevel.GPopupListWithLabel getGPopupList()
public void updateIsModifiedIndicator()
updateIsModifiedIndicator
in class GPParametersAbstract
public void setDisplayIsModifiedIndicatorAll(fr.cnes.genius.main.GComponent.DisplayIndicatorStatus displayIndicatorStatus)
setDisplayIsModifiedIndicatorAll
in class GPParametersAbstract
displayIndicatorStatus
- 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.GClear
clear
in class GPParametersAbstract
fr.cnes.genius.exception.GException
public boolean isModified()
isModified
in class GPParametersAbstract
public void write() throws fr.cnes.genius.exception.GException
write
in interface fr.cnes.genius.main.GReadWrite
write
in class GPParametersAbstract
fr.cnes.genius.exception.GException
public void read() throws fr.cnes.genius.exception.GException
read
in interface fr.cnes.genius.main.GReadWrite
read
in class GPParametersAbstract
fr.cnes.genius.exception.GException
protected void aditionalActionsAfter1(fr.cnes.genius.main.GEvent e) throws GPOrbitException
GPParametersAbstract
, to be
implemented by its sub-classes.aditionalActionsAfter1
in class GPParametersAbstract
e
- 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 GPParametersAbstract
e
- eventGPOrbitException
- if the widget orbital parameters do not represent a valid orbit.public 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 GPParametersAbstract
savedParams
- 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 GPParametersAbstract
savedParams
- 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 GPParametersAbstract
defaultParams
- 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 GPParametersAbstract
defaultParams
- 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 GPParametersAbstract
params
- the orbital parameters in the same order as shown in the widget.GPOrbitException
fr.cnes.genius.exception.GArithmeticException
- if any of the params is NaN.public double[] getParams()
getParams
in class GPParametersAbstract
protected 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 GPParametersAbstract
labelGap
- 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 GPParametersAbstract
fr.cnes.genius.exception.GComponentException
public void updateStatus()
updateStatus
in class GPParametersAbstract
Copyright © 2018. All rights reserved.