fr.cnes.genopus.vehicle
Class GPAeroCoeffByOneVar

java.lang.Object
  extended by fr.cnes.genius.main.GComponent
      extended by fr.cnes.genius.lowLevel.GPanel
          extended by fr.cnes.genius.highLevel.GTable1D
              extended by fr.cnes.genopus.vehicle.GPAeroCoeffByOneVar
All Implemented Interfaces:
fr.cnes.genius.main.GClear, fr.cnes.genius.main.GDisplay, fr.cnes.genius.main.GListener, fr.cnes.genius.main.GReadWrite

public class GPAeroCoeffByOneVar
extends fr.cnes.genius.highLevel.GTable1D
implements fr.cnes.genius.main.GClear

Widget for expert aerodynamic coefficients.

Author:
ffsm

Nested Class Summary
 
Nested classes/interfaces inherited from class fr.cnes.genius.highLevel.GTable1D
fr.cnes.genius.highLevel.GTable1D.TableOrientation
 
Nested classes/interfaces inherited from class fr.cnes.genius.lowLevel.GPanel
fr.cnes.genius.lowLevel.GPanel.Panel, fr.cnes.genius.lowLevel.GPanel.ScrollBarVisibility
 
Nested classes/interfaces inherited from class fr.cnes.genius.main.GComponent
fr.cnes.genius.main.GComponent.CopyPasteOperation, fr.cnes.genius.main.GComponent.DisplayIndicatorStatus, fr.cnes.genius.main.GComponent.ItemType, fr.cnes.genius.main.GComponent.Operation
 
Field Summary
 
Fields inherited from class fr.cnes.genius.main.GComponent
NAME_ATTRIBUTE
 
Constructor Summary
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, CustomAeroCoeffByOneVarAbstract dragCoefFunction, CustomAeroCoeffByOneVarAbstract liftCoefFunction)
          Creates a new instance.
 
