fr.cnes.genopus.vehicle
Class GPAeroCoeffByTwoVar

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

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

Widget for expert aerodynamic coefficients.

Author:
ffsm
Default Constraint(s):
IndexClassItemConstraint
0GChoiceaoAandMachCoeffChoice0, 0, 0 => "newline , gapleft 0 , split 2"
0, 0, 1 => (null)
0, 1 => "split"
1GTable2DaoAandMachCxTable2D"newline , gapleft 0 , spanx 3"
(see table below)
2GTable2DaoAandMachCzTable2D"newline , gapleft 0 , spanx 3"
(see table below)

Default Constraint(s) for aoAandMachCxTable2D:
IndexClassItemConstraint
1, 0GLabeldataLabel"newline , spanx 2 , alignx Center"
1, 1GLabelcolumnHeaderLabel"newline , spanx 2 , split 2 , alignx Center"
1, 2GLabelrowHeaderLabel"newline , aligny Center"
1, 3GTabletable"wmax 450 , hmax 200"

Default Constraint(s) for aoAandMachCzTable2D:
IndexClassItemConstraint
2, 0GLabeldataLabel"newline , spanx 2 , alignx Center"
2, 1GLabelcolumnHeaderLabel"newline , spanx 2 , split 2 , alignx Center"
2, 2GLabelrowHeaderLabel"newline , aligny Center"
2, 3GTabletable"wmax 450 , hmax 200"


Nested Class Summary
 
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
GPAeroCoeffByTwoVar(String widgetId)
          Creates a new instance.
GPAeroCoeffByTwoVar(String widgetId, CustomAeroCoeffByAoAAndMach dragCoefFunction, CustomAeroCoeffByAoAAndMach liftCoefFunction)
          Creates a new instance.
 
Method Summary
 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 setDefaultValue(CustomAeroCoeffByAoAAndMach dragCoefFunction, CustomAeroCoeffByAoAAndMach 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(CustomAeroCoeffByAoAAndMach dragCoefFunction, CustomAeroCoeffByAoAAndMach 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()
          
 
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, 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, isCopyPasteEvent, launchInvalidPositionException, parseSimpleConstraint, processGEvent, setBusyCursor, setCommentInConfigFile, setConstraint, setCopyPasteMenuEnabled, setCurrentOperation, setDataForConstraintsByType, setDisplayIsModifiedIndicator, setElement, setGPanel, setGParent, setGUnitInConfigFile, setInnerDescendantConstraint, setNameAndCommentInConfigFile, setNameInConfigFile, setStatus, setStringConstraint, setToolTipText, setWidth, updateIsModifiedIndicator, 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

GPAeroCoeffByTwoVar

public GPAeroCoeffByTwoVar(String widgetId)
Creates a new instance.

Parameters:
widgetId - widget identifier, if null an identifier will be automatically created

GPAeroCoeffByTwoVar

public GPAeroCoeffByTwoVar(String widgetId,
                           CustomAeroCoeffByAoAAndMach dragCoefFunction,
                           CustomAeroCoeffByAoAAndMach liftCoefFunction)
Creates a new instance.

Parameters:
widgetId - widget identifier, if null an identifier will be automatically created
dragCoefFunction - drag coefficient function
liftCoefFunction - lift coefficient function
Method Detail

setWidgetId

public void setWidgetId(String widgetId)

Overrides:
setWidgetId in class fr.cnes.genius.main.GComponent

setConstraint

public void setConstraint(int widgetGap)
Setter for the constraints of the widget.

Parameters:
widgetGap - left gap from panel border to display the label of the widget.

getGChoiceAoAandMachCoeff

public 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.

Returns:
the choice with the visible coefficient table as a function of mach number and angle of attack.

getGTable2DAoAandMachCx

public 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.

Returns:
the table 2D to set the Cx table as a function of mach number and angle of attack.

getGTable2DDAoAandMachCz

public 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.

Returns:
the table 2D to set the Cz table as a function of mach number and angle of attack.

generic

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

Specified by:
generic in class fr.cnes.genius.lowLevel.GPanel
Throws:
fr.cnes.genius.exception.GException

display

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

Specified by:
display in interface fr.cnes.genius.main.GDisplay
Throws:
fr.cnes.genius.exception.GException

read

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

Specified by:
read in interface fr.cnes.genius.main.GReadWrite
Throws:
fr.cnes.genius.exception.GException

write

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

Specified by:
write in interface fr.cnes.genius.main.GReadWrite
Throws:
fr.cnes.genius.exception.GException

after

public void after(fr.cnes.genius.main.GEvent e)
           throws fr.cnes.genius.exception.GException

Specified by:
after in interface fr.cnes.genius.main.GListener
Throws:
fr.cnes.genius.exception.GException

before

public void before(fr.cnes.genius.main.GEvent e)
            throws fr.cnes.genius.exception.GException

Specified by:
before in interface fr.cnes.genius.main.GListener
Throws:
fr.cnes.genius.exception.GException

getDragAoAArray

public double[] getDragAoAArray()
Gets the array of Doubles with the angles of attack of the drag table.

Returns:
the angles of attack array of the drag table

getDragMachArray

public double[] getDragMachArray()
Gets the array of Doubles with the mach numbers of the drag table.

Returns:
the mach numbers array of the drag table

getDragData

public double[][] getDragData()
Gets the double array of Doubles with the data of the drag table.

Returns:
the data of the drag table

getLiftAoAArray

public double[] getLiftAoAArray()
Gets the array of Doubles with the angles of attack of the lift table.

Returns:
the angles of attack array of the lift table

getLiftMachArray

public double[] getLiftMachArray()
Gets the array of Doubles with the mach numbers of the lift table.

Returns:
the mach numbers array of the lift table

getLiftData

public double[][] getLiftData()
Gets the double array of Doubles with the data of the lift table.

Returns:
the data of the lift table

setValue

public void setValue(CustomAeroCoeffByAoAAndMach dragCoefFunction,
                     CustomAeroCoeffByAoAAndMach 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.

setDefaultValue

public void setDefaultValue(CustomAeroCoeffByAoAAndMach dragCoefFunction,
                            CustomAeroCoeffByAoAAndMach 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.

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

isEnabled

public boolean isEnabled()

Overrides:
isEnabled in class fr.cnes.genius.main.GComponent

setEnabled

public void setEnabled(boolean b)

Overrides:
setEnabled in class fr.cnes.genius.main.GComponent

isModified

public boolean isModified()

Overrides:
isModified in class fr.cnes.genius.main.GComponent

setDisplayIsModifiedIndicatorAll

public void setDisplayIsModifiedIndicatorAll(fr.cnes.genius.main.GComponent.DisplayIndicatorStatus displayIndicatorStatus)
Controls the display of the isModified indicator of all sub-widgets.

Parameters:
displayIndicatorStatus - if Always the modifiedStatusIndicator is always shown, if Never the modifiedStatusIndicator is never shown, if Automatic the modifiedStatusIndicator is shown as needed.

getSubComponent

public fr.cnes.genius.main.GComponent getSubComponent(int position)
                                               throws fr.cnes.genius.exception.GComponentException

Overrides:
getSubComponent in class fr.cnes.genius.main.GComponent
Throws:
fr.cnes.genius.exception.GComponentException

updateCondensedStatus

public void updateCondensedStatus(fr.cnes.genius.main.GCondensedStatus condensedStatus)

Specified by:
updateCondensedStatus in interface fr.cnes.genius.main.GCondensedStatusInterface


Copyright © 2017. All rights reserved.