fr.cnes.genopus.vehicle
Class GPVehicle

java.lang.Object
  extended by fr.cnes.genius.main.GComponent
      extended by fr.cnes.genius.lowLevel.GPanel
          extended by fr.cnes.genopus.vehicle.GPVehicle
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, fr.cnes.genius.observer.GObservable, GPPatrius<CustomVehicle>, GPPatriusWithObjects<CustomVehicle>, GFuelTankEngineProvider

public class GPVehicle
extends fr.cnes.genius.lowLevel.GPanel
implements fr.cnes.genius.main.GReadWrite, fr.cnes.genius.main.GListener, fr.cnes.genius.main.GClear, fr.cnes.genius.main.GDisplay, fr.cnes.genius.main.GCondensedStatusInterface, fr.cnes.genius.observer.GObservable, GFuelTankEngineProvider, GPPatriusWithObjects<CustomVehicle>

Widger for vehicle definition panel.

Author:
ffsm
Default Constraint(s):
IndexClassItemConstraint
0GLabelWithIndicatorlabel0, 0 => "newline , gapleft 0 , split 2"
0, 1 => "wmin 167"
1GEntryRealtotalMassEntryReal1, 0, 0 => "newline , gapleft 20 , split 2"
1, 0, 1 => (null)
1, 1 => "split 2"
1, 2 => (null)
2GCheckBoxWithIndicatormassPropCheckbox2, 0, 0 => "newline , gapleft 20 , split 2"
2, 0, 1 => (null)
2, 1 => (null)
3GPVehicleMassPropsmassProps"newline"
(see table below)
4GPVehicleShapevehicleShape"newline"
(see table below)
5GCheckBoxWithIndicatorpropulsivePropCheckbox5, 0, 0 => "newline , gapleft 20 , split 2"
5, 0, 1 => (null)
5, 1 => (null)
6GPVehiclePropulsivePropspropulsiveProps"newline , spanx 4 , growx"
(see table below)
7GCheckBoxWithIndicatoraeroPropCheckbox7, 0, 0 => "newline , gapleft 20 , split 2"
7, 0, 1 => (null)
7, 1 => (null)
8GPVehicleAeroPropsaeroProps"newline , spanx 4 , growx"
(see table below)
9GCheckBoxWithIndicatorradiativePropCheckbox9, 0, 0 => "newline , gapleft 20 , split 2"
9, 0, 1 => (null)
9, 1 => (null)
10GPVehicleRadiativePropsradiativeProps"newline"
(see table below)

Default Constraint(s) for massProps:
IndexClassItemConstraint
3, 0GEntryRealdryMassEntryReal3, 0, 0, 0 => "newline , gapleft 40 , split 2"
3, 0, 0, 1 => (null)
3, 0, 1 => "split 2"
3, 0, 2 => (null)

