|
||||||||||
| 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
public abstract class GPParametersAbstract
Abstract class defining the default methods to be implemented by any class that want to define a type of orbital parameters.
| 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 | |
|---|---|
protected static fr.cnes.genius.unit.GUnit[] |
ANGLE_UNITS
Units for angles available in the widget. |
protected static fr.cnes.genius.unit.GUnit[] |
DISTANCE_UNITS
Units for distance available in the widget. |
protected static fr.cnes.genius.interval.GInterval |
INT_ERR_MNS_INF_TO_ZERO
Validity interval: (-inf, 0). |
protected static fr.cnes.genius.interval.GInterval |
INT_ERR_MNS_ONE_TO_ONE_EXC
Validity interval: (-1, 1). |
protected static fr.cnes.genius.interval.GInterval |
INT_ERR_MNS_ONE_TO_ONE_INC
Validity interval: [-1, 1]. |
protected static fr.cnes.genius.interval.GInterval |
INT_ERR_MNS_SQRT_2_TO_SQRT_2
Validity interval: [-sqrt(2), sqrt(2)]. |
protected static fr.cnes.genius.interval.GInterval |
INT_ERR_ZERO_EX_TO_INF
Validity interval: (0, inf). |
protected static fr.cnes.genius.interval.GInterval |
INT_ERR_ZERO_IN_TO_INF
Validity interval: [0, inf). |
protected static fr.cnes.genius.interval.GInterval |
INT_WARN_MNS_PI_TO_PI
Validity interval: (-inf, (-pi, pi], inf). |
protected static fr.cnes.genius.interval.GInterval |
INT_WARN_ZERO_TO_PI
Validity interval: (-inf, [0, pi), inf). |
protected static double[] |
NULL_PARAMS
Null parameters (except Mu) associated to null orbits or empty constructor. |
protected static fr.cnes.genius.unit.GUnit[] |
VELOCITY_UNITS
Units for speed available in the widget. |
| Fields inherited from class fr.cnes.genius.main.GComponent |
|---|
NAME_ATTRIBUTE |
| Constructor Summary | |
|---|---|
GPParametersAbstract(String widgetId,
String name,
String label)
Constructor. |
|
| Method Summary | |
|---|---|
protected abstract 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 |
aditionalActionsBefore1(fr.cnes.genius.main.GEvent e)
Additional actions to be performed by the before() method of class GPParametersAbstract, to be
implemented by its sub-classes. |
void |
after(fr.cnes.genius.main.GEvent e)
|
void |
attachCopyPasteMenu(String label,
fr.cnes.genius.main.GComponent.CopyPasteOperation... operationList)
|
void |
before(fr.cnes.genius.main.GEvent e)
|
protected abstract fr.cnes.genius.interval.GIntervalAbstract.GStatus |
checkGlobalCoherence(fr.cnes.genius.interval.GIntervalAbstract.GStatus status)
Checks if the the global coherence conditions are fulfilled by the parameters. |
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 . |
protected double[] |
copyNullParams()
Initialize the array of orbital parameters to the null parameters defined by NULL_PARAMS. |
void |
display()
|
void |
generic()
|
fr.cnes.genius.highLevel.GEntryReal |
getGEntryRealMu()
Getter for the GEntryReal defining the gravitational constant of the central body. |
fr.cnes.genius.highLevel.GLabelWithIndicator |
getGLabel()
Getter for the label of the set of cartesian parameters. |
String |
getName()
Getter for the name of the set of orbital parameters. |
protected ArrayList<fr.cnes.genius.highLevel.GEntryReal> |
getParametersGEntryRealsList()
Generic getter for the list of GEntryReals corresponding to the orbital parameters. |
double[] |
getParams()
Gets the orbital parameters specified in the widget. |
abstract org.orekit.orbits.orbitalparameters.IOrbitalParameters |
getPatriusObject()
Returns the PATRIUS object associated to a GENOPUS widget. |
fr.cnes.genius.main.GComponent |
getSubComponent(int position)
|
protected abstract fr.cnes.genius.main.GItemTypeInterface |
getXMLType()
Generic getter for the set of orbital parameters item type in the XML configuration file. |
protected boolean |
handleOrbitCopyPasteEvent(fr.cnes.genius.main.GEvent event)
Handles the orbit copy-paste event if possible. |
boolean |
isBlockedConversions()
Getter for the blocked conversions flag. |
boolean |
isEnabled()
|
boolean |
isModified()
|
boolean |
isParamsNull()
Check whether the orbital parameters defined in the widget are null or not. |
protected void |
onGEntryRealParams(fr.cnes.genius.main.GEvent e)
Actions when the event comes from any of the first 6 parameters GEntryReals. |
void |
read()
|
void |
setBlockedConversions(boolean blockedConversions)
Setter for the blocked conversions flag. |
void |
setConstraint(int labelGap,
int paramsGap)
Setter for the constraints of the orbital parameters. |
protected void |
setDefaultConstraint()
Setter for the default constraint of the set of parameters. |
void |
setDefaultParams(double[] defaultParams)
Sets the default orbital parameters. |
void |
setDefaultParams(org.orekit.orbits.orbitalparameters.IOrbitalParameters defaultParams)
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(org.orekit.orbits.orbitalparameters.IOrbitalParameters params)
Sets the specified orbital parameters in the widget. |
void |
setSavedParams(double[] savedParams)
Sets the saved orbital parameters. |
void |
setSavedParams(org.orekit.orbits.orbitalparameters.IOrbitalParameters savedParams)
Sets the saved orbital parameters. |
void |
updateCondensedStatus(fr.cnes.genius.main.GCondensedStatus condensedStatus)
|
void |
updateIsModifiedIndicator()
|
void |
updateStatus()
Update the status of the orbital parameters. |
void |
write()
|
| 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 |
| Field Detail |
|---|
protected static final double[] NULL_PARAMS
protected static final fr.cnes.genius.interval.GInterval INT_WARN_MNS_PI_TO_PI
protected static final fr.cnes.genius.interval.GInterval INT_WARN_ZERO_TO_PI
protected static final fr.cnes.genius.interval.GInterval INT_ERR_ZERO_EX_TO_INF
protected static final fr.cnes.genius.interval.GInterval INT_ERR_ZERO_IN_TO_INF
protected static final fr.cnes.genius.interval.GInterval INT_ERR_MNS_INF_TO_ZERO
protected static final fr.cnes.genius.interval.GInterval INT_ERR_MNS_ONE_TO_ONE_EXC
protected static final fr.cnes.genius.interval.GInterval INT_ERR_MNS_ONE_TO_ONE_INC
protected static final fr.cnes.genius.interval.GInterval INT_ERR_MNS_SQRT_2_TO_SQRT_2
protected static final fr.cnes.genius.unit.GUnit[] DISTANCE_UNITS
protected static final fr.cnes.genius.unit.GUnit[] VELOCITY_UNITS
protected static final fr.cnes.genius.unit.GUnit[] ANGLE_UNITS
| Constructor Detail |
|---|
public GPParametersAbstract(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 String getName()
getName in class fr.cnes.genius.main.GComponentpublic fr.cnes.genius.highLevel.GLabelWithIndicator getGLabel()
public double[] getParams()
public void setParams(double[] params)
throws GPOrbitException
params - the orbital parameters in the same order as shown in the widget.
GPOrbitException - if the given orbital parameters do not represent a valid orbit.
public void setParams(org.orekit.orbits.orbitalparameters.IOrbitalParameters params)
throws GPOrbitException
params - the orbital parameters as an IOrbitalParameters patrius object.
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
params - 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 setDefaultParams(org.orekit.orbits.orbitalparameters.IOrbitalParameters defaultParams)
throws GPOrbitException
defaultParams - the default orbital parameters.
GPOrbitException - in case of problem computing the orbital parameters valuespublic void setDefaultParams(double[] defaultParams)
defaultParams - the default orbital parameters in the same order as shown in the widget.public void setSavedParams(double[] savedParams)
savedParams - the saved orbital parameters in the same order as shown in the widget.
public void setSavedParams(org.orekit.orbits.orbitalparameters.IOrbitalParameters savedParams)
throws GPOrbitException
savedParams - the saved orbital parameters.
GPOrbitException - in case of problem computing the orbital parameters valuesprotected double[] copyNullParams()
NULL_PARAMS.
public boolean isParamsNull()
public boolean isEnabled()
isEnabled in class fr.cnes.genius.main.GComponentpublic void setDisplayIsModifiedIndicatorAll(fr.cnes.genius.main.GComponent.DisplayIndicatorStatus displayIndicatorStatus)
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 isBlockedConversions()
public void setBlockedConversions(boolean blockedConversions)
blockedConversions - the flag to be set
public void generic()
throws fr.cnes.genius.exception.GException
generic in class fr.cnes.genius.lowLevel.GContainerfr.cnes.genius.exception.GException
public void display()
throws fr.cnes.genius.exception.GException
display in interface fr.cnes.genius.main.GDisplayfr.cnes.genius.exception.GExceptionpublic void updateStatus()
protected abstract fr.cnes.genius.interval.GIntervalAbstract.GStatus checkGlobalCoherence(fr.cnes.genius.interval.GIntervalAbstract.GStatus status)
status - initial status.
public void attachCopyPasteMenu(String label,
fr.cnes.genius.main.GComponent.CopyPasteOperation... operationList)
attachCopyPasteMenu in class fr.cnes.genius.main.GComponent
protected boolean handleOrbitCopyPasteEvent(fr.cnes.genius.main.GEvent event)
throws GPOrbitException
event - to be processed.
GPOrbitException - in case the copy-paste operation raises an exception.
public void clear()
throws fr.cnes.genius.exception.GException
clear in interface fr.cnes.genius.main.GClearfr.cnes.genius.exception.GExceptionpublic fr.cnes.genius.highLevel.GEntryReal getGEntryRealMu()
public void setConstraint(int labelGap,
int paramsGap)
labelGap - left gap from panel border to display the label of the orbital parametersparamsGap - left gap from panel border to display the orbital parametersprotected void setDefaultConstraint()
public void updateIsModifiedIndicator()
updateIsModifiedIndicator in class fr.cnes.genius.main.GComponentprotected ArrayList<fr.cnes.genius.highLevel.GEntryReal> getParametersGEntryRealsList()
public void before(fr.cnes.genius.main.GEvent e)
throws GPOrbitException
before in interface fr.cnes.genius.main.GListenerGPOrbitException
protected abstract void aditionalActionsBefore1(fr.cnes.genius.main.GEvent e)
throws GPOrbitException
GPParametersAbstract, to be
implemented by its sub-classes.
e - processed event
GPOrbitException - if the previous parameters are not valid
public void after(fr.cnes.genius.main.GEvent e)
throws GPOrbitException
after in interface fr.cnes.genius.main.GListenerGPOrbitException
protected abstract void aditionalActionsAfter1(fr.cnes.genius.main.GEvent e)
throws GPOrbitException
GPParametersAbstract, 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
e - event
GPOrbitException - if the widget orbital parameters do not represent a valid orbit.public boolean isModified()
isModified in class fr.cnes.genius.main.GComponentpublic void setEnabled(boolean b)
setEnabled in class fr.cnes.genius.main.GComponentprotected abstract fr.cnes.genius.main.GItemTypeInterface getXMLType()
public void write()
throws fr.cnes.genius.exception.GException
write in interface fr.cnes.genius.main.GReadWritefr.cnes.genius.exception.GException
public void read()
throws fr.cnes.genius.exception.GException
read in interface fr.cnes.genius.main.GReadWritefr.cnes.genius.exception.GException
public abstract org.orekit.orbits.orbitalparameters.IOrbitalParameters getPatriusObject()
throws GPOrbitException
getPatriusObject in interface GPPatrius<org.orekit.orbits.orbitalparameters.IOrbitalParameters>GPOrbitException - if the parameters cannot be created
public fr.cnes.genius.main.GComponent getSubComponent(int position)
throws fr.cnes.genius.exception.GComponentException
getSubComponent in class fr.cnes.genius.main.GComponentfr.cnes.genius.exception.GComponentExceptionpublic void updateCondensedStatus(fr.cnes.genius.main.GCondensedStatus condensedStatus)
updateCondensedStatus in interface fr.cnes.genius.main.GCondensedStatusInterface
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||