fr.cnes.genopus.vehicle
Class GPVehicleAeroProps

java.lang.Object
  extended by fr.cnes.genius.main.GComponent
      extended by fr.cnes.genius.lowLevel.GPanel
          extended by fr.cnes.genopus.vehicle.GPVehicleAeroProps
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, GPPatrius<CustomAerodynamicProperties>, GPPatriusWithObjects<CustomAerodynamicProperties>

public class GPVehicleAeroProps
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, GPPatriusWithObjects<CustomAerodynamicProperties>

Widget for expert aerodynamic coefficients.

Author:
sumelzi
Default Constraint(s):
IndexClassItemConstraint
0GChoicecoeffsTypeChoice0, 0, 0 => "newline , gapleft 20 , split 2"
0, 0, 1 => (null)
0, 1 => "split"
1GEntryRealdragCoeffEntryReal1, 0, 0 => "newline , gapleft 20 , split 2"
1, 0, 1 => (null)
1, 1 => (null)
2GEntryRealliftCoeffEntryReal2, 0, 0 => "newline , gapleft 20 , split 2"
2, 0, 1 => (null)
2, 1 => (null)
3GChoicevariableChoice3, 0, 0 => "newline , gapleft 20 , split 2"
3, 0, 1 => (null)
3, 1 => "split"
4GPAeroCoeffByOneVaraltitudeTable1D"newline , gapleft 20 , spanx 3"
(see table below)
5GPAeroCoeffByOneVaraoATable1D"newline , gapleft 20 , spanx 3"
(see table below)
6GPAeroCoeffByOneVarmachTable1D"newline , gapleft 20 , spanx 3"
(see table below)
7GPAeroCoeffByTwoVaraoAandMachTable2D"newline , gapleft 20 , spanx 3"
(see table below)

Default Constraint(s) for altitudeTable1D:
IndexClassItemConstraint
4, 0GLabelWithIndicatortitle4, 0, 0 => "newline , split 2"
4, 0, 1 => "wrap"
4, 1GEntryRealVectoraltitudeRealVec"newline"
(see table below)
4, 2GEntryRealVectordragRealVec"newline"
(see table below)
4, 3GEntryRealVectorliftRealVec"newline"
(see table below)
4, 4GPopupListpopup_0(null)
4, 5GPopupListpopup_1(null)

Default Constraint(s) for altitudeRealVec:
IndexClassItemConstraint
4, 1, 0GLabelWithIndicatorlabel4, 1, 0, 0 => "split 2 , alignx Center"
4, 1, 0, 1 => (null)
4, 1, 1GRealFieldfield_1"newline"
4, 1, 2GPopupListunitPopup"alignx Center , cell 0 2"

Default Constraint(s) for dragRealVec:
IndexClassItemConstraint
4, 2, 0GLabelWithIndicatorlabel4, 2, 0, 0 => "split 2 , alignx Center"
4, 2, 0, 1 => (null)
4, 2, 1GRealFieldfield_1""

Default Constraint(s) for liftRealVec:
IndexClassItemConstraint
4, 3, 0GLabelWithIndicatorlabel4, 3, 0, 0 => "split 2 , alignx Center"
4, 3, 0, 1 => (null)
4, 3, 1GRealFieldfield_1""

Default Constraint(s) for aoATable1D:
IndexClassItemConstraint
5, 0GLabelWithIndicatortitle5, 0, 0 => "newline , split 2"
5, 0, 1 => "wrap"
5, 1GEntryRealVectoraoARealVec"newline"
(see table below)
5, 2GEntryRealVectordragRealVec"newline"
(see table below)
5, 3GEntryRealVectorliftRealVec"newline"
(see table below)
5, 4GPopupListpopup_0(null)
5, 5GPopupListpopup_1(null)

Default Constraint(s) for aoARealVec:
IndexClassItemConstraint
5, 1, 0GLabelWithIndicatorlabel5, 1, 0, 0 => "split 2 , alignx Center"
5, 1, 0, 1 => (null)
5, 1, 1GRealFieldfield_1"newline"
5, 1, 2GPopupListunitPopup"alignx Center , cell 0 2"

Default Constraint(s) for dragRealVec:
IndexClassItemConstraint
5, 2, 0GLabelWithIndicatorlabel5, 2, 0, 0 => "split 2 , alignx Center"
5, 2, 0, 1 => (null)
5, 2, 1GRealFieldfield_1""

