public class GPVehiclePropulsiveProps
extends fr.cnes.genius.lowLevel.GPanel
implements fr.cnes.genius.main.GReadWrite, fr.cnes.genius.main.GListener, fr.cnes.genius.main.GDisplay, fr.cnes.genius.main.GClear, fr.cnes.genius.main.GCondensedStatusInterface
Index | Class | Item | Constraint |
0 | GEntryReal | ergMassEntryReal | 0, 0, 0 =>
"newline , gapleft 20 , split 2" 0, 0, 1 => (null) 0, 1 => (null) 0, 2 => (null) |
1 | GSeparator | enginesSeparator | "newline , gapleft 20 , spanx 4 , growx" |
2 | GOpenCloseButton | enginesOpenCloseButton | "newline , gapleft 0 , split 2" |
3 | GLabelWithIndicator | enginesLabel | 3, 0 => (null) 3, 1 => (null) |
4 | GComponentList | enginesList | "newline , gapleft 20 , spanx 4 , growx" (see table below) |
5 | GSeparator | tanksSeparator | "newline , gapleft 20 , spanx 4 , growx" |
6 | GOpenCloseButton | tanksOpenCloseButton | "newline , gapleft 0 , split 2" |
7 | GLabelWithIndicator | tanksLabel | 7, 0
=> (null) 7, 1 => (null) |
8 | GComponentList | tanksList | "newline , gapleft 20 , spanx 4 , growx" (see table below) |
Index | Class | Item | Constraint |
4, 0 | GHeaderPanel | header | "hmin 40" (see table below) |
4, 1 | GLabel | spaceLabel | "newline , height 0" |
Index | Class | Item | Constraint |
4, 0, 0 | GEntryInt | totalNumberItemsEntry | 4, 0, 0, 0, 0
=> "newline , split 2" 4, 0, 0, 0, 1 => (null) 4, 0, 0, 1 => "skip 2 , width 50" |
4, 0, 1 | GEntryInt | currentItemRankEntry | 4, 0, 1, 0, 0 => "split 2" 4, 0, 1, 0, 1 => (null) 4, 0, 1, 1 => "width 50" |
4, 0, 2 | GButton | decrButton | "alignx Right , height 20" |
4, 0, 3 | GButton | incrButton | "height 20" |
4, 0, 4 | GPopupList | menu | (null) |
Index | Class | Item | Constraint |
8, 0 | GHeaderPanel | header | "hmin 40" (see table below) |
8, 1 | GLabel | spaceLabel | "newline , height 0" |
Index | Class | Item | Constraint |
8, 0, 0 | GEntryInt | totalNumberItemsEntry | 8, 0, 0, 0, 0
=> "newline , split 2" 8, 0, 0, 0, 1 => (null) 8, 0, 0, 1 => "skip 2 , width 50" |
8, 0, 1 | GEntryInt | currentItemRankEntry | 8, 0, 1, 0, 0 => "split 2" 8, 0, 1, 0, 1 => (null) 8, 0, 1, 1 => "width 50" |
8, 0, 2 | GButton | decrButton | "alignx Right , height 20" |
8, 0, 3 | GButton | incrButton | "height 20" |
8, 0, 4 | GPopupList | menu | (null) |
Constructor and Description |
---|
GPVehiclePropulsiveProps(String widgetId,
String name)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
after(fr.cnes.genius.main.GEvent e) |
void |
before(fr.cnes.genius.main.GEvent e) |
void |
clear() |
void |
display() |
void |
generic() |
String[] |
getEngineNames()
Method to get the list of engine names.
|
ArrayList<fr.cnes.sirius.patrius.assembly.properties.PropulsiveProperty> |
getEnginesList()
Get list of engines.
|
double |
getErgMass()
Get ergol mass.
|
fr.cnes.genius.highLevel.GComponentList |
getGComponentListEngines()
Getter for the list of engines.
|
fr.cnes.genius.highLevel.GComponentList |
getGComponentListTanks()
Getter for the list of tanks.
|
fr.cnes.genius.highLevel.GEntryReal |
getGEntryRealErgMass()
Getter for the entry real with the mass of ergols.
|
fr.cnes.genius.highLevel.GLabelWithIndicator |
getGLabelEngines()
Getter for the label for the engines.
|
fr.cnes.genius.highLevel.GLabelWithIndicator |
getGLabelTanks()
Getter for the label for the tanks.
|
fr.cnes.genius.highLevel.GOpenCloseButton |
getGOpenCloseButtonEngines()
Getter for the open close button for the engines.
|
fr.cnes.genius.highLevel.GOpenCloseButton |
getGOpenCloseButtonTanks()
Getter for the open close button for the tanks.
|
fr.cnes.genius.lowLevel.GSeparator |
getGSeparatorEngines()
Getter for the separator for the engines.
|
fr.cnes.genius.lowLevel.GSeparator |
getGSeparatorTanks()
Getter for the separator for the tanks.
|
fr.cnes.genius.main.GComponent |
getSubComponent(int position) |
String[] |
getTankNames()
Method to get the list of tank names.
|
ArrayList<fr.cnes.sirius.patrius.assembly.properties.TankProperty> |
getTanksList()
Get list of tanks.
|
boolean |
isEnabled() |
boolean |
isModified() |
void |
read() |
void |
setConstraint(int widgetGap)
Setter for the constraints of the widget.
|
void |
setDefaultConstraints()
Setter for the default constraint of the widget.
|
void |
setDefaultEnginesList(List<fr.cnes.sirius.patrius.assembly.properties.PropulsiveProperty> enginesList)
Setter for the default list of engines.
|
void |
setDefaultTanksList(List<fr.cnes.sirius.patrius.assembly.properties.TankProperty> tanksList)
Setter for the default list of fuel tanks.
|
void |
setDisplayIsModifiedIndicatorAll(fr.cnes.genius.main.GComponent.DisplayIndicatorStatus displayIndicatorStatus)
Controls the display of the isModified indicator of all sub-widgets.
|
void |
setEnabled(boolean b) |
void |
setEnginesList(List<fr.cnes.sirius.patrius.assembly.properties.PropulsiveProperty> enginesList)
Setter for the list of engines.
|
void |
setSavedEnginesList(List<fr.cnes.sirius.patrius.assembly.properties.PropulsiveProperty> enginesList)
Setter for the saved list of engines.
|
void |
setSavedTanksList(List<fr.cnes.sirius.patrius.assembly.properties.TankProperty> tanksList)
Setter for the saved list of tanks.
|
void |
setTanksList(List<fr.cnes.sirius.patrius.assembly.properties.TankProperty> tanksList)
Setter for the list of fuel tanks.
|
void |
setWidgetId(String widgetId) |
void |
updateCondensedStatus(fr.cnes.genius.main.GCondensedStatus condensedStatus) |
protected void |
updateEnginesIsModifiedIndicator()
Update the engines label modified indicator depending on the engines list modified status.
|
protected void |
updateTanksIsModifiedIndicator()
Update the tanks label modified indicator depending on the tanks list modified status.
|
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, 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, updateIsModifiedIndicator, writeCollection, writeCollection, writeCollection, writeCollection, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem
public void setWidgetId(String widgetId)
setWidgetId
in class fr.cnes.genius.main.GComponent
public void setDefaultConstraints()
setDefaultConstraints
in class fr.cnes.genius.lowLevel.GPanel
public void setConstraint(int widgetGap)
widgetGap
- left gap from panel border to display the label of the widget.public fr.cnes.genius.highLevel.GEntryReal getGEntryRealErgMass()
public fr.cnes.genius.lowLevel.GSeparator getGSeparatorEngines()
public fr.cnes.genius.highLevel.GLabelWithIndicator getGLabelEngines()
public fr.cnes.genius.highLevel.GOpenCloseButton getGOpenCloseButtonEngines()
public fr.cnes.genius.highLevel.GComponentList getGComponentListEngines()
public fr.cnes.genius.lowLevel.GSeparator getGSeparatorTanks()
public fr.cnes.genius.highLevel.GLabelWithIndicator getGLabelTanks()
public fr.cnes.genius.highLevel.GOpenCloseButton getGOpenCloseButtonTanks()
public fr.cnes.genius.highLevel.GComponentList getGComponentListTanks()
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 void after(fr.cnes.genius.main.GEvent e) throws fr.cnes.genius.exception.GException
after
in interface fr.cnes.genius.main.GListener
fr.cnes.genius.exception.GException
public void before(fr.cnes.genius.main.GEvent e) throws fr.cnes.genius.exception.GException
before
in interface fr.cnes.genius.main.GListener
fr.cnes.genius.exception.GException
public String[] getEngineNames()
public String[] getTankNames()
public ArrayList<fr.cnes.sirius.patrius.assembly.properties.TankProperty> getTanksList()
public ArrayList<fr.cnes.sirius.patrius.assembly.properties.PropulsiveProperty> getEnginesList()
public double getErgMass()
public void updateCondensedStatus(fr.cnes.genius.main.GCondensedStatus condensedStatus)
updateCondensedStatus
in interface fr.cnes.genius.main.GCondensedStatusInterface
public boolean isEnabled()
isEnabled
in class fr.cnes.genius.main.GComponent
public void setEnabled(boolean b)
setEnabled
in class fr.cnes.genius.main.GComponent
public boolean isModified()
isModified
in class fr.cnes.genius.main.GComponent
protected void updateTanksIsModifiedIndicator()
protected void updateEnginesIsModifiedIndicator()
public void setDisplayIsModifiedIndicatorAll(fr.cnes.genius.main.GComponent.DisplayIndicatorStatus displayIndicatorStatus)
displayIndicatorStatus
- if Always the modifiedStatusIndicator is always shown, if Never
the modifiedStatusIndicator is never shown, if Automatic the modifiedStatusIndicator
is shown as needed.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 clear() throws fr.cnes.genius.exception.GException
clear
in interface fr.cnes.genius.main.GClear
fr.cnes.genius.exception.GException
public void setEnginesList(List<fr.cnes.sirius.patrius.assembly.properties.PropulsiveProperty> enginesList) throws GPVehicleException, fr.cnes.genius.exception.GArithmeticException
enginesList
- the list of enginesGPVehicleException
- if the list of tanks is not coherent with the max and min of the
list of engines.fr.cnes.genius.exception.GArithmeticException
- if any engine in the list has NaN thrust or isp.public void setTanksList(List<fr.cnes.sirius.patrius.assembly.properties.TankProperty> tanksList) throws GPVehicleException, fr.cnes.genius.exception.GArithmeticException
tanksList
- the list of fuel tanksGPVehicleException
- if the list of tanks is not coherent with the max and min of the
list of tanks.fr.cnes.genius.exception.GArithmeticException
- if any tank in the list has NaN propellant mass.public void setDefaultEnginesList(List<fr.cnes.sirius.patrius.assembly.properties.PropulsiveProperty> enginesList) throws fr.cnes.genius.exception.GArithmeticException
enginesList
- the default list of enginesfr.cnes.genius.exception.GArithmeticException
- if any engine in the list has NaN thrust or isp.public void setDefaultTanksList(List<fr.cnes.sirius.patrius.assembly.properties.TankProperty> tanksList) throws fr.cnes.genius.exception.GArithmeticException
tanksList
- the default list of fuel tanksfr.cnes.genius.exception.GArithmeticException
- if any tank in the list has NaN propellant mass.public void setSavedEnginesList(List<fr.cnes.sirius.patrius.assembly.properties.PropulsiveProperty> enginesList) throws fr.cnes.genius.exception.GArithmeticException
enginesList
- the saved list of enginesfr.cnes.genius.exception.GArithmeticException
- if any of the engines in enginesList has NaN isp or thrust.fr.cnes.genius.exception.GArithmeticException
- if any engine in the list has NaN thrust or isp.public void setSavedTanksList(List<fr.cnes.sirius.patrius.assembly.properties.TankProperty> tanksList) throws fr.cnes.genius.exception.GArithmeticException
tanksList
- the saved list of tanksfr.cnes.genius.exception.GArithmeticException
- if any of the tanks in tanksList has NaN propellant mass.fr.cnes.genius.exception.GArithmeticException
- if any tank in the list has NaN propellant mass.Copyright © 2018. All rights reserved.