Default Constraint(s) for vehicleShape:
IndexClassItemConstraint
4, 0GLabelWithIndicatorlabel4, 0, 0 => "newline , gapleft 20 , split 2"
4, 0, 1 => (null)
4, 1GChoiceshapeChoice4, 1, 0, 0 => "newline , gapleft 40 , split 2"
4, 1, 0, 1 => (null)
4, 1, 1 => "split"
4, 2GChoiceshapeDefChoice4, 2, 0, 0 => "newline , gapleft 40 , split 2"
4, 2, 0, 1 => (null)
4, 2, 1 => "split"
4, 3GEntryRealsphRadEntryReal4, 3, 0, 0 => "newline , gapleft 60 , split 2"
4, 3, 0, 1 => (null)
4, 3, 1 => "split 2"
4, 3, 2 => (null)
4, 4GEntryRealsphSurfEntryReal4, 4, 0, 0 => "newline , gapleft 60 , split 2"
4, 4, 0, 1 => (null)
4, 4, 1 => "split 2"
4, 4, 2 => (null)
4, 5GEntryRealparallLengthEntryReal4, 5, 0, 0 => "newline , gapleft 60 , split 2"
4, 5, 0, 1 => (null)
4, 5, 1 => "split 2"
4, 5, 2 => (null)
4, 6GEntryRealparallWidthEntryReal4, 6, 0, 0 => "newline , gapleft 60 , split 2"
4, 6, 0, 1 => (null)
4, 6, 1 => "split 2"
4, 6, 2 => (null)
4, 7GEntryRealparallHeightEntryReal4, 7, 0, 0 => "newline , gapleft 60 , split 2"
4, 7, 0, 1 => (null)
4, 7, 1 => "split 2"
4, 7, 2 => (null)
4, 8GEntryRealparallXSurfEntryReal4, 8, 0, 0 => "newline , gapleft 60 , split 2"
4, 8, 0, 1 => (null)
4, 8, 1 => "split 2"
4, 8, 2 => (null)
4, 9GEntryRealparallYSurfEntryReal4, 9, 0, 0 => "newline , gapleft 60 , split 2"
4, 9, 0, 1 => (null)
4, 9, 1 => "split 2"
4, 9, 2 => (null)
4, 10GEntryRealparallZSurfEntryReal4, 10, 0, 0 => "newline , gapleft 60 , split 2"
4, 10, 0, 1 => (null)
4, 10, 1 => "split 2"
4, 10, 2 => (null)
4, 11GEntryRealcylRadEntryReal4, 11, 0, 0 => "newline , gapleft 60 , split 2"
4, 11, 0, 1 => (null)
4, 11, 1 => "split 2"
4, 11, 2 => (null)
4, 12GEntryRealcylLengthEntryReal4, 12, 0, 0 => "newline , gapleft 60 , split 2"
4, 12, 0, 1 => (null)
4, 12, 1 => "split 2"
4, 12, 2 => (null)
4, 13GEntryRealcylXSurfEntryReal4, 13, 0, 0 => "newline , gapleft 60 , split 2"
4, 13, 0, 1 => (null)
4, 13, 1 => "split 2"
4, 13, 2 => (null)
4, 14GEntryRealcylTSurfEntryReal4, 14, 0, 0 => "newline , gapleft 60 , split 2"
4, 14, 0, 1 => (null)
4, 14, 1 => "split 2"
4, 14, 2 => (null)
4, 15GCheckBoxWithIndicatorsolarPanelsChoice4, 15, 0, 0 => "newline , gapleft 40 , split 2"
4, 15, 0, 1 => (null)
4, 15, 1 => (null)
4, 16GEntryRealpanelXSurfEntryReal4, 16, 0, 0 => "newline , gapleft 60 , split 2"
4, 16, 0, 1 => (null)
4, 16, 1 => "split 2"
4, 16, 2 => (null)
4, 17GEntryRealpanelYSurfEntryReal4, 17, 0, 0 => "newline , gapleft 60 , split 2"
4, 17, 0, 1 => (null)
4, 17, 1 => "split 2"
4, 17, 2 => (null)
4, 18GEntryRealpanelZSurfEntryReal4, 18, 0, 0 => "newline , gapleft 60 , split 2"
4, 18, 0, 1 => (null)
4, 18, 1 => "split 2"
4, 18, 2 => (null)

Default Constraint(s) for propulsiveProps:
IndexClassItemConstraint
6, 0GEntryRealergMassEntryReal6, 0, 0, 0 => "newline , gapleft 40 , split 2"
6, 0, 0, 1 => (null)
6, 0, 1 => (null)
6, 0, 2 => (null)
6, 1GSeparatorenginesSeparator"newline , gapleft 40 , spanx 4 , growx"
6, 2GOpenCloseButtonenginesOpenCloseButton"newline , gapleft 20 , split 2"
6, 3GLabelWithIndicatorenginesLabel6, 3, 0 => (null)
6, 3, 1 => (null)
6, 4GComponentListenginesList"newline , gapleft 40 , spanx 4 , growx"
(see table below)
6, 5GSeparatortanksSeparator"newline , gapleft 40 , spanx 4 , growx"
6, 6GOpenCloseButtontanksOpenCloseButton"newline , gapleft 20 , split 2"
6, 7GLabelWithIndicatortanksLabel6, 7, 0 => (null)
6, 7, 1 => (null)
6, 8GComponentListtanksList"newline , gapleft 40 , spanx 4 , growx"
(see table below)

