fr.cnes.genopus.maneuvers
Class GPManeuverSequence

java.lang.Object
  extended by fr.cnes.genius.main.GComponent
      extended by fr.cnes.genius.lowLevel.GPanel
          extended by fr.cnes.genopus.maneuvers.GPManeuverSequence
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.GObserver, GPPatrius<CustomManeuverSequence>

public class GPManeuverSequence
extends fr.cnes.genius.lowLevel.GPanel
implements fr.cnes.genius.main.GReadWrite, fr.cnes.genius.main.GListener, fr.cnes.genius.main.GCondensedStatusInterface, fr.cnes.genius.main.GClear, fr.cnes.genius.observer.GObserver, GPPatrius<CustomManeuverSequence>

Widget for maneuvers scenario definition.

Author:
sumelzi, bacr
Default Constraint(s):
IndexClassItemConstraint
0GPDualAbsoluteDatereferenceDate"newline"
(see table below)
1GLabellabelPropulsiveProps"newline , gapleft 0"
2GButtonbuttonSelectEngines"newline , gapleft 20 , split 2"
3GStandardPanelDialogdialogEngines"newline , pushx , pushy , growx , growy"
4GComponentListenginesList"pushx , pushy , growx , growy"
(see table below)
5GButtonbuttonSelectTanks(null)
6GStandardPanelDialogdialogTanks"newline , pushx , pushy , growx , growy"
7GComponentListtanksList"pushx , pushy , growx , growy"
(see table below)
8GLabelWithIndicatorlabelConstraints8, 0 => "newline , gapleft 0"
8, 1 => "wmin 79"
9GEntryRealentryRealConstraintImpulsive9, 0, 0 => "newline , gapleft 20 , split 2"
9, 0, 1 => (null)
9, 1 => "split 2"
9, 2 => (null)
10GEntryRealentryRealConstraintConstant10, 0, 0 => "newline , gapleft 20 , split 2"
10, 0, 1 => (null)
10, 1 => "split 2"
10, 2 => (null)
11GLabellabelManList"newline , gapleft 0"
12GComponentListmaneuversList"newline , gapleft 0 , spanx 3"
(see table below)

Default Constraint(s) for referenceDate:
IndexClassItemConstraint
0, 0GLabelWithIndicatorlabel0, 0, 0 => "newline , gapleft 0 , split 2"
0, 0, 1 => "wmin 24"
0, 1GChoicetypeDateChoice0, 1, 0, 0 => "newline , gapleft 20 , split 2"
0, 1, 0, 1 => (null)
0, 1, 1 => "split"
0, 2GPAbsoluteDatereferenceAbsoluteDate"newline"
(see table below)
0, 3GPAbsoluteDateexternalAbsoluteDate"newline"
(see table below)

Default Constraint(s) for referenceAbsoluteDate:
IndexClassItemConstraint
0, 2, 0GLabelWithIndicatorlabel0, 2, 0, 0 => "newline , gapleft 20 , split 2"
0, 2, 0, 1 => (null)
0, 2, 1GPDateFielddateField(null)
0, 2, 2GPopupListWithLabelpopupListTimeScales0, 2, 2, 0, 0 => "split 4"
0, 2, 2, 0, 1 => (null)
0, 2, 2, 1 => (null)
0, 2, 3GButtonbuttonRelativeDate(null)

Default Constraint(s) for externalAbsoluteDate:
IndexClassItemConstraint
0, 3, 0GLabelWithIndicatorlabel0, 3, 0, 0 => "newline , gapleft 20 , split 2"
0, 3, 0, 1 => (null)
0, 3, 1GPDateFielddateField(null)
0, 3, 2GPopupListWithLabelpopupListTimeScales0, 3, 2, 0, 0 => "split 4"
0, 3, 2, 0, 1 => (null)
0, 3, 2, 1 => (null)
0, 3, 3GButtonbuttonRelativeDate(null)

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

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

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

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

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

