public class GPManeuverSelector extends fr.cnes.genius.lowLevel.GPanel implements fr.cnes.genius.main.GReadWrite, Cloneable, fr.cnes.genius.main.GCondensedStatusInterface, GPPatrius<fr.cnes.sirius.patrius.forces.maneuvers.Maneuver>, fr.cnes.genius.main.GClear, fr.cnes.genius.main.GListener
Modifier and Type | Class and Description |
---|---|
static class |
GPManeuverSelector.GPManType
Available types of maneuvers.
|
Constructor and Description |
---|
GPManeuverSelector()
Creates a new instance.
|
GPManeuverSelector(String widgetId,
String label)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
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) |
void |
clear() |
GPManeuverSelector |
clone() |
void |
display() |
void |
generic() |
fr.cnes.genius.highLevel.GComboBoxWithLabel |
getGComboBoxManType()
Getter for the GComboBoxWithLabel of the type of maneuver.
|
fr.cnes.genius.highLevel.GLabelWithIndicator |
getGLabel()
Getter for the GLabel of the widget.
|
GPConstantManeuver |
getGPConstantManeuver()
Get continuous maneuver widget.
|
GPImpulseManeuver |
getGPImpulseManeuver()
Get impulsive maneuver widget.
|
String |
getManName()
Get maneuver name.
|
GPManeuverSelector.GPManType |
getManType()
Get maneuver type.
|
fr.cnes.sirius.patrius.forces.maneuvers.Maneuver |
getPatriusObject()
Get custom maneuver.
|
fr.cnes.genius.main.GComponent |
getSubComponent(int position) |
boolean |
isEnabled() |
boolean |
isModified() |
void |
read() |
static void |
setCount(int count)
Setter for the maneuvers count.
|
void |
setDefaultConstraints()
Setter for the default constraint of the custom maneuver.
|
void |
setDefaultManeuver(fr.cnes.sirius.patrius.forces.maneuvers.Maneuver maneuver)
Setter for the default maneuver.
|
void |
setEnabled(boolean b) |
void |
setEnginesList(ArrayList<fr.cnes.sirius.patrius.assembly.properties.PropulsiveProperty> engineList)
Update contents of comboboxes for engines with a given list of engines.
|
void |
setManeuver(fr.cnes.sirius.patrius.forces.maneuvers.Maneuver maneuver)
Setter for the maneuver.
|
void |
setManName(String manName)
Set maneuver name.
|
void |
setMassProvider(fr.cnes.sirius.patrius.propagation.MassProvider massProvider)
Setter for the mass provider.
|
void |
setSavedManeuver(fr.cnes.sirius.patrius.forces.maneuvers.Maneuver maneuver)
Setter for the saved maneuver.
|
void |
setTanksList(ArrayList<fr.cnes.sirius.patrius.assembly.properties.TankProperty> tankList)
Update contents of comboboxes for tanks with a given list of tanks.
|
void |
setWidgetId(String widgetId) |
void |
updateCondensedStatus(fr.cnes.genius.main.GCondensedStatus condensedStatus) |
void |
updateIsModifiedIndicator() |
void |
write() |
clearConstraint, getClassConstraint, getComponent, getHorizontalScroll, getInnerDescendantClassConstraint, getJPanel, getJScrollPane, getLayoutConstraints, getStringClassConstraint, getVerticalScroll, mainClear, mainDisplay, put, setClassConstraint, setColumnConstraints, setConstraint, setHorizontalScroll, setInnerDescendantClassConstraint, setLayoutConstraints, setMargins, setPanelConstraints, setPreferredSize, setRowConstraints, setVerticalScroll
activateConstraintsByType, attachCopyPasteMenu, beginOfElement, beginOfElement, beginOfElement, beginOfElement, clearAllInnerDescendantConstraint, clearInnerDescendantContraint, composeWidgetId, doDisplay, endOfElement, getCommentInConfigFile, getConstraint, getCurrentOperation, getDisplayIndicatorStatus, getDisplayIsModifiedIndicator, getElement, getGClassName, getGPanel, getGParent, getGUnitInConfigFile, getInnerDescendantConstraint, getName, getNameInConfigFile, getOperationSaveValue, getPathInConfigFile, getSimpleWidgetId, getStatus, getStringConstraint, getWidgetId, handleCopyPasteEvent, handleCopyPasteEvent, handleProcessEventException, isCopyPasteEvent, isForcedStatus, launchInvalidPositionException, parseSimpleConstraint, processGEvent, setBusyCursor, setCommentInConfigFile, setCopyPasteMenuEnabled, setCurrentOperation, setDataForConstraintsByType, setDisplayIsModifiedIndicator, setElement, setForcedStatus, setGPanel, setGParent, setGUnitInConfigFile, setInnerDescendantConstraint, setNameAndCommentInConfigFile, setNameInConfigFile, setStatus, setStringConstraint, setToolTipText, setWidth, writeCollection, writeCollection, writeCollection, writeCollection, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem
public void setDefaultConstraints()
setDefaultConstraints
in class fr.cnes.genius.lowLevel.GPanel
public static void setCount(int count)
count
- the maneuvers count.public fr.cnes.genius.highLevel.GLabelWithIndicator getGLabel()
public fr.cnes.genius.highLevel.GComboBoxWithLabel getGComboBoxManType()
public GPImpulseManeuver getGPImpulseManeuver()
public GPConstantManeuver getGPConstantManeuver()
public boolean isModified()
isModified
in class fr.cnes.genius.main.GComponent
public void before(fr.cnes.genius.main.GEvent e) throws GPEventException
before
in interface fr.cnes.genius.main.GListener
GPEventException
public void after(fr.cnes.genius.main.GEvent e) throws GPEventException
after
in interface fr.cnes.genius.main.GListener
GPEventException
public void generic() throws fr.cnes.genius.exception.GException
generic
in class fr.cnes.genius.lowLevel.GPanel
fr.cnes.genius.exception.GException
public void display() throws fr.cnes.genius.exception.GException
display
in interface fr.cnes.genius.main.GDisplay
fr.cnes.genius.exception.GException
public void read() throws fr.cnes.genius.exception.GException
read
in interface fr.cnes.genius.main.GReadWrite
fr.cnes.genius.exception.GException
public void write() throws fr.cnes.genius.exception.GException
write
in interface fr.cnes.genius.main.GReadWrite
fr.cnes.genius.exception.GException
public GPManeuverSelector.GPManType getManType()
public fr.cnes.sirius.patrius.forces.maneuvers.Maneuver getPatriusObject() throws GPManeuverException
getPatriusObject
in interface GPPatrius<fr.cnes.sirius.patrius.forces.maneuvers.Maneuver>
GPManeuverException
- if selected engine or fuel tank is not correctly definedpublic GPManeuverSelector clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public void updateCondensedStatus(fr.cnes.genius.main.GCondensedStatus condensedStatus)
updateCondensedStatus
in interface fr.cnes.genius.main.GCondensedStatusInterface
public fr.cnes.genius.main.GComponent getSubComponent(int position) throws fr.cnes.genius.exception.GComponentException
getSubComponent
in class fr.cnes.genius.main.GComponent
fr.cnes.genius.exception.GComponentException
public void setWidgetId(String widgetId)
setWidgetId
in class fr.cnes.genius.main.GComponent
public void setMassProvider(fr.cnes.sirius.patrius.propagation.MassProvider massProvider)
massProvider
- the mass providerpublic String getManName()
public void setManName(String manName)
manName
- the maneuver namepublic void setEnginesList(ArrayList<fr.cnes.sirius.patrius.assembly.properties.PropulsiveProperty> engineList)
engineList
- list of enginespublic void setTanksList(ArrayList<fr.cnes.sirius.patrius.assembly.properties.TankProperty> tankList)
tankList
- list of tankspublic void setManeuver(fr.cnes.sirius.patrius.forces.maneuvers.Maneuver maneuver) throws GPManeuverException, fr.cnes.genius.exception.GArithmeticException
maneuver
- the maneuverGPManeuverException
- if the type if not supported of if there is any problem setting
the maneuver.fr.cnes.genius.exception.GArithmeticException
- if maneuver event detectors or deltaV contain NaNs or if delta V
is (0,0,0).public void setDefaultManeuver(fr.cnes.sirius.patrius.forces.maneuvers.Maneuver maneuver) throws GPManeuverException, fr.cnes.genius.exception.GArithmeticException
maneuver
- the maneuverGPManeuverException
- if the type if not supported of if there is any problem setting
the maneuver.fr.cnes.genius.exception.GArithmeticException
- if maneuver event detectors or deltaV contain NaNs or if delta V
is (0,0,0).public void setSavedManeuver(fr.cnes.sirius.patrius.forces.maneuvers.Maneuver maneuver) throws GPManeuverException, fr.cnes.genius.exception.GArithmeticException
maneuver
- the maneuverGPManeuverException
- if the type if not supported of if there is any problem setting
the maneuver.fr.cnes.genius.exception.GArithmeticException
- if maneuver event detectors or deltaV contain NaNs or if delta V
is (0,0,0).public void setEnabled(boolean b)
setEnabled
in class fr.cnes.genius.main.GComponent
public void attachCopyPasteMenu(String label, fr.cnes.genius.main.GComponent.CopyPasteOperation... operationList)
attachCopyPasteMenu
in class fr.cnes.genius.main.GComponent
public void updateIsModifiedIndicator()
updateIsModifiedIndicator
in class fr.cnes.genius.main.GComponent
public boolean isEnabled()
isEnabled
in class fr.cnes.genius.main.GComponent
public void clear() throws fr.cnes.genius.exception.GException
clear
in interface fr.cnes.genius.main.GClear
fr.cnes.genius.exception.GException
Copyright © 2018. All rights reserved.