Default Constraint(s) for enginesList:
IndexClassItemConstraint
6, 4, 0GHeaderPanelheader"hmin 40"
(see table below)
6, 4, 1GLabelspaceLabel"newline , height 0"

Default Constraint(s) for header:
IndexClassItemConstraint
6, 4, 0, 0GEntryInttotalNumberItemsEntry6, 4, 0, 0, 0, 0 => "newline , split 2"
6, 4, 0, 0, 0, 1 => (null)
6, 4, 0, 0, 1 => "skip 2 , width 50"
6, 4, 0, 1GEntryIntcurrentItemRankEntry6, 4, 0, 1, 0, 0 => "split 2"
6, 4, 0, 1, 0, 1 => (null)
6, 4, 0, 1, 1 => "width 50"
6, 4, 0, 2GButtondecrButton"alignx Right , height 20"
6, 4, 0, 3GButtonincrButton"height 20"
6, 4, 0, 4GPopupListmenu(null)

Default Constraint(s) for tanksList:
IndexClassItemConstraint
6, 8, 0GHeaderPanelheader"hmin 40"
(see table below)
6, 8, 1GLabelspaceLabel"newline , height 0"

Default Constraint(s) for header:
IndexClassItemConstraint
6, 8, 0, 0GEntryInttotalNumberItemsEntry6, 8, 0, 0, 0, 0 => "newline , split 2"
6, 8, 0, 0, 0, 1 => (null)
6, 8, 0, 0, 1 => "skip 2 , width 50"
6, 8, 0, 1GEntryIntcurrentItemRankEntry6, 8, 0, 1, 0, 0 => "split 2"
6, 8, 0, 1, 0, 1 => (null)
6, 8, 0, 1, 1 => "width 50"
6, 8, 0, 2GButtondecrButton"alignx Right , height 20"
6, 8, 0, 3GButtonincrButton"height 20"
6, 8, 0, 4GPopupListmenu(null)

Default Constraint(s) for aeroProps:
IndexClassItemConstraint
8, 0GChoicecoeffsTypeChoice8, 0, 0, 0 => "newline , gapleft 40 , split 2"
8, 0, 0, 1 => (null)
8, 0, 1 => "split"
8, 1GEntryRealdragCoeffEntryReal8, 1, 0, 0 => "newline , gapleft 40 , split 2"
8, 1, 0, 1 => (null)
8, 1, 1 => (null)
8, 2GEntryRealliftCoeffEntryReal8, 2, 0, 0 => "newline , gapleft 40 , split 2"
8, 2, 0, 1 => (null)
8, 2, 1 => (null)
8, 3GChoicevariableChoice8, 3, 0, 0 => "newline , gapleft 40 , split 2"
8, 3, 0, 1 => (null)
8, 3, 1 => "split"
8, 4GPAeroCoeffByOneVaraltitudeTable1D"newline , gapleft 40 , spanx 3"
(see table below)
8, 5GPAeroCoeffByOneVaraoATable1D"newline , gapleft 40 , spanx 3"
(see table below)
8, 6GPAeroCoeffByOneVarmachTable1D"newline , gapleft 40 , spanx 3"
(see table below)
8, 7GPAeroCoeffByTwoVaraoAandMachTable2D"newline , gapleft 40 , spanx 3"
(see table below)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Default Constraint(s) for radiativeProps:
IndexClassItemConstraint
10, 0GPRadiativePropertyradiativeProperty"newline"
(see table below)
10, 1GCheckBoxWithIndicatorinfraPropCheckbox10, 1, 0, 0 => "newline , gapleft 40 , split 2"
10, 1, 0, 1 => (null)
10, 1, 1 => (null)
10, 2GPRadiativeIRPropertyradiativeIRProperty"newline"
(see table below)