Method Summary
 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(CustomAeroCoeffByOneVarAbstract dragCoefFunction, CustomAeroCoeffByOneVarAbstract 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(CustomAeroCoeffByOneVarAbstract dragCoefFunction, CustomAeroCoeffByOneVarAbstract liftCoefFunction)
          Setter for the saved values for abscisas, drag coefficients and lift coefficients.
 void setValue(CustomAeroCoeffByOneVarAbstract dragCoefFunction, CustomAeroCoeffByOneVarAbstract liftCoefFunction)
          Setter for the values for abscisas, drag coefficients and lift coefficients.
 
Methods inherited from class fr.cnes.genius.highLevel.GTable1D
after, attachCopyPasteMenu, before, display, generic, getGVector, getSubComponent, isCopyPasteEvent, isEnabled, isModified, read, setCopyPasteMenuEnabled, setDefaultValues, setEnabled, setSavedValues, setValues, setWidgetId, updateIsModifiedIndicator, updateStatus, write
 
Methods inherited from class fr.cnes.genius.lowLevel.GPanel
getClassConstraint, getComponent, getHorizontalScroll, getInnerDescendantClassConstraint, getJPanel, getJScrollPane, getStringClassConstraint, getVerticalScroll, mainClear, mainDisplay, put, setClassConstraint, setColumnConstraints, setHorizontalScroll, setInnerDescendantClassConstraint, setLayoutConstraints, setPreferredSize, setRowConstraints, setVerticalScroll
 
Methods inherited from class fr.cnes.genius.main.GComponent
activateConstraintsByType, attachCopyPasteMenu, beginOfElement, beginOfElement, beginOfElement, beginOfElement, composeWidgetId, doDisplay, endOfElement, getCommentInConfigFile, getConstraint, getCurrentOperation, getDisplayIndicatorStatus, getDisplayIsModifiedIndicator, getElement, getGPanel, getGParent, getGUnitInConfigFile, getInnerDescendantConstraint, getName, getNameInConfigFile, getOperationSaveValue, getSimpleWidgetId, getStatus, getStringConstraint, getWidgetId, handleCopyPasteEvent, handleProcessEventException, launchInvalidPositionException, parseSimpleConstraint, processGEvent, setBusyCursor, setCommentInConfigFile, setConstraint, setCurrentOperation, setDataForConstraintsByType, setDisplayIsModifiedIndicator, setElement, setGPanel, setGParent, setGUnitInConfigFile, setInnerDescendantConstraint, setNameAndCommentInConfigFile, setNameInConfigFile, setStatus, setStringConstraint, setToolTipText, setWidth, writeCollection, writeCollection, writeCollection, writeCollection, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GPAeroCoeffByOneVar

public GPAeroCoeffByOneVar(String widgetId,
                           String label,
                           fr.cnes.genius.highLevel.GEntryRealVector varRealVec)
Creates a new instance.

Parameters:
widgetId - widget identifier, if null an identifier will be automatically created
label - for the table1D
varRealVec - GEntryRealVector to define the abscisa variable

GPAeroCoeffByOneVar

public GPAeroCoeffByOneVar(String widgetId,
                           String label,
                           fr.cnes.genius.highLevel.GEntryRealVector varRealVec,
                           CustomAeroCoeffByOneVarAbstract dragCoefFunction,
                           CustomAeroCoeffByOneVarAbstract liftCoefFunction)
Creates a new instance.

Parameters:
widgetId - widget identifier, if null an identifier will be automatically created
label - for the table1D
varRealVec - GEntryRealVector to define the abscisa variable
dragCoefFunction - drag coefficient function
liftCoefFunction - lift coefficient function
Method Detail

getLiftArray

public Double[] getLiftArray()
Gets the array of Doubles with the lift coefficients.

Returns:
the lift coefficients array

getDragArray

public Double[] getDragArray()
Gets the array of Doubles with the drag coefficients.

Returns:
the drag coefficients array

getVariableArray

public Double[] getVariableArray()
Gets the array of Doubles with the abscisa variables.

Returns:
the abscisa variables array

setNamesInConfigFile

protected void setNamesInConfigFile(String nameForVarVect,
                                    String nameForDragVect,
                                    String nameForLiftVect,
                                    String nameForTable)
Setter for the name in config file for each one of the components. The comments in config file are all set to null.

Parameters:
nameForVarVect - name for abscisa variable vector
nameForDragVect - name for drag coefficient vector
nameForLiftVect - name for lift coefficient vector
nameForTable - name for the table

setValue

public void setValue(CustomAeroCoeffByOneVarAbstract dragCoefFunction,
                     CustomAeroCoeffByOneVarAbstract liftCoefFunction)
              throws GPVehicleException
Setter for the values for abscisas, drag coefficients and lift coefficients.

Parameters:
dragCoefFunction - drag coefficient function
liftCoefFunction - lift coefficient function
Throws:
GPVehicleException - if the number of functions in the array is not two or if they have different abscisa values.

clear

public void clear()
           throws fr.cnes.genius.exception.GException

Specified by:
clear in interface fr.cnes.genius.main.GClear
Throws:
fr.cnes.genius.exception.GException

setDefaultValue

public void setDefaultValue(CustomAeroCoeffByOneVarAbstract dragCoefFunction,
                            CustomAeroCoeffByOneVarAbstract liftCoefFunction)
                     throws GPVehicleException
Setter for the default values for abscisas, drag coefficients and lift coefficients. It takes as default value the first value of each array.

Parameters:
dragCoefFunction - drag coefficient function
liftCoefFunction - lift coefficient function
Throws:
GPVehicleException - if the number of functions in the array is not two or if they have different abscisa values.

setSavedValue

public void setSavedValue(CustomAeroCoeffByOneVarAbstract dragCoefFunction,
                          CustomAeroCoeffByOneVarAbstract liftCoefFunction)
                   throws GPVehicleException
Setter for the saved values for abscisas, drag coefficients and lift coefficients.

Parameters:
dragCoefFunction - drag coefficient function
liftCoefFunction - lift coefficient function
Throws:
GPVehicleException - if the number of functions in the array is not two or if they have different abscisa values.


Copyright © 2017. All rights reserved.