fr.cnes.genopus.maneuvers
Class GPManeuverSelector

java.lang.Object
  extended by fr.cnes.genius.main.GComponent
      extended by fr.cnes.genius.lowLevel.GPanel
          extended by fr.cnes.genopus.maneuvers.GPManeuverSelector
All Implemented Interfaces:
fr.cnes.genius.main.GClear, fr.cnes.genius.main.GCondensedStatusInterface, fr.cnes.genius.main.GDisplay, fr.cnes.genius.main.GReadWrite, GPPatrius<CustomManeuverInterface>, Cloneable

public class GPManeuverSelector
extends fr.cnes.genius.lowLevel.GPanel
implements fr.cnes.genius.main.GReadWrite, Cloneable, fr.cnes.genius.main.GCondensedStatusInterface, GPPatrius<CustomManeuverInterface>, fr.cnes.genius.main.GClear

Widget for general maneuver definition.

Author:
sumelzi, bacr

Nested Class Summary
static class GPManeuverSelector.GPManType
          Available types of maneuvers.
 
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
GPManeuverSelector()
          Creates a new instance.
GPManeuverSelector(String widgetId)
          Creates a new instance.
 
Method Summary
 void clear()
          
 GPManeuverSelector clone()
          
 void display()
          
 void generic()
          
 fr.cnes.genius.highLevel.GComboBoxWithLabel getGComboBoxManType()
           
 GPConstantManeuver getGPConstantManeuver()
          Get continuous maneuver widget.
 GPImpulseManeuver getGPImpulseManeuver()
          Get impulsive maneuver widget.
 String getManName()
          Get maneuver name.
 GPManeuverSelector.GPManType getManType()
          Get maneuver type.
 CustomManeuverInterface getPatriusObject()
          Get custom maneuver.
 fr.cnes.genius.main.GComponent getSubComponent(int position)
          
 boolean isEnabled()
          
 void read()
          
static void setCount(int count)
          Setter for the maneuvers count.
 void setDefaultManeuver(CustomManeuverInterface maneuver)
          Setter for the default maneuver.
 void setEnabled(boolean b)
          
 void setEnginesList(ArrayList<CustomEngine> engineList)
          Update contents of comboboxes for engines with a given list of engines.
 void setManeuver(CustomManeuverInterface maneuver)
          Setter for the maneuver.
 void setManName(String manName)
          Set maneuver name.
 void setMassProvider(org.orekit.propagation.MassProvider massProvider)
          Setter for the mass provider.
 void setSavedManeuver(CustomManeuverInterface maneuver)
          Setter for the saved maneuver.
 void setTanksList(ArrayList<CustomFuelTank> tankList)
          Update contents of comboboxes for tanks with a given list of tanks.
 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, isModified, 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
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GPManeuverSelector

public GPManeuverSelector()
Creates a new instance.


GPManeuverSelector

public GPManeuverSelector(String widgetId)
Creates a new instance.

Parameters:
widgetId - widgetId
Method Detail

setCount

public static void setCount(int count)
Setter for the maneuvers count.

Parameters:
count - the maneuvers count.

getGComboBoxManType

public fr.cnes.genius.highLevel.GComboBoxWithLabel getGComboBoxManType()
Returns:
the m_comboBoxManType

getGPImpulseManeuver

public GPImpulseManeuver getGPImpulseManeuver()
Get impulsive maneuver widget.

Returns:
the impulsive maneuver widget

getGPConstantManeuver

public GPConstantManeuver getGPConstantManeuver()
Get continuous maneuver widget.

Returns:
the continuous maneuver 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

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

getManType

public GPManeuverSelector.GPManType getManType()
Get maneuver type.

Returns:
the maneuver type

getPatriusObject

public CustomManeuverInterface getPatriusObject()
                                         throws GPManeuverException
Get custom maneuver.

Specified by:
getPatriusObject in interface GPPatrius<CustomManeuverInterface>
Returns:
the custom maneuver
Throws:
GPManeuverException - if selected engine or fuel tank is not correctly defined

clone

public GPManeuverSelector clone()
                         throws CloneNotSupportedException

Overrides:
clone in class Object
Throws:
CloneNotSupportedException

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

setWidgetId

public void setWidgetId(String widgetId)

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

setMassProvider

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

Parameters:
massProvider - the mass provider

getManName

public String getManName()
Get maneuver name.

Returns:
the maneuver name

setManName

public void setManName(String manName)
Set maneuver name.

Parameters:
manName - the maneuver name

setEnginesList

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

Parameters:
engineList - list of engines

setTanksList

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

Parameters:
tankList - list of tanks

setManeuver

public void setManeuver(CustomManeuverInterface maneuver)
                 throws GPManeuverException
Setter for the maneuver.

Parameters:
maneuver - the maneuver
Throws:
GPManeuverException - if the type if not supported of if there is any problem setting the maneuver.

setDefaultManeuver

public void setDefaultManeuver(CustomManeuverInterface maneuver)
                        throws GPManeuverException
Setter for the default maneuver.

Parameters:
maneuver - the maneuver
Throws:
GPManeuverException - if the type if not supported of if there is any problem setting the maneuver.

setSavedManeuver

public void setSavedManeuver(CustomManeuverInterface maneuver)
                      throws GPManeuverException
Setter for the saved maneuver.

Parameters:
maneuver - the maneuver
Throws:
GPManeuverException - if the type if not supported of if there is any problem setting the maneuver.

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

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


Copyright © 2017. All rights reserved.