public abstract class GPManeuverAbstract extends fr.cnes.genius.lowLevel.GContainer implements fr.cnes.genius.main.GReadWrite, fr.cnes.genius.main.GDisplay, fr.cnes.genius.main.GListener, fr.cnes.genius.main.GCondensedStatusInterface, fr.cnes.genius.main.GClear, Cloneable
Modifier and Type | Field and Description |
---|---|
protected static String |
ENGINE_STR |
protected static String |
FUEL_TANK_STR |
protected static String |
NOT_AVAILABLE_ERROR |
Constructor and Description |
---|
GPManeuverAbstract()
Creates a new instance.
|
GPManeuverAbstract(String widgetId)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
attachCopyPasteMenu(String label,
fr.cnes.genius.main.GComponent.CopyPasteOperation... operationList) |
protected void |
checkCoherence()
Checks that the mass provider is not null, and that there is an engine and a fuel tank
selected.
|
abstract void |
display() |
abstract void |
generic() |
fr.cnes.sirius.patrius.assembly.properties.PropulsiveProperty |
getEngine()
Getter for the Engine of the widget.
|
String |
getEngineSelectedName()
Get engine selected name.
|
protected int |
getEngineSelectedValue()
Get engine selected value.
|
fr.cnes.sirius.patrius.assembly.properties.TankProperty |
getFuelTank()
Getter for the FuelTank of the widget.
|
fr.cnes.genius.highLevel.GObjectComboBoxWithLabel<fr.cnes.sirius.patrius.assembly.properties.PropulsiveProperty> |
getGComboBoxEngines() |
fr.cnes.genius.highLevel.GObjectComboBoxWithLabel<fr.cnes.sirius.patrius.assembly.properties.TankProperty> |
getGComboBoxTanks() |
fr.cnes.genius.highLevel.GEntryString |
getGEntryStringManName() |
fr.cnes.genius.highLevel.GLabelWithIndicator |
getGLabel()
Getter for the GLabel of the widget.
|
String |
getManName()
Get maneuver name.
|
fr.cnes.sirius.patrius.propagation.MassProvider |
getMassProvider()
Getter for the mass provider.
|
String |
getTankSelectedName()
Get tank selected name.
|
protected int |
getTankSelectedValue()
Get tank selected value.
|
static <T> ArrayList<T> |
listFromArray(T[] array)
Method to convert an array into an ArrayList.
|
void |
setDefaultConstraints()
Setter for the default constraint of the custom maneuver.
|
void |
setDefaultEngine(fr.cnes.sirius.patrius.assembly.properties.PropulsiveProperty engine)
Set a default engine to the maneuver.
|
void |
setDefaultTank(fr.cnes.sirius.patrius.assembly.properties.TankProperty tank)
Set a default fuel tank to the maneuver.
|
void |
setEngine(fr.cnes.sirius.patrius.assembly.properties.PropulsiveProperty engine)
Set a engine to the maneuver.
|
void |
setEnginesList(ArrayList<fr.cnes.sirius.patrius.assembly.properties.PropulsiveProperty> engineList)
Update contents of comboboxes for engines with a given list of engines.
|
void |
setGLabel(String label)
Setter for the GLabel of the widget.
|
void |
setManName(String manName)
Set maneuver name.
|
void |
setMassProvider(fr.cnes.sirius.patrius.propagation.MassProvider massProvider)
Setter for the mass provider.
|
void |
setTank(fr.cnes.sirius.patrius.assembly.properties.TankProperty tank)
Set a fuel tank to the 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() |
activateConstraintsByType, attachCopyPasteMenu, beginOfElement, beginOfElement, beginOfElement, beginOfElement, clearAllInnerDescendantConstraint, clearConstraint, clearInnerDescendantContraint, composeWidgetId, doDisplay, endOfElement, getCommentInConfigFile, getComponent, getConstraint, getCurrentOperation, getDisplayIndicatorStatus, getDisplayIsModifiedIndicator, getElement, getGClassName, getGPanel, getGParent, getGUnitInConfigFile, getInnerDescendantConstraint, getName, getNameInConfigFile, getOperationSaveValue, getPathInConfigFile, getSimpleWidgetId, getStatus, getStringConstraint, getSubComponent, getWidgetId, handleCopyPasteEvent, handleCopyPasteEvent, handleProcessEventException, isCopyPasteEvent, isEnabled, isForcedStatus, isModified, launchInvalidPositionException, parseSimpleConstraint, processGEvent, setBusyCursor, setCommentInConfigFile, setConstraint, setCopyPasteMenuEnabled, setCurrentOperation, setDataForConstraintsByType, setDisplayIsModifiedIndicator, setElement, setEnabled, setForcedStatus, setGPanel, setGParent, setGUnitInConfigFile, setInnerDescendantConstraint, setNameAndCommentInConfigFile, setNameInConfigFile, setStatus, setStringConstraint, setToolTipText, setWidth, writeCollection, writeCollection, writeCollection, writeCollection, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem
protected static final String NOT_AVAILABLE_ERROR
protected static final String FUEL_TANK_STR
protected static final String ENGINE_STR
public GPManeuverAbstract()
public GPManeuverAbstract(String widgetId)
widgetId
- widgetIdpublic void setDefaultConstraints()
setDefaultConstraints
in class fr.cnes.genius.main.GComponent
public void setWidgetId(String widgetId)
setWidgetId
in class fr.cnes.genius.main.GComponent
public fr.cnes.genius.highLevel.GEntryString getGEntryStringManName()
public fr.cnes.genius.highLevel.GObjectComboBoxWithLabel<fr.cnes.sirius.patrius.assembly.properties.PropulsiveProperty> getGComboBoxEngines()
public fr.cnes.genius.highLevel.GObjectComboBoxWithLabel<fr.cnes.sirius.patrius.assembly.properties.TankProperty> getGComboBoxTanks()
public String getEngineSelectedName()
public String getTankSelectedName()
protected int getEngineSelectedValue()
protected int getTankSelectedValue()
public String getManName()
public void setManName(String manName)
manName
- the maneuver namepublic abstract void display() throws fr.cnes.genius.exception.GException
display
in interface fr.cnes.genius.main.GDisplay
fr.cnes.genius.exception.GException
public abstract void generic() throws fr.cnes.genius.exception.GException
generic
in class fr.cnes.genius.lowLevel.GContainer
fr.cnes.genius.exception.GException
public fr.cnes.genius.highLevel.GLabelWithIndicator getGLabel()
public fr.cnes.sirius.patrius.assembly.properties.PropulsiveProperty getEngine()
public fr.cnes.sirius.patrius.assembly.properties.TankProperty getFuelTank()
public fr.cnes.sirius.patrius.propagation.MassProvider getMassProvider()
public void setMassProvider(fr.cnes.sirius.patrius.propagation.MassProvider massProvider)
massProvider
- the mass provider.public void setGLabel(String label)
label
- the labelpublic 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 void setEngine(fr.cnes.sirius.patrius.assembly.properties.PropulsiveProperty engine) throws fr.cnes.genius.exception.GArithmeticException
engine
- engine to be set.fr.cnes.genius.exception.GArithmeticException
- if the thrust or the isp in engine are NaN.public void setDefaultEngine(fr.cnes.sirius.patrius.assembly.properties.PropulsiveProperty engine) throws fr.cnes.genius.exception.GArithmeticException
engine
- engine to be set by default.fr.cnes.genius.exception.GArithmeticException
- if the thrust or the isp in engine are NaN.public void setEnginesList(ArrayList<fr.cnes.sirius.patrius.assembly.properties.PropulsiveProperty> engineList)
engineList
- list of enginespublic void setTank(fr.cnes.sirius.patrius.assembly.properties.TankProperty tank) throws fr.cnes.genius.exception.GArithmeticException
tank
- tank to be set.fr.cnes.genius.exception.GArithmeticException
- if the propellant mass in tank is NaN.public void setDefaultTank(fr.cnes.sirius.patrius.assembly.properties.TankProperty tank) throws fr.cnes.genius.exception.GArithmeticException
tank
- tank to be set by default.fr.cnes.genius.exception.GArithmeticException
- if the propellant mass in tank is NaN.public void setTanksList(ArrayList<fr.cnes.sirius.patrius.assembly.properties.TankProperty> tankList)
tankList
- list of tankspublic static <T> ArrayList<T> listFromArray(T[] array)
T
- the elements type.array
- the arrayprotected void checkCoherence() throws GPManeuverException
GPManeuverException
- if one of the conditions is not fulfilled.public void updateCondensedStatus(fr.cnes.genius.main.GCondensedStatus condensedStatus)
updateCondensedStatus
in interface fr.cnes.genius.main.GCondensedStatusInterface
Copyright © 2018. All rights reserved.