public class GPEngine extends fr.cnes.genius.lowLevel.GPanel implements fr.cnes.genius.main.GReadWrite, fr.cnes.genius.main.GListener, fr.cnes.genius.main.GCondensedStatusInterface, fr.cnes.genius.main.GClear, Cloneable, GPPatrius<fr.cnes.sirius.patrius.assembly.properties.PropulsiveProperty>
| Index | Class | Item | Constraint |
| 0 | GLabelWithIndicator | label | 0, 0 => "newline , gapleft 0" 0, 1 => (null) |
| 1 | GEntryString | entryStringName | 1, 0, 0 =>
"newline , gapleft 20" 1, 0, 1 => (null) 1, 1 => (null) |
| 2 | GEntryReal | entryRealIsp | 2, 0, 0 =>
"newline , gapleft 20" 2, 0, 1 => (null) 2, 1 => (null) 2, 2 => (null) |
| 3 | GEntryReal | entryRealThrust | 3, 0, 0 =>
"newline , gapleft 20" 3, 0, 1 => (null) 3, 1 => (null) 3, 2 => (null) |
| Constructor and Description |
|---|
GPEngine()
Default constructor
|
GPEngine(String label)
Constructor without engine.
|
GPEngine(String widgetId,
String label)
Constructor.
|
GPEngine(String label,
String engineName,
fr.cnes.sirius.patrius.assembly.properties.PropulsiveProperty engine)
Constructor.
|
GPEngine(String widgetId,
String label,
String engineName,
fr.cnes.sirius.patrius.assembly.properties.PropulsiveProperty engine)
Constructor.
|
| 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) |
static void |
checkEngine(fr.cnes.sirius.patrius.assembly.properties.PropulsiveProperty engine)
Checks if the thrust or the isp of the input engine are NaN.
|
void |
clear() |
GPEngine |
clone() |
void |
display() |
void |
generic() |
static int |
getCount()
Getter for the engines counter.
|
String |
getEngineName()
Get engine name.
|
fr.cnes.genius.highLevel.GEntryReal |
getGEntryRealIsp()
Getter for the GEntryReal (m_isp) of the widget.
|
fr.cnes.genius.highLevel.GEntryReal |
getGEntryRealThrust()
Getter for the GEntryReal (m_thrust) of the widget.
|
fr.cnes.genius.highLevel.GEntryString |
getGEntryStingEngineName()
Getter for the GEntryString (m_engineName) of the widget.
|
fr.cnes.genius.highLevel.GLabelWithIndicator |
getGLabel()
Getter for the GLabel of the widget.
|
String |
getLabel()
Get the engine label
|
fr.cnes.sirius.patrius.assembly.properties.PropulsiveProperty |
getPatriusObject()
Get engine.
|
fr.cnes.genius.main.GComponent |
getSubComponent(int position) |
boolean |
isEnabled() |
boolean |
isModified() |
void |
read() |
static void |
setCount(int count)
Getter for the engines counter.
|
void |
setDefaultConstraints()
Setter for the default constraint of the widget.
|
void |
setDefaultEngine(fr.cnes.sirius.patrius.assembly.properties.PropulsiveProperty defaultEngine)
Setter for the default engine.
|
void |
setEnabled(boolean b) |
void |
setEngine(fr.cnes.sirius.patrius.assembly.properties.PropulsiveProperty engine)
Setter for the engine.
|
void |
setSavedEngine(fr.cnes.sirius.patrius.assembly.properties.PropulsiveProperty savedEngine)
Setter for the reference engine.
|
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, processMouseWheelEvent, put, setClassConstraint, setColumnConstraints, setConstraint, setHorizontalScroll, setInnerDescendantClassConstraint, setLayoutConstraints, setMargins, setPanelConstraints, setPreferredSize, setRowConstraints, setUnitIncrement, setVerticalScroll, unputactivateConstraintsByType, 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, mouseWheelMoved, parseSimpleConstraint, processGEvent, setBusyCursor, setCommentInConfigFile, setCopyPasteMenuEnabled, setCurrentOperation, setDataForConstraintsByType, setDisplayIsModifiedIndicator, setElement, setForcedStatus, setGPanel, setGParent, setGUnitInConfigFile, setInnerDescendantConstraint, setName, setNameAndCommentInConfigFile, setNameInConfigFile, setPathInConfigFile, setStatus, setStringConstraint, setToolTipText, setWidth, setWindowBusyCursor, writeCollection, writeCollection, writeCollection, writeCollection, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItempublic GPEngine()
public GPEngine(String label)
label - engine name to display in the label.public GPEngine(String label, String engineName, fr.cnes.sirius.patrius.assembly.properties.PropulsiveProperty engine)
label - text to display in the label.engineName - name of engineengine - engine to set in the widget.public GPEngine(String widgetId, String label)
widgetId - widget identifier, if null an identifier will be automatically created.label - text to display in the label.public GPEngine(String widgetId, String label, String engineName, fr.cnes.sirius.patrius.assembly.properties.PropulsiveProperty engine)
widgetId - widget identifier, if null an identifier will be automatically created.label - text to display in the label.engineName - name of engineengine - engine to set in the widget.public static int getCount()
public static void setCount(int count)
count - the number of already created engines until now.public fr.cnes.genius.highLevel.GLabelWithIndicator getGLabel()
public fr.cnes.genius.highLevel.GEntryString getGEntryStingEngineName()
public fr.cnes.genius.highLevel.GEntryReal getGEntryRealIsp()
public fr.cnes.genius.highLevel.GEntryReal getGEntryRealThrust()
public void setEngine(fr.cnes.sirius.patrius.assembly.properties.PropulsiveProperty engine)
throws fr.cnes.genius.exception.GArithmeticException
engine - engine to set.fr.cnes.genius.exception.GArithmeticException - if isp or thrust in engine are NaN.public void setDefaultEngine(fr.cnes.sirius.patrius.assembly.properties.PropulsiveProperty defaultEngine)
throws fr.cnes.genius.exception.GArithmeticException
defaultEngine - default engine to set.fr.cnes.genius.exception.GArithmeticException - if isp or thrust in defaultEngine are NaN.public void setSavedEngine(fr.cnes.sirius.patrius.assembly.properties.PropulsiveProperty savedEngine)
throws fr.cnes.genius.exception.GArithmeticException
savedEngine - reference engine to set.fr.cnes.genius.exception.GArithmeticException - if isp or thrust in savedEngine are NaN.public void attachCopyPasteMenu(String label, fr.cnes.genius.main.GComponent.CopyPasteOperation... operationList)
attachCopyPasteMenu in class fr.cnes.genius.main.GComponentpublic void updateIsModifiedIndicator()
updateIsModifiedIndicator in class fr.cnes.genius.main.GComponentpublic boolean isEnabled()
isEnabled in class fr.cnes.genius.main.GComponentpublic void setEnabled(boolean b)
setEnabled in class fr.cnes.genius.main.GComponentpublic boolean isModified()
isModified in class fr.cnes.genius.main.GComponentpublic void generic()
throws fr.cnes.genius.exception.GException
generic in class fr.cnes.genius.lowLevel.GPanelfr.cnes.genius.exception.GExceptionpublic void display()
throws fr.cnes.genius.exception.GException
display in interface fr.cnes.genius.main.GDisplayfr.cnes.genius.exception.GExceptionpublic void read()
throws fr.cnes.genius.exception.GException
read in interface fr.cnes.genius.main.GReadWritefr.cnes.genius.exception.GExceptionpublic void write()
throws fr.cnes.genius.exception.GException
write in interface fr.cnes.genius.main.GReadWritefr.cnes.genius.exception.GExceptionpublic String getEngineName()
public String getLabel()
public fr.cnes.sirius.patrius.assembly.properties.PropulsiveProperty getPatriusObject()
getPatriusObject in interface GPPatrius<fr.cnes.sirius.patrius.assembly.properties.PropulsiveProperty>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 setDefaultConstraints()
setDefaultConstraints in class fr.cnes.genius.lowLevel.GPanelpublic void clear()
throws fr.cnes.genius.exception.GException
clear in interface fr.cnes.genius.main.GClearfr.cnes.genius.exception.GExceptionpublic void before(fr.cnes.genius.main.GEvent e)
throws fr.cnes.genius.exception.GException
before in interface fr.cnes.genius.main.GListenerfr.cnes.genius.exception.GExceptionpublic void after(fr.cnes.genius.main.GEvent e)
throws fr.cnes.genius.exception.GException
after in interface fr.cnes.genius.main.GListenerfr.cnes.genius.exception.GExceptionpublic void updateCondensedStatus(fr.cnes.genius.main.GCondensedStatus condensedStatus)
updateCondensedStatus in interface fr.cnes.genius.main.GCondensedStatusInterfacepublic void setWidgetId(String widgetId)
setWidgetId in class fr.cnes.genius.main.GComponentpublic GPEngine clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionpublic static void checkEngine(fr.cnes.sirius.patrius.assembly.properties.PropulsiveProperty engine)
throws fr.cnes.genius.exception.GArithmeticException
engine - to be checkedfr.cnes.genius.exception.GArithmeticException - if the thrust or the isp in engine are NaN.Copyright © 2025. All rights reserved.