public class GPAeroCoeffByOneVar
extends fr.cnes.genius.highLevel.GTable1D
implements fr.cnes.genius.main.GClear
fr.cnes.genius.highLevel.GTable1D.TableOrientation
Constructor and Description |
---|
GPAeroCoeffByOneVar(String widgetId,
String label,
fr.cnes.genius.highLevel.GEntryRealVector varRealVec)
Creates a new instance.
|
GPAeroCoeffByOneVar(String widgetId,
String label,
fr.cnes.genius.highLevel.GEntryRealVector varRealVec,
fr.cnes.sirius.patrius.assembly.models.aerocoeffs.AbstractAeroCoeff1D dragCoefFunction,
fr.cnes.sirius.patrius.assembly.models.aerocoeffs.AbstractAeroCoeff1D liftCoefFunction)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
clear() |
double[] |
getDragArray()
Gets the array of Doubles with the drag coefficients.
|
double[] |
getLiftArray()
Gets the array of Doubles with the lift coefficients.
|
double[] |
getVariableArray()
Gets the array of Doubles with the abscisa variables.
|
void |
setDefaultValue(fr.cnes.sirius.patrius.assembly.models.aerocoeffs.AbstractAeroCoeff1D dragCoefFunction,
fr.cnes.sirius.patrius.assembly.models.aerocoeffs.AbstractAeroCoeff1D liftCoefFunction)
Setter for the default values for abscisas, drag coefficients and lift coefficients.
|
protected void |
setNamesInConfigFile(String nameForVarVect,
String nameForDragVect,
String nameForLiftVect,
String nameForTable)
Setter for the name in config file for each one of the components.
|
void |
setSavedValue(fr.cnes.sirius.patrius.assembly.models.aerocoeffs.AbstractAeroCoeff1D dragCoefFunction,
fr.cnes.sirius.patrius.assembly.models.aerocoeffs.AbstractAeroCoeff1D liftCoefFunction)
Setter for the saved values for abscisas, drag coefficients and lift coefficients.
|
void |
setValue(fr.cnes.sirius.patrius.assembly.models.aerocoeffs.AbstractAeroCoeff1D dragCoefFunction,
fr.cnes.sirius.patrius.assembly.models.aerocoeffs.AbstractAeroCoeff1D liftCoefFunction)
Setter for the values for abscisas, drag coefficients and lift coefficients.
|
after, attachCopyPasteMenu, before, display, generic, getGVector, getSubComponent, isCopyPasteEvent, isEnabled, isModified, read, setCopyPasteMenuEnabled, setDefaultConstraints, setDefaultValues, setEnabled, setSavedValues, setValues, setWidgetId, updateIsModifiedIndicator, updateStatus, 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, isForcedStatus, launchInvalidPositionException, parseSimpleConstraint, processGEvent, setBusyCursor, setCommentInConfigFile, 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 GPAeroCoeffByOneVar(String widgetId, String label, fr.cnes.genius.highLevel.GEntryRealVector varRealVec)
widgetId
- widget identifier, if null an identifier will be automatically createdlabel
- for the table1DvarRealVec
- GEntryRealVector to define the abscisa variablepublic GPAeroCoeffByOneVar(String widgetId, String label, fr.cnes.genius.highLevel.GEntryRealVector varRealVec, fr.cnes.sirius.patrius.assembly.models.aerocoeffs.AbstractAeroCoeff1D dragCoefFunction, fr.cnes.sirius.patrius.assembly.models.aerocoeffs.AbstractAeroCoeff1D liftCoefFunction)
widgetId
- widget identifier, if null an identifier will be automatically createdlabel
- for the table1DvarRealVec
- GEntryRealVector to define the abscisa variabledragCoefFunction
- drag coefficient functionliftCoefFunction
- lift coefficient functionpublic double[] getLiftArray()
public double[] getDragArray()
public double[] getVariableArray()
protected void setNamesInConfigFile(String nameForVarVect, String nameForDragVect, String nameForLiftVect, String nameForTable)
nameForVarVect
- name for abscisa variable vectornameForDragVect
- name for drag coefficient vectornameForLiftVect
- name for lift coefficient vectornameForTable
- name for the tablepublic void setValue(fr.cnes.sirius.patrius.assembly.models.aerocoeffs.AbstractAeroCoeff1D dragCoefFunction, fr.cnes.sirius.patrius.assembly.models.aerocoeffs.AbstractAeroCoeff1D 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 contain NaNs.public void clear() throws fr.cnes.genius.exception.GException
clear
in interface fr.cnes.genius.main.GClear
fr.cnes.genius.exception.GException
public void setDefaultValue(fr.cnes.sirius.patrius.assembly.models.aerocoeffs.AbstractAeroCoeff1D dragCoefFunction, fr.cnes.sirius.patrius.assembly.models.aerocoeffs.AbstractAeroCoeff1D 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 contain NaNs.public void setSavedValue(fr.cnes.sirius.patrius.assembly.models.aerocoeffs.AbstractAeroCoeff1D dragCoefFunction, fr.cnes.sirius.patrius.assembly.models.aerocoeffs.AbstractAeroCoeff1D 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 contain NaNs.Copyright © 2018. All rights reserved.