Default Constraint(s) for radiativeProperty:
IndexClassItemConstraint
10, 0, 0GLabelWithIndicatorlabel10, 0, 0, 0 => "newline , gapleft 40 , split 2"
10, 0, 0, 1 => (null)
10, 0, 1GEntryRealdiffuseCoefEntryReal10, 0, 1, 0, 0 => "newline , gapleft 60 , split 2"
10, 0, 1, 0, 1 => (null)
10, 0, 1, 1 => (null)
10, 0, 2GEntryRealspecularCoefEntryReal10, 0, 2, 0, 0 => "newline , gapleft 60 , split 2"
10, 0, 2, 0, 1 => (null)
10, 0, 2, 1 => (null)
10, 0, 3GEntryRealdiffuseCoefEntryReal10, 0, 3, 0, 0 => "newline , gapleft 60 , split 2"
10, 0, 3, 0, 1 => (null)
10, 0, 3, 1 => (null)

Default Constraint(s) for radiativeIRProperty:
IndexClassItemConstraint
10, 2, 0GLabelWithIndicatorlabel10, 2, 0, 0 => "newline , gapleft 60 , split 2"
10, 2, 0, 1 => (null)
10, 2, 1GEntryRealdiffuseCoefEntryReal10, 2, 1, 0, 0 => "newline , gapleft 80 , split 2"
10, 2, 1, 0, 1 => (null)
10, 2, 1, 1 => (null)
10, 2, 2GEntryRealspecularCoefEntryReal10, 2, 2, 0, 0 => "newline , gapleft 80 , split 2"
10, 2, 2, 0, 1 => (null)
10, 2, 2, 1 => (null)
10, 2, 3GEntryRealdiffuseCoefEntryReal10, 2, 3, 0, 0 => "newline , gapleft 80 , split 2"
10, 2, 3, 0, 1 => (null)
10, 2, 3, 1 => (null)


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
 
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
GPVehicle(String label)
          Create a new instance with all properties active.
GPVehicle(String label, boolean showMassProperties, boolean showPropulsiveProperties, boolean showAeroProperties, boolean showAeroExpertSettings, boolean showRadiativeProperties)
          Create a new instance.
GPVehicle(String label, CustomVehicle vehicle)
          Create a new instance with all properties active and with an initial vehicle.
GPVehicle(String label, CustomVehicle vehicle, boolean showMassProperties, boolean showPropulsiveProperties, boolean showAeroProperties, boolean showAeroExpertSettings, boolean showRadiativeProperties)
          Create a new instance with an initial vehicle.
GPVehicle(String widgetId, String label)
          Create a new instance with all properties active.
GPVehicle(String widgetId, String label, boolean showMassProperties, boolean showPropulsiveProperties, boolean showAeroProperties, boolean showAeroExpertSettings, boolean showRadiativeProperties)
          Create a new instance.
GPVehicle(String widgetId, String label, CustomVehicle vehicle, boolean showMassProperties, boolean showPropulsiveProperties, boolean showAeroProperties, boolean showAeroExpertSettings, boolean showRadiativeProperties)
          Create a new instance with an initial vehicle.
 
