|
||||||||||
| 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.orbits.GPParametersAbstract
fr.cnes.genopus.orbits.GPParametersAbstractWithAnomaly
public abstract class GPParametersAbstractWithAnomaly
Abstract class representing any kind of orbital parameters that includes anomaly, longitude or AoL as one of them. The particularity of this class is that since the type of anomaly/longitude/AoL is eligible by means of a popup list, the concept of Pivot is required to distinguish among the visible value and the value in memory.
| Nested Class Summary |
|---|
| 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.orbits.GPParametersAbstract |
|---|
ANGLE_UNITS, DISTANCE_UNITS, INT_ERR_MNS_INF_TO_ZERO, INT_ERR_MNS_ONE_TO_ONE_EXC, INT_ERR_MNS_ONE_TO_ONE_INC, INT_ERR_MNS_SQRT_2_TO_SQRT_2, 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 |
| Fields inherited from class fr.cnes.genius.main.GComponent |
|---|
NAME_ATTRIBUTE |
| Constructor Summary | |
|---|---|
GPParametersAbstractWithAnomaly(String widgetId,
String name,
String label)
Constructor. |
|
| Method Summary | |
|---|---|
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()
|
protected abstract double[] |
computeParamsArray(org.orekit.orbits.orbitalparameters.IOrbitalParameters params)
Computes the orbital parameters array in the same order as shown in the widget . |
void |
display()
|
void |
generic()
|
protected abstract fr.cnes.genius.highLevel.GEntryReal |
getAnomalyEntryReal()
Generic getter for the GEntryReal corresponding to the anomaly/longitude/AoL. |
protected org.orekit.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. |
org.orekit.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(org.orekit.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,
org.orekit.orbits.PositionAngle defaultAnomalyType)
Sets the default orbital parameters. |
void |
setDefaultParams(org.orekit.orbits.orbitalparameters.IOrbitalParameters defaultParams)
Sets the default orbital parameters. |
void |
setDefaultParams(org.orekit.orbits.orbitalparameters.IOrbitalParameters defaultParams,
org.orekit.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,
org.orekit.orbits.PositionAngle anomalyType)
Setter for the widget parameters. |
void |
setParams(org.orekit.orbits.orbitalparameters.IOrbitalParameters params)
Sets the specified orbital parameters in the widget. |
void |
setParams(org.orekit.orbits.orbitalparameters.IOrbitalParameters params,
org.orekit.orbits.PositionAngle anomalyType)
Sets the specified orbital parameters in the widget. |
void |
setSavedParams(double[] savedParams)
Sets the saved orbital parameters. |
void |
setSavedParams(double[] savedParams,
org.orekit.orbits.PositionAngle savedAnomalyType)
Setter for the saved parameters. |
void |
setSavedParams(org.orekit.orbits.orbitalparameters.IOrbitalParameters savedParams)
Sets the saved orbital parameters. |
void |
setSavedParams(org.orekit.orbits.orbitalparameters.IOrbitalParameters savedParams,
org.orekit.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()
|
| Methods inherited from class fr.cnes.genopus.orbits.GPParametersAbstract |
|---|
aditionalActionsBefore1, after, attachCopyPasteMenu, before, checkGlobalCoherence, copyNullParams, getGEntryRealMu, getGLabel, getName, getParametersGEntryRealsList, getPatriusObject, getXMLType, handleOrbitCopyPasteEvent, isBlockedConversions, isEnabled, isParamsNull, setBlockedConversions, setDefaultConstraint, updateCondensedStatus |
| Methods inherited from class fr.cnes.genius.lowLevel.GContainer |
|---|
put |
| Methods inherited from class fr.cnes.genius.main.GComponent |
|---|
activateConstraintsByType, attachCopyPasteMenu, beginOfElement, beginOfElement, beginOfElement, beginOfElement, composeWidgetId, doDisplay, endOfElement, getCommentInConfigFile, getComponent, getConstraint, getCurrentOperation, getDisplayIndicatorStatus, getDisplayIsModifiedIndicator, getElement, getGPanel, getGParent, getGUnitInConfigFile, getInnerDescendantConstraint, 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, setWidgetId, 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 |
| Constructor Detail |
|---|
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 parameters| Method Detail |
|---|
public void setParams(org.orekit.orbits.orbitalparameters.IOrbitalParameters params)
throws GPOrbitException
setParams in class GPParametersAbstractparams - the orbital parameters as an IOrbitalParameters patrius object.
GPOrbitException - if params is an instance of CartesianParameters and they represent an hyperbolic orbit
(Patrius limitation)
public void setParams(org.orekit.orbits.orbitalparameters.IOrbitalParameters params,
org.orekit.orbits.PositionAngle anomalyType)
throws GPOrbitException
params - the orbital parameters as a IOrbitalParameters patrius object.anomalyType - type of anomaly (TRUE, MEAN or ECCENTRIC)
GPOrbitException - if params is an instance of CartesianParameters and they represent an hyperbolic orbit
(Patrius limitation)
protected abstract double[] computeParamsArray(org.orekit.orbits.orbitalparameters.IOrbitalParameters params)
throws GPOrbitException
computeParamsArray in class GPParametersAbstractparams - the orbital parameters as a IOrbitalParameters patrius object.
GPOrbitException - if params is an instance of CartesianParameters and they represent an hyperbolic orbit
(Patrius limitation)
public void generic()
throws fr.cnes.genius.exception.GException
generic in class GPParametersAbstractfr.cnes.genius.exception.GException
public void display()
throws fr.cnes.genius.exception.GException
display in interface fr.cnes.genius.main.GDisplaydisplay in class GPParametersAbstractfr.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 org.orekit.orbits.PositionAngle getCurrentAnomalyType()
protected void setCurrentAnomalyType(org.orekit.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 org.orekit.orbits.PositionAngle getPivotAnomalyType()
public 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 GPParametersAbstract
public void write()
throws fr.cnes.genius.exception.GException
write in interface fr.cnes.genius.main.GReadWritewrite in class GPParametersAbstractfr.cnes.genius.exception.GException
public void read()
throws fr.cnes.genius.exception.GException
read in interface fr.cnes.genius.main.GReadWriteread in class GPParametersAbstractfr.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 GPParametersAbstracte - processed event
GPOrbitException - in case of any problem
protected abstract void aditionalActionsAfter2(fr.cnes.genius.main.GEvent e)
throws GPOrbitException
GPParametersAbstractWithAnomaly, to be implemented by its sub-classes.
e - processed event
GPOrbitException - in case of any problem
protected void onGEntryRealParams(fr.cnes.genius.main.GEvent e)
throws GPOrbitException
onGEntryRealParams in class GPParametersAbstracte - event
GPOrbitException - 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(org.orekit.orbits.orbitalparameters.IOrbitalParameters savedParams)
throws GPOrbitException
setSavedParams in class GPParametersAbstractsavedParams - the orbital parameters as an IOrbitalParameters patrius object to be set as saved one.
GPOrbitException - if params is an instance of CartesianParameters and they represent an hyperbolic orbit
(Patrius limitation)
public void setSavedParams(org.orekit.orbits.orbitalparameters.IOrbitalParameters savedParams,
org.orekit.orbits.PositionAngle anomalyType)
throws GPOrbitException
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 params is an instance of CartesianParameters and they represent an hyperbolic orbit
(Patrius limitation)
public void setSavedParams(double[] savedParams,
org.orekit.orbits.PositionAngle savedAnomalyType)
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.public void setSavedParams(double[] savedParams)
setSavedParams in class GPParametersAbstractsavedParams - the saved orbital parameters in the same order as shown in the widget.
public void setDefaultParams(org.orekit.orbits.orbitalparameters.IOrbitalParameters defaultParams)
throws GPOrbitException
setDefaultParams in class GPParametersAbstractdefaultParams - the orbital parameters as an IOrbitalParameters patrius object to be set as default one.
GPOrbitException - if params is an instance of CartesianParameters and they represent an hyperbolic orbit
(Patrius limitation)
public void setDefaultParams(org.orekit.orbits.orbitalparameters.IOrbitalParameters defaultParams,
org.orekit.orbits.PositionAngle anomalyType)
throws GPOrbitException
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 params is an instance of CartesianParameters and they represent an hyperbolic orbit
(Patrius limitation)
public void setDefaultParams(double[] defaultParams,
org.orekit.orbits.PositionAngle defaultAnomalyType)
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.public void setDefaultParams(double[] defaultParams)
setDefaultParams in class GPParametersAbstractdefaultParams - the default orbital parameters in the same order as shown in the widget.
public void setParams(double[] params,
org.orekit.orbits.PositionAngle anomalyType)
throws GPOrbitException
params - the array of parameters to be set.anomalyType - the type of anomaly/longitude/AoL (TRUE, MEAN or ECCENTRIC) to be set
GPOrbitException - if the given orbital parameters do not represent a valid orbit.
public void setParams(double[] params)
throws GPOrbitException
setParams in class GPParametersAbstractparams - the orbital parameters in the same order as shown in the widget.
GPOrbitExceptionpublic double[] getParams()
getParams in class GPParametersAbstract
protected void setAnomalies(Double trueAnomaly,
Double eccentricAnomaly,
Double meanAnomaly)
trueAnomaly - true anomalyeccentricAnomaly - eccentric anomalymeanAnomaly - mean anomaly
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 parameters
public 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 GPParametersAbstract
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||