Default Constraint(s) for liftRealVec:
IndexClassItemConstraint
5, 3, 0GLabelWithIndicatorlabel5, 3, 0, 0 => "split 2 , alignx Center"
5, 3, 0, 1 => (null)
5, 3, 1GRealFieldfield_1""

Default Constraint(s) for machTable1D:
IndexClassItemConstraint
6, 0GLabelWithIndicatortitle6, 0, 0 => "newline , split 2"
6, 0, 1 => "wrap"
6, 1GEntryRealVectormachRealVec"newline"
(see table below)
6, 2GEntryRealVectordragRealVec"newline"
(see table below)
6, 3GEntryRealVectorliftRealVec"newline"
(see table below)
6, 4GPopupListpopup_0(null)
6, 5GPopupListpopup_1(null)

Default Constraint(s) for machRealVec:
IndexClassItemConstraint
6, 1, 0GLabelWithIndicatorlabel6, 1, 0, 0 => "split 2 , alignx Center"
6, 1, 0, 1 => (null)
6, 1, 1GRealFieldfield_1"newline"

Default Constraint(s) for dragRealVec:
IndexClassItemConstraint
6, 2, 0GLabelWithIndicatorlabel6, 2, 0, 0 => "split 2 , alignx Center"
6, 2, 0, 1 => (null)
6, 2, 1GRealFieldfield_1""

Default Constraint(s) for liftRealVec:
IndexClassItemConstraint
6, 3, 0GLabelWithIndicatorlabel6, 3, 0, 0 => "split 2 , alignx Center"
6, 3, 0, 1 => (null)
6, 3, 1GRealFieldfield_1""

Default Constraint(s) for aoAandMachTable2D:
IndexClassItemConstraint
7, 0GChoiceaoAandMachCoeffChoice7, 0, 0, 0 => "newline , gapleft 0 , split 2"
7, 0, 0, 1 => (null)
7, 0, 1 => "split"
7, 1GTable2DaoAandMachCxTable2D"newline , gapleft 0 , spanx 3"
(see table below)
7, 2GTable2DaoAandMachCzTable2D"newline , gapleft 0 , spanx 3"
(see table below)

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

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


Nested Class Summary
static class GPVehicleAeroProps.AeroCoeffAsFunctionOfTypes
          Enum of available variables to define aerodynamic coefficients as function of the spacecraft state parameters.
static class GPVehicleAeroProps.AeroCoeffTypes
          Enum of available aerodynamic coefficients types.
 
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
 
Nested classes/interfaces inherited from interface fr.cnes.genopus.main.GPPatriusWithObjects
GPPatriusWithObjects.ArgsChecker
 
Field Summary
 
Fields inherited from class fr.cnes.genius.main.GComponent
NAME_ATTRIBUTE
 
Constructor Summary
GPVehicleAeroProps(String widgetId, String name, boolean showExpertCoeffSettings)
          Creates a new instance.