Method Summary
 void after(fr.cnes.genius.main.GEvent e)
          
 void attachCopyPasteMenu(String label, fr.cnes.genius.main.GComponent.CopyPasteOperation... operationList)
          
 void before(fr.cnes.genius.main.GEvent e)
          
 void clear()
           
 void display()
          
 void generic()
          
 CustomAerodynamicProperties getAerodynamicProperties()
          Get aerodynamic properties.
 fr.cnes.sirius.patrius.assembly.Assembly getAssembly(org.orekit.frames.Frame propagationFrame)
          Get vehicle assembly.
 org.orekit.forces.atmospheres.Atmosphere getAtmosphere()
          Getter for the atmosphere.
 org.orekit.bodies.ExtendedOneAxisEllipsoid getEarthShape()
          Getter for the Earth shape.
 ArrayList<CustomEngine> getEngineList()
          Get list of engines.
 String[] getEngineNames()
          Method to get the list of engine names.
 ArrayList<CustomFuelTank> getFuelTankList()
          Get list of tanks.
 fr.cnes.genius.highLevel.GCheckBoxWithIndicator getGCheckBoxAeroProps()
          Getter for the checkbox for the aerodynamic properties visibility.
 fr.cnes.genius.highLevel.GCheckBoxWithIndicator getGCheckBoxMassProps()
          Getter for the checkbox for the mass properties visibility.
 fr.cnes.genius.highLevel.GCheckBoxWithIndicator getGCheckBoxPropulsiveProps()
          Getter for the checkbox for the propulsive properties visibility.
 fr.cnes.genius.highLevel.GCheckBoxWithIndicator getGCheckBoxRadiativeProps()
          Getter for the checkbox for the radiative properties visibility.
 fr.cnes.genius.lowLevel.GSeparator getGEntryRealDragCoeff(int i)
          Getter for the different separators.
 fr.cnes.genius.highLevel.GEntryReal getGEntryRealTotalMass()
          Getter for the entry real for the total mass.
 fr.cnes.genius.highLevel.GLabelWithIndicator getGLabel()
          Getter for the label of the widget.
 GPVehicleAeroProps getGPVehicleAeroProps()
          Getter for the widget to set the vehicle aerodynamic properties.
 GPVehicleMassProps getGPVehicleMassProps()
          Getter for the entry real to set the dry mass.
 GPVehiclePropulsiveProps getGPVehiclePropulsiveProps()
          Getter for the widget to set the vehicle propulsive properties.
 GPVehicleRadiativeProps getGPVehicleRadiativeProps()
          Getter for the widget to set the vehicle radiative properties.
 GPVehicleShape getGPVehicleShape()
          Getter for the widget to set the vehicle shape.
 fr.cnes.genius.main.GComponent getGSeparatorAeroProps()
          Getter for the separator before the aerodynamic properties sub widget.
 fr.cnes.genius.main.GComponent getGSeparatorMassProps()
          Getter for the separator before the mass properties sub widget.
 fr.cnes.genius.main.GComponent getGSeparatorPropulsiveProps()
          Getter for the separator before the propulsive properties sub widget.
 fr.cnes.genius.main.GComponent getGSeparatorRadiativeProps()
          Getter for the separator before the radiative properties sub widget.
 fr.cnes.genius.main.GComponent getGSeparatorVehicleShape()
          Getter for the separator before the vehicle shape sub widget.
 fr.cnes.sirius.patrius.assembly.properties.MassProperty getMassProperty()
          Get the mass property.
 CustomVehicle getPatriusObject()
          Get the vehicle data.
 CustomVehicle getPatriusObject(Object... args)
          Returns the PATRIUS object associated to a GENOPUS widget.
 CustomRadiativeProperties getRadiativeProperties()
          Get radiative properties.
 fr.cnes.genius.main.GComponent getSubComponent(int position)
          
 String[] getTankNames()
          Method to get the list of tank names.
 boolean hasAeroProperties()
          Boolean to know if aerodynamic properties are activated.
 boolean hasMassProperties()
          Boolean to know if mass properties are activated.
 boolean hasPropulsiveProperties()
          Boolean to know if propulsive properties are activated.
 boolean hasRadiativeProperties()
          Boolean to know if radiative properties are activated.
 boolean isEnabled()
          
 boolean isModified()
          
 void notifyObservers(Object... args)
          
 void read()
          
 void registerObserver(fr.cnes.genius.observer.GObserver observer)
          
 void setAtmosphere(org.orekit.forces.atmospheres.Atmosphere atmosphere)
          Setter for the atmosphere.
 void setConstraint(int widgetGap)
          Setter for the constraints of the widget.
 void setDefaultVehicle(CustomVehicle vehicle)
          Setter for the default vehicle.
 void setEarthShape(org.orekit.bodies.ExtendedOneAxisEllipsoid earthShape)
          Setter for the Earth shape.
 void setEnabled(boolean b)
          
 void setMassPropertiesVisible(boolean visible)
          Sets the mass properties and the total mass visible / invisible.
 void setSavedVehicle(CustomVehicle vehicle)
          Setter for the saved vehicle.
 void setVehicle(CustomVehicle vehicle)
          Setter for the vehicle.
 void setWidgetId(String widgetId)
          
 void unregisterObserver(fr.cnes.genius.observer.GObserver observer)
          
 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, 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

GPVehicle

public GPVehicle(String label)
Create a new instance with all properties active. The widget id will be assigned automatically. The Earth's shape must be initialized for aerodynamic properties. The atmosphere is initialized to a SimpleExponentialAtmosphere with rho0 = 0.0004, h0 = 42000.0 and hscale = 7500.0.