Default Constraint(s) for header:
IndexClassItemConstraint
12, 0, 0GEntryInttotalNumberItemsEntry12, 0, 0, 0, 0 => "newline , split 2"
12, 0, 0, 0, 1 => (null)
12, 0, 0, 1 => "skip 2 , width 50"
12, 0, 1GEntryIntcurrentItemRankEntry12, 0, 1, 0, 0 => "split 2"
12, 0, 1, 0, 1 => (null)
12, 0, 1, 1 => "width 50"
12, 0, 2GButtondecrButton"alignx Right , height 20"
12, 0, 3GButtonincrButton"height 20"
12, 0, 4GPopupListmenu(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
 
Field Summary
 
Fields inherited from class fr.cnes.genius.main.GComponent
NAME_ATTRIBUTE
 
Constructor Summary
GPManeuverSequence(org.orekit.time.AbsoluteDate externalDate, boolean managedTanksAndEngines, boolean manListSingleMode)
          Creates a new instance.
GPManeuverSequence(boolean managedTanksAndEngines, boolean manListSingleMode)
          Creates a new instance.
GPManeuverSequence(String widgetId, org.orekit.time.AbsoluteDate externalDate, boolean managedTanksAndEngines, boolean manListSingleMode)
          Creates a new instance.
GPManeuverSequence(String widgetId, boolean managedTanksAndEngines, boolean manListSingleMode)
          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()
          
 ArrayList<CustomEngine> getEnginesList()
          Get engine list.
 double getErgolMass()
          Get the ergol mass.
 fr.cnes.genius.main.GComponent getGButtonEngines()
          Get the button to set the engines.
 fr.cnes.genius.main.GComponent getGButtonTanks()
          Get the button to set the fuel tanks.
 fr.cnes.genius.highLevel.GComponentList getGComponentListEngines()
          Get the list of engines.
 fr.cnes.genius.main.GComponent getGComponentListManeuvers()
          Get the list of maneuvers.
 fr.cnes.genius.highLevel.GComponentList getGComponentListTanks()
          Get the list of fuel tanks.
 fr.cnes.genius.lowLevel.GStandardPanelDialog getGDialogEngines()
          Get the dialog to set the engines.
 fr.cnes.genius.lowLevel.GStandardPanelDialog getGDialogTanks()
          Get the dialog to set the fuel tanks.
 fr.cnes.genius.main.GComponent getGEntryRealConstConstraint()
          Get the entry real for the constant maneuver constraint.
 fr.cnes.genius.highLevel.GEntryReal getGEntryRealErgolMass()
          Get the entry real for the ergols mass.
 fr.cnes.genius.main.GComponent getGEntryRealImpConstraint()
          Get the entry real for the impulsive constraint.
 fr.cnes.genius.main.GComponent getGLabelConstraints()
          Get the label for the constraints section.
 fr.cnes.genius.main.GComponent getGLabelManeuvers()
          Get the label for the maneuvers section.
 fr.cnes.genius.lowLevel.GLabel getGLabelSetPropulsiveProps()
          Get the label for the propulsive properties section.
 GPDualAbsoluteDate getGPDualAbsoluteDate()
          Get reference date.
 boolean getManagedTanksAndEngines()
          Return the boolean managedTanksAndEngines.
 ArrayList<GPManeuverSelector> getManArrayList()
          Getter for the list of maneuvers of the widget.
 CustomManeuverSequence getPatriusObject()
          Get patrius object.
 fr.cnes.genius.main.GComponent getSubComponent(int position)
          
 ArrayList<CustomFuelTank> getTanksList()
          Get tank list.
 boolean isEnabled()
          
 void notify(Object observable, Object... args)
           
 void read()
          
 void setConstraint(int widgetGap)
          Setter for the constraints of the widget.
 void setEnabled(boolean b)
          
 void setExternalDate(org.orekit.time.AbsoluteDate externalDate)
          Method to set the external date used as reference date in "external" mode.
 void setMassProvider(org.orekit.propagation.MassProvider massProvider)
          Setter for the mass provider.
 void setReferenceDate(org.orekit.time.AbsoluteDate date)
          Set the reference date.
 void updateCondensedStatus(fr.cnes.genius.main.GCondensedStatus condensedStatus)
          
 void updateEngineCombobox(ArrayList<CustomEngine> engineList)
          Update contents of comboboxes for engines with a given list of engines.
 void updateExternalDate(org.orekit.time.AbsoluteDate externalDate)
          Update external date value.
 void updateTankCombobox(ArrayList<CustomFuelTank> tankList)
          Update contents of comboboxes for tanks with a given list of tanks.
 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, isModified, launchInvalidPositionException, parseSimpleConstraint, processGEvent, setBusyCursor, setCommentInConfigFile, setConstraint, setCopyPasteMenuEnabled, setCurrentOperation, setDataForConstraintsByType, setDisplayIsModifiedIndicator, setElement, setGPanel, setGParent, setGUnitInConfigFile, setInnerDescendantConstraint, setNameAndCommentInConfigFile, setNameInConfigFile, setStatus, setStringConstraint, setToolTipText, setWidgetId, 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

GPManeuverSequence

public GPManeuverSequence(boolean managedTanksAndEngines,
                          boolean manListSingleMode)
Creates a new instance.

Parameters:
managedTanksAndEngines -
True if maneuvers has its own lists of tanks and engines
False if maneuvers takes engines and tanks from the vehicle panel.
manListSingleMode - flag to determine if the maneuvers component list is in "single widget mode" or not.

GPManeuverSequence

public GPManeuverSequence(String widgetId,
                          boolean managedTanksAndEngines,
                          boolean manListSingleMode)
Creates a new instance.

Parameters:
managedTanksAndEngines -
True if maneuvers has its own lists of tanks and engines
False if maneuvers takes engines and tanks from the vehicle panel.
manListSingleMode - flag to determine if the maneuvers component list is in "single widget mode" or not.
widgetId - widgetId

GPManeuverSequence

public GPManeuverSequence(org.orekit.time.AbsoluteDate externalDate,
                          boolean managedTanksAndEngines,
                          boolean manListSingleMode)
Creates a new instance.

Parameters:
managedTanksAndEngines -
True if maneuvers has its own lists of tanks and engines
False if maneuvers takes engines and tanks from the vehicle panel.
manListSingleMode - flag to determine if the maneuvers component list is in "single widget mode" or not.
externalDate - the reference date

GPManeuverSequence

public GPManeuverSequence(String widgetId,
                          org.orekit.time.AbsoluteDate externalDate,
                          boolean managedTanksAndEngines,
                          boolean manListSingleMode)
Creates a new instance.

Parameters:
widgetId - widgetId
externalDate - the reference date
managedTanksAndEngines -
True if maneuvers has its own lists of tanks and engines
False if maneuvers takes engines and tanks from the vehicle panel.
manListSingleMode - flag to determine if the maneuvers component list is in "single widget mode" or not.
Method Detail

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.

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

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

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

before

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

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

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

updateEngineCombobox

public void updateEngineCombobox(ArrayList<CustomEngine> engineList)
Update contents of comboboxes for engines with a given list of engines.

Parameters:
engineList - list of engines

updateTankCombobox

public void updateTankCombobox(ArrayList<CustomFuelTank> tankList)
Update contents of comboboxes for tanks with a given list of tanks.

Parameters:
tankList - list of tanks

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

getGPDualAbsoluteDate

public GPDualAbsoluteDate getGPDualAbsoluteDate()
Get reference date.

Returns:
the reference date

getGLabelConstraints

public fr.cnes.genius.main.GComponent getGLabelConstraints()
Get the label for the constraints section.

Returns:
the label for the constraints section

getGEntryRealImpConstraint

public fr.cnes.genius.main.GComponent getGEntryRealImpConstraint()
Get the entry real for the impulsive constraint.

Returns:
the entry real for the impulsive constraint

getGEntryRealConstConstraint

public fr.cnes.genius.main.GComponent getGEntryRealConstConstraint()
Get the entry real for the constant maneuver constraint.

Returns:
the entry real for the constant maneuver constraint

getGLabelManeuvers

public fr.cnes.genius.main.GComponent getGLabelManeuvers()
Get the label for the maneuvers section.

Returns:
the label for the maneuvers section

getGComponentListManeuvers

public fr.cnes.genius.main.GComponent getGComponentListManeuvers()
Get the list of maneuvers.

Returns:
the list of maneuvers

getGButtonEngines

public fr.cnes.genius.main.GComponent getGButtonEngines()
Get the button to set the engines.

Returns:
the button to set the engines

getGButtonTanks

public fr.cnes.genius.main.GComponent getGButtonTanks()
Get the button to set the fuel tanks.

Returns:
the the button to set the fuel tanks

getGEntryRealErgolMass

public fr.cnes.genius.highLevel.GEntryReal getGEntryRealErgolMass()
Get the entry real for the ergols mass.

Returns:
the entry real for the ergols mass

getGLabelSetPropulsiveProps

public fr.cnes.genius.lowLevel.GLabel getGLabelSetPropulsiveProps()
Get the label for the propulsive properties section.

Returns:
the label for the propulsive properties section

getGDialogEngines

public fr.cnes.genius.lowLevel.GStandardPanelDialog getGDialogEngines()
Get the dialog to set the engines.

Returns:
the dialog to set the engines

getGDialogTanks

public fr.cnes.genius.lowLevel.GStandardPanelDialog getGDialogTanks()
Get the dialog to set the fuel tanks.

Returns:
the the dialog to set the fuel tanks

getGComponentListEngines

public fr.cnes.genius.highLevel.GComponentList getGComponentListEngines()
Get the list of engines.

Returns:
the list of engines

getGComponentListTanks

public fr.cnes.genius.highLevel.GComponentList getGComponentListTanks()
Get the list of fuel tanks.

Returns:
the list of fuel tanks

setReferenceDate

public void setReferenceDate(org.orekit.time.AbsoluteDate date)
Set the reference date.

Parameters:
date - the reference date

setExternalDate

public void setExternalDate(org.orekit.time.AbsoluteDate externalDate)
Method to set the external date used as reference date in "external" mode.

Parameters:
externalDate - date to be set.

updateExternalDate

public void updateExternalDate(org.orekit.time.AbsoluteDate externalDate)
Update external date value.

Parameters:
externalDate - the new external date

getEnginesList

public ArrayList<CustomEngine> getEnginesList()
Get engine list.

Returns:
the engine list

getTanksList

public ArrayList<CustomFuelTank> getTanksList()
Get tank list.

Returns:
the tank list

getErgolMass

public double getErgolMass()
Get the ergol mass.

Returns:
the ergol mass.

getPatriusObject

public CustomManeuverSequence getPatriusObject()
                                        throws GPManeuverException
Get patrius object.

Specified by:
getPatriusObject in interface GPPatrius<CustomManeuverSequence>
Returns:
the equivalent in the patrius environment
Throws:
GPManeuverException - if maneuvers are wrongly defined

updateCondensedStatus

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

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

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

getManArrayList

public ArrayList<GPManeuverSelector> getManArrayList()
Getter for the list of maneuvers of the widget.

Returns:
the list of maneuvers of the widget

getManagedTanksAndEngines

public boolean getManagedTanksAndEngines()
Return the boolean managedTanksAndEngines.

Returns:
True if maneuvers has its own lists of tanks and engines
False if maneuvers takes engines and tanks from the vehicle panel.

notify

public void notify(Object observable,
                   Object... args)
Specified by:
notify in interface fr.cnes.genius.observer.GObserver

setMassProvider

public void setMassProvider(org.orekit.propagation.MassProvider massProvider)
Setter for the mass provider.

Parameters:
massProvider - the mass provider

setEnabled

public void setEnabled(boolean b)

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

isEnabled

public boolean isEnabled()

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


Copyright © 2017. All rights reserved.