GPVehicleAeroProps(String widgetId, String name, CustomAerodynamicProperties aeroProp, boolean showExpertCoeffSettings)
          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()
          
 org.orekit.forces.atmospheres.Atmosphere getAtmosphere()
          Getter for the atmosphere.
 org.orekit.bodies.ExtendedOneAxisEllipsoid getEarthShape()
          Getter for the Earth shape.
 fr.cnes.genius.highLevel.GChoice getGChoiceCoeffsType()
          Getter for the choice with the type of coefficients.
 fr.cnes.genius.highLevel.GChoice getGChoiceVariable()
          Getter for the choice with the variable.
 fr.cnes.genius.highLevel.GEntryReal getGEntryRealDragCoeff()
          Getter for the entry real to set the drag coefficient.
 fr.cnes.genius.highLevel.GEntryReal getGEntryRealLiftCoeff()
          Getter for the entry real to set the lift coefficient.
 GPAeroCoeffByTwoVar getGPCoeffByTwoVarAoAandMach()
          Getter for the widget to set the coefficients as a function of angle of attack and mach number.
 fr.cnes.genius.highLevel.GTable1D getGTable1DAltitude()
          Getter for the table 1D to set the coefficients as a function of altitude.
 fr.cnes.genius.highLevel.GTable1D getGTable1DAoA()
          Getter for the table 1D to set the coefficients as a function of angle of attack.
 fr.cnes.genius.highLevel.GTable1D getGTable1DMach()
          Getter for the table 1D to set the coefficients as a function of mach number.
 CustomAerodynamicProperties getPatriusObject()
          Returns the PATRIUS object associated to a GENOPUS widget.
 CustomAerodynamicProperties getPatriusObject(Object... args)
          Returns the PATRIUS object associated to a GENOPUS widget.
 fr.cnes.genius.main.GComponent getSubComponent(int position)
          
 CustomVehicleSurfaceModel getSurfaceModel()
          Method to get the vehicle surface model that will allow to display/write/read expert settings for a tabulated sphere without solar panels, and to get the aerodynamic properties.
 boolean isEnabled()
          
 boolean isModified()
          
 void read()
          
 void setAerodynamicProperties(CustomAerodynamicProperties aeroProp)
          Setter for the aerodynamic property.
 void setAtmosphere(org.orekit.forces.atmospheres.Atmosphere atmosphere)
          Setter for the atmosphere.
 void setConstraint(int widgetGap)
          Setter for the constraints of the widget.
 void setDefaultAerodynamicProperties(CustomAerodynamicProperties aeroProp)
          Setter for the default aerodynamic property.
 void setDisplayIsModifiedIndicatorAll(fr.cnes.genius.main.GComponent.DisplayIndicatorStatus displayIndicatorStatus)
          Controls the display of the isModified indicator of all sub-widgets.
 void setEarthShape(org.orekit.bodies.ExtendedOneAxisEllipsoid earthShape)
          Setter for the Earth shape.
 void setEnabled(boolean b)
          
 void setSavedAerodynamicProperties(CustomAerodynamicProperties aeroProp)
          Setter for the saved aerodynamic property.
 void setSurfaceModel(CustomVehicleSurfaceModel vehicleSurfaceModel)
          Method to set the vehicle surface model that will allow to display/write/read expert settings for a tabulated sphere without solar panels, and to get the aerodynamic properties.
 void setWidgetId(String widgetId)
          
 void updateCondensedStatus(fr.cnes.genius.main.GCondensedStatus condensedStatus)
          
protected  void updateIsModifiedIndicator()
          
 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, 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

GPVehicleAeroProps

public GPVehicleAeroProps(String widgetId,
                          String name,
                          boolean showExpertCoeffSettings)
Creates a new instance.

Parameters:
widgetId - widget identifier, if null an identifier will be automatically created
name - name in configuration file
showExpertCoeffSettings - if true tabulated coefficients appear too for sphere shape without solar panels

GPVehicleAeroProps

public GPVehicleAeroProps(String widgetId,
                          String name,
                          CustomAerodynamicProperties aeroProp,
                          boolean showExpertCoeffSettings)
Creates a new instance.

Parameters:
widgetId - widget identifier, if null an identifier will be automatically created
name - name in configuration file
aeroProp - aerodynamic property
showExpertCoeffSettings - if true tabulated coefficients appear too for sphere shape without solar panels
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.

getSurfaceModel

public CustomVehicleSurfaceModel getSurfaceModel()
Method to get the vehicle surface model that will allow to display/write/read expert settings for a tabulated sphere without solar panels, and to get the aerodynamic properties.

Returns:
the vehicle surface model.

setSurfaceModel

public void setSurfaceModel(CustomVehicleSurfaceModel vehicleSurfaceModel)
Method to set the vehicle surface model that will allow to display/write/read expert settings for a tabulated sphere without solar panels, and to get the aerodynamic properties. It is mandatory to call this method just before calling #getPatriusObject(ExtendedOneAxisEllipsoid), display() , read() and write() methods.

Parameters:
vehicleSurfaceModel - vehicle surface model.

getGChoiceCoeffsType

public fr.cnes.genius.highLevel.GChoice getGChoiceCoeffsType()
Getter for the choice with the type of coefficients.

Returns:
the choice with the type of coefficients.

getGChoiceVariable

public fr.cnes.genius.highLevel.GChoice getGChoiceVariable()
Getter for the choice with the variable.

Returns:
the choice with the variable.

getGEntryRealDragCoeff