Parameters:
label - widget label

GPVehicle

public GPVehicle(String widgetId,
                 String label)
Create a new instance with all properties active. The widget id will be assigned automatically. The Earth's shape must be initialized for aerodynamic properties. The atmosphere is initialized to a SimpleExponentialAtmosphere with rho0 = 0.0004, h0 = 42000.0 and hscale = 7500.0.

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

GPVehicle

public GPVehicle(String label,
                 boolean showMassProperties,
                 boolean showPropulsiveProperties,
                 boolean showAeroProperties,
                 boolean showAeroExpertSettings,
                 boolean showRadiativeProperties)
Create a new instance. The widget id will be assigned automatically.

Parameters:
label - widget label
showMassProperties - if true, masses appear (dry and total)
showPropulsiveProperties - if true, propulsive properties appear
showAeroProperties - if true, aerodynamic properties appear
showAeroExpertSettings - if true and showAeroProperties true, tabulated coefficients appear too for sphere shape
showRadiativeProperties - if true, radiative properties appear

GPVehicle

public GPVehicle(String widgetId,
                 String label,
                 boolean showMassProperties,
                 boolean showPropulsiveProperties,
                 boolean showAeroProperties,
                 boolean showAeroExpertSettings,
                 boolean showRadiativeProperties)
Create a new instance.

Parameters:
widgetId - widget identifier, if null an identifier will be automatically created
label - widget label
showMassProperties - if true, masses appear (dry and total)
showPropulsiveProperties - if true, propulsive properties appear
showAeroProperties - if true, aerodynamic properties appear
showAeroExpertSettings - if true and showAeroProperties true, tabulated coefficients appear too for sphere shape
showRadiativeProperties - if true, radiative properties appear

GPVehicle

public GPVehicle(String label,
                 CustomVehicle vehicle)
Create a new instance with all properties active and with an initial vehicle. The widget id will be assigned automatically. The Earth's shape must be initialized for aerodynamic properties. The atmosphere is initialized to a SimpleExponentialAtmosphere with rho0 = 0.0004, h0 = 42000.0 and hscale = 7500.0.

Parameters:
label - widget label
vehicle - initial vehicle to be set in the widget.

GPVehicle

public GPVehicle(String label,
                 CustomVehicle vehicle,
                 boolean showMassProperties,
                 boolean showPropulsiveProperties,
                 boolean showAeroProperties,
                 boolean showAeroExpertSettings,
                 boolean showRadiativeProperties)
Create a new instance with an initial vehicle. The widget id will be assigned automatically.

Parameters:
label - widget label
vehicle - initial vehicle to be set in the widget. IMPORTANT: It must be compatible with the different show*Properties arguments.
showMassProperties - if true, masses appear (dry and total)
showPropulsiveProperties - if true, propulsive properties appear
showAeroProperties - if true, aerodynamic properties appear
showAeroExpertSettings - if true and showAeroProperties true, tabulated coefficients appear too for sphere shape
showRadiativeProperties - if true, radiative properties appear

GPVehicle

public GPVehicle(String widgetId,
                 String label,
                 CustomVehicle vehicle,
                 boolean showMassProperties,
                 boolean showPropulsiveProperties,
                 boolean showAeroProperties,
                 boolean showAeroExpertSettings,
                 boolean showRadiativeProperties)
Create a new instance with an initial vehicle.

Parameters:
widgetId - widget identifier, if null an identifier will be automatically created
label - widget label
vehicle - initial vehicle to be set in the widget. IMPORTANT: It must be compatible with the different show*Properties arguments.
showMassProperties - if true, masses appear (dry and total)
showPropulsiveProperties - if true, propulsive properties appear
showAeroProperties - if true, aerodynamic properties appear
showAeroExpertSettings - if true and showAeroProperties true, tabulated coefficients appear too for sphere shape
showRadiativeProperties - if true, radiative properties appear
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.

attachCopyPasteMenu

public void attachCopyPasteMenu(String label,
                                fr.cnes.genius.main.GComponent.CopyPasteOperation... operationList)

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

getGLabel

public fr.cnes.genius.highLevel.GLabelWithIndicator getGLabel()
Getter for the label of the widget.

