public class GPAeroCoeffByTwoVar
extends fr.cnes.genius.lowLevel.GPanel
implements fr.cnes.genius.main.GReadWrite, fr.cnes.genius.main.GDisplay, fr.cnes.genius.main.GListener, fr.cnes.genius.main.GClear, fr.cnes.genius.main.GCondensedStatusInterface
Index | Class | Item | Constraint |
0 | GChoice | aoAandMachCoeffChoice | 0, 0, 0 =>
"newline , gapleft 0 , split 2" 0, 0, 1 => (null) 0, 1 => "split" |
1 | GTable2D | aoAandMachCxTable2D | "newline , gapleft 0 , spanx 3" (see table below) |
2 | GTable2D | aoAandMachCzTable2D | "newline , gapleft 0 , spanx 3" (see table below) |
Index | Class | Item | Constraint |
1, 0 | GLabel | dataLabel | "newline , spanx 2 , alignx Center" |
1, 1 | GLabel | columnHeaderLabel | "newline , spanx 2 , split 2 , alignx Center" |
1, 2 | GLabel | rowHeaderLabel | "newline , aligny Center" |
1, 3 | GTable | table | "wmax 450 , hmax 200" |
Index | Class | Item | Constraint |
2, 0 | GLabel | dataLabel | "newline , spanx 2 , alignx Center" |
2, 1 | GLabel | columnHeaderLabel | "newline , spanx 2 , split 2 , alignx Center" |
2, 2 | GLabel | rowHeaderLabel | "newline , aligny Center" |
2, 3 | GTable | table | "wmax 450 , hmax 200" |
Constructor and Description |
---|
GPAeroCoeffByTwoVar(String widgetId)
Creates a new instance.
|
GPAeroCoeffByTwoVar(String widgetId,
fr.cnes.sirius.patrius.assembly.models.aerocoeffs.AeroCoeffByAoAAndMach dragCoefFunction,
fr.cnes.sirius.patrius.assembly.models.aerocoeffs.AeroCoeffByAoAAndMach liftCoefFunction)
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() |
double[] |
getDragAoAArray()
Gets the array of Doubles with the angles of attack of the drag table.
|
double[][] |
getDragData()
Gets the double array of Doubles with the data of the drag table.
|
double[] |
getDragMachArray()
Gets the array of Doubles with the mach numbers of the drag table.
|
fr.cnes.genius.highLevel.GChoice |
getGChoiceAoAandMachCoeff()
Getter for the choice with the visible coefficient table as a function of mach number and
angle of attack.
|
fr.cnes.genius.table.GTable2D |
getGTable2DAoAandMachCx()
Getter for the table 2D to set the Cx table as a function of mach number and angle of attack.
|
fr.cnes.genius.table.GTable2D |
getGTable2DDAoAandMachCz()
Getter for the table 2D to set the Cz table as a function of mach number and angle of attack.
|
double[] |
getLiftAoAArray()
Gets the array of Doubles with the angles of attack of the lift table.
|
double[][] |
getLiftData()
Gets the double array of Doubles with the data of the lift table.
|
double[] |
getLiftMachArray()
Gets the array of Doubles with the mach numbers of the lift table.
|
fr.cnes.genius.main.GComponent |
getSubComponent(int position) |
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 |
setDefaultValue(fr.cnes.sirius.patrius.assembly.models.aerocoeffs.AeroCoeffByAoAAndMach dragCoefFunction,
fr.cnes.sirius.patrius.assembly.models.aerocoeffs.AeroCoeffByAoAAndMach liftCoefFunction)
Setter for the default values for abscisas, drag coefficients and lift coefficients.
|
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 |
setValue(fr.cnes.sirius.patrius.assembly.models.aerocoeffs.AeroCoeffByAoAAndMach dragCoefFunction,
fr.cnes.sirius.patrius.assembly.models.aerocoeffs.AeroCoeffByAoAAndMach liftCoefFunction)
Setter for the values for abscisas, drag coefficients and lift coefficients.
|
void |
setWidgetId(String widgetId) |
void |
updateCondensedStatus(fr.cnes.genius.main.GCondensedStatus condensedStatus) |
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 GPAeroCoeffByTwoVar(String widgetId)
widgetId
- widget identifier, if null an identifier will be automatically createdpublic GPAeroCoeffByTwoVar(String widgetId, fr.cnes.sirius.patrius.assembly.models.aerocoeffs.AeroCoeffByAoAAndMach dragCoefFunction, fr.cnes.sirius.patrius.assembly.models.aerocoeffs.AeroCoeffByAoAAndMach liftCoefFunction)
widgetId
- widget identifier, if null an identifier will be automatically createddragCoefFunction
- drag coefficient functionliftCoefFunction
- lift coefficient functionpublic 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.GChoice getGChoiceAoAandMachCoeff()
public fr.cnes.genius.table.GTable2D getGTable2DAoAandMachCx()
public fr.cnes.genius.table.GTable2D getGTable2DDAoAandMachCz()
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 double[] getDragAoAArray()
public double[] getDragMachArray()
public double[][] getDragData()
public double[] getLiftAoAArray()
public double[] getLiftMachArray()
public double[][] getLiftData()
public void setValue(fr.cnes.sirius.patrius.assembly.models.aerocoeffs.AeroCoeffByAoAAndMach dragCoefFunction, fr.cnes.sirius.patrius.assembly.models.aerocoeffs.AeroCoeffByAoAAndMach liftCoefFunction) throws GPVehicleException, fr.cnes.genius.exception.GArithmeticException
dragCoefFunction
- drag coefficient functionliftCoefFunction
- lift coefficient functionGPVehicleException
- if the number of functions in the array is not two or if they have
different abscisa values.fr.cnes.genius.exception.GArithmeticException
- if dragCoefFunction or liftCoefFunction contains NaNspublic void setDefaultValue(fr.cnes.sirius.patrius.assembly.models.aerocoeffs.AeroCoeffByAoAAndMach dragCoefFunction, fr.cnes.sirius.patrius.assembly.models.aerocoeffs.AeroCoeffByAoAAndMach liftCoefFunction) throws GPVehicleException, fr.cnes.genius.exception.GArithmeticException
dragCoefFunction
- drag coefficient functionliftCoefFunction
- lift coefficient functionGPVehicleException
- if the number of functions in the array is not two or if they have
different abscisa values.fr.cnes.genius.exception.GArithmeticException
- if dragCoefFunction or liftCoefFunction contains NaNspublic void clear() throws fr.cnes.genius.exception.GException
clear
in interface fr.cnes.genius.main.GClear
fr.cnes.genius.exception.GException
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
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 updateCondensedStatus(fr.cnes.genius.main.GCondensedStatus condensedStatus)
updateCondensedStatus
in interface fr.cnes.genius.main.GCondensedStatusInterface
Copyright © 2018. All rights reserved.