public fr.cnes.genius.highLevel.GEntryReal getGEntryRealDragCoeff()
Getter for the entry real to set the drag coefficient.

Returns:
the entry real to set the drag coefficient.

getGEntryRealLiftCoeff

public fr.cnes.genius.highLevel.GEntryReal getGEntryRealLiftCoeff()
Getter for the entry real to set the lift coefficient.

Returns:
the entry real to set the lift coefficient.

getGTable1DAltitude

public fr.cnes.genius.highLevel.GTable1D getGTable1DAltitude()
Getter for the table 1D to set the coefficients as a function of altitude.

Returns:
the table 1D to set the coefficients as a function of altitude.

getGTable1DAoA

public fr.cnes.genius.highLevel.GTable1D getGTable1DAoA()
Getter for the table 1D to set the coefficients as a function of angle of attack.

Returns:
the table 1D to set the coefficients as a function of angle of attack.

getGTable1DMach

public fr.cnes.genius.highLevel.GTable1D getGTable1DMach()
Getter for the table 1D to set the coefficients as a function of mach number.

Returns:
the table 1D to set the coefficients as a function of mach number.

getGPCoeffByTwoVarAoAandMach

public GPAeroCoeffByTwoVar getGPCoeffByTwoVarAoAandMach()
Getter for the widget to set the coefficients as a function of angle of attack and mach number.

Returns:
the widget to set the coefficients as a function of angle of attack and mach number.

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

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

getPatriusObject

public CustomAerodynamicProperties getPatriusObject()
                                             throws GPVehicleException
Returns the PATRIUS object associated to a GENOPUS widget.

Specified by:
getPatriusObject in interface GPPatrius<CustomAerodynamicProperties>
Returns:
the PATRIUS object associated to the widget.
Throws:
GPVehicleException - if the main part shape is undefined

getPatriusObject

public CustomAerodynamicProperties getPatriusObject(Object... args)
                                             throws fr.cnes.genius.exception.GException
Returns the PATRIUS object associated to a GENOPUS widget.

Specified by:
getPatriusObject in interface GPPatriusWithObjects<CustomAerodynamicProperties>
Parameters:
args - The parameters are 0: VehicleSurfaceModel, 1: ExtendedOneAxisEllipsoid, 2: Atmosphere.
Returns:
the PATRIUS object associated to the widget.
Throws:
fr.cnes.genius.exception.GException - if the PATRIUS object cannot be created from the widget data.

setAerodynamicProperties

public void setAerodynamicProperties(CustomAerodynamicProperties aeroProp)
                              throws GPVehicleException
Setter for the aerodynamic property.

Parameters:
aeroProp - aerodynamic property
Throws:
GPVehicleException - in case of problem with the aerodynamic property.

setDefaultAerodynamicProperties

public void setDefaultAerodynamicProperties(CustomAerodynamicProperties aeroProp)
                                     throws GPVehicleException
Setter for the default aerodynamic property.

Parameters:
aeroProp - default aerodynamic property.
Throws:
GPVehicleException - in case of problem with the aerodynamic property.

setSavedAerodynamicProperties

public void setSavedAerodynamicProperties(CustomAerodynamicProperties aeroProp)
                                   throws GPVehicleException
Setter for the saved aerodynamic property.

Parameters:
aeroProp - saved aerodynamic property
Throws:
GPVehicleException - in case of problem with the aerodynamic property.

setEarthShape

public void setEarthShape(org.orekit.bodies.ExtendedOneAxisEllipsoid earthShape)
Setter for the Earth shape.

Parameters:
earthShape - the Earth's shape

getEarthShape

public org.orekit.bodies.ExtendedOneAxisEllipsoid getEarthShape()
Getter for the Earth shape.

Returns:
the Earth's shape

setAtmosphere

public void setAtmosphere(org.orekit.forces.atmospheres.Atmosphere atmosphere)
Setter for the atmosphere.

Parameters:
atmosphere - the atmosphere

getAtmosphere

public org.orekit.forces.atmospheres.Atmosphere getAtmosphere()
Getter for the atmosphere.

Returns:
the atmosphere

updateCondensedStatus

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

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

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.

updateIsModifiedIndicator

protected void updateIsModifiedIndicator()

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

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


Copyright © 2017. All rights reserved.