Returns:
the label of the widget.

getGEntryRealTotalMass

public fr.cnes.genius.highLevel.GEntryReal getGEntryRealTotalMass()
Getter for the entry real for the total mass.

Returns:
the entry real for the total mass.

getGSeparatorMassProps

public fr.cnes.genius.main.GComponent getGSeparatorMassProps()
Getter for the separator before the mass properties sub widget.

Returns:
the separator before the mass properties sub widget

getGCheckBoxMassProps

public fr.cnes.genius.highLevel.GCheckBoxWithIndicator getGCheckBoxMassProps()
Getter for the checkbox for the mass properties visibility.

Returns:
the checkbox for the mass properties visibility.

getGPVehicleMassProps

public GPVehicleMassProps getGPVehicleMassProps()
Getter for the entry real to set the dry mass.

Returns:
the entry real to set the dry mass.

getGSeparatorVehicleShape

public fr.cnes.genius.main.GComponent getGSeparatorVehicleShape()
Getter for the separator before the vehicle shape sub widget.

Returns:
the separator before the vehicle shape sub widget

getGPVehicleShape

public GPVehicleShape getGPVehicleShape()
Getter for the widget to set the vehicle shape.

Returns:
the widget to set the vehicle shape.

getGSeparatorPropulsiveProps

public fr.cnes.genius.main.GComponent getGSeparatorPropulsiveProps()
Getter for the separator before the propulsive properties sub widget.

Returns:
the separator before the propulsive properties sub widget

getGCheckBoxPropulsiveProps

public fr.cnes.genius.highLevel.GCheckBoxWithIndicator getGCheckBoxPropulsiveProps()
Getter for the checkbox for the propulsive properties visibility.

Returns:
the checkbox for the propulsive properties visibility.

getGPVehiclePropulsiveProps

public GPVehiclePropulsiveProps getGPVehiclePropulsiveProps()
Getter for the widget to set the vehicle propulsive properties.

Returns:
the widget to set the vehicle propulsive properties.

getGSeparatorAeroProps

public fr.cnes.genius.main.GComponent getGSeparatorAeroProps()
Getter for the separator before the aerodynamic properties sub widget.

Returns:
the separator before the aerodynamic properties sub widget

getGCheckBoxAeroProps

public fr.cnes.genius.highLevel.GCheckBoxWithIndicator getGCheckBoxAeroProps()
Getter for the checkbox for the aerodynamic properties visibility.

Returns:
the checkbox for the aerodynamic properties visibility.

getGPVehicleAeroProps

public GPVehicleAeroProps getGPVehicleAeroProps()
Getter for the widget to set the vehicle aerodynamic properties.

Returns:
the widget to set the vehicle aerodynamic properties.

getGSeparatorRadiativeProps

public fr.cnes.genius.main.GComponent getGSeparatorRadiativeProps()
Getter for the separator before the radiative properties sub widget.

Returns:
the separator before the radiative properties sub widget

getGCheckBoxRadiativeProps

public fr.cnes.genius.highLevel.GCheckBoxWithIndicator getGCheckBoxRadiativeProps()
Getter for the checkbox for the radiative properties visibility.

Returns:
the checkbox for the radiative properties visibility.

getGPVehicleRadiativeProps

public GPVehicleRadiativeProps getGPVehicleRadiativeProps()
Getter for the widget to set the vehicle radiative properties.

Returns:
the widget to set the vehicle radiative properties.

getGEntryRealDragCoeff

public fr.cnes.genius.lowLevel.GSeparator getGEntryRealDragCoeff(int i)
Getter for the different separators.

Parameters:
i - separator index
Returns:
the different separators.

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

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

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

hasMassProperties

public boolean hasMassProperties()
Boolean to know if mass properties are activated.

Returns:
true if mass properties are activated.

hasPropulsiveProperties

public boolean hasPropulsiveProperties()
Boolean to know if propulsive properties are activated.

Returns:
true if the vehicle has propulsive properties defined.

hasAeroProperties

public boolean hasAeroProperties()
Boolean to know if aerodynamic properties are activated.

Returns:
true if the vehicle has aerodynamic properties defined.

hasRadiativeProperties

public boolean hasRadiativeProperties()
Boolean to know if radiative properties are activated.

Returns:
true if the vehicle has radiative properties defined.

getMassProperty

public fr.cnes.sirius.patrius.assembly.properties.MassProperty getMassProperty()
                                                                        throws GPVehicleException
Get the mass property.

Returns:
the mass property
Throws:
GPVehicleException - if it has no mass properties defined or if the dry mass is negative.

getAerodynamicProperties

public CustomAerodynamicProperties getAerodynamicProperties()
                                                     throws GPVehicleException
Get aerodynamic properties.

Returns:
the aerodynamic properties
Throws:
GPVehicleException - if it has no aerodynamic properties defined

getRadiativeProperties

public CustomRadiativeProperties getRadiativeProperties()
                                                 throws GPVehicleException
Get radiative properties.

Returns:
the radiative properties
Throws:
GPVehicleException - if it has no radiative properties defined

getPatriusObject

public CustomVehicle getPatriusObject()
                               throws GPVehicleException
Get the vehicle data.

Specified by:
getPatriusObject in interface GPPatrius<CustomVehicle>
Returns:
the vehicle data.
Throws:
GPVehicleException - if dry mass is negative

getPatriusObject

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

Specified by:
getPatriusObject in interface GPPatriusWithObjects<CustomVehicle>
Parameters:
args - The parameters are 0: ExtendedOneAxisEllipsoid 1: 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.

getAssembly

public fr.cnes.sirius.patrius.assembly.Assembly getAssembly(org.orekit.frames.Frame propagationFrame)
                                                     throws GPVehicleException
Get vehicle assembly.

Parameters:
propagationFrame - propagation frame
Returns:
the vehicle assembly
Throws:
GPVehicleException - if some internal error occurs

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

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

getEngineNames

public String[] getEngineNames()
                        throws GPVehicleException
Method to get the list of engine names.

Returns:
list of engine names
Throws:
GPVehicleException - if propulsive features were not defined

getTankNames

public String[] getTankNames()
                      throws GPVehicleException
Method to get the list of tank names.

Returns:
list of tank names
Throws:
GPVehicleException - if propulsive features were not defined

getFuelTankList

public ArrayList<CustomFuelTank> getFuelTankList()
Get list of tanks.

Specified by:
getFuelTankList in interface GFuelTankEngineProvider
Returns:
list of tanks

getEngineList

public ArrayList<CustomEngine> getEngineList()
Get list of engines.

Specified by:
getEngineList in interface GFuelTankEngineProvider
Returns:
list of engines

registerObserver

public void registerObserver(fr.cnes.genius.observer.GObserver observer)

Specified by:
registerObserver in interface fr.cnes.genius.observer.GObservable

unregisterObserver

public void unregisterObserver(fr.cnes.genius.observer.GObserver observer)

Specified by:
unregisterObserver in interface fr.cnes.genius.observer.GObservable

notifyObservers

public void notifyObservers(Object... args)

Specified by:
notifyObservers in interface fr.cnes.genius.observer.GObservable

setVehicle

public void setVehicle(CustomVehicle vehicle)
                throws GPVehicleException
Setter for the vehicle.

Parameters:
vehicle - vehicle to be set
Throws:
GPVehicleException - if there is any kind of incompatibility between the input vehicle and the widget.

setDefaultVehicle

public void setDefaultVehicle(CustomVehicle vehicle)
                       throws GPVehicleException
Setter for the default vehicle.

Parameters:
vehicle - the default vehicle to be set
Throws:
GPVehicleException - if there is any kind of incompatibility between the input vehicle and the widget.

setSavedVehicle

public void setSavedVehicle(CustomVehicle vehicle)
                     throws GPVehicleException
Setter for the saved vehicle.

Parameters:
vehicle - the saved vehicle to be set
Throws:
GPVehicleException - if there is any kind of incompatibility between the input vehicle and the widget.

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

setMassPropertiesVisible

public void setMassPropertiesVisible(boolean visible)
Sets the mass properties and the total mass visible / invisible.

Parameters:
visible - visible if true; invisible if false


Copyright © 2017. All rights reserved.