fr.cnes.genopus.maneuvers
Class GPManeuverFrame

java.lang.Object
  extended by fr.cnes.genius.main.GComponent
      extended by fr.cnes.genius.lowLevel.GContainer
          extended by fr.cnes.genopus.maneuvers.GPManeuverFrame
All Implemented Interfaces:
fr.cnes.genius.main.GClear, fr.cnes.genius.main.GCondensedStatusInterface, fr.cnes.genius.main.GDisplay, fr.cnes.genius.main.GReadWrite

public class GPManeuverFrame
extends fr.cnes.genius.lowLevel.GContainer
implements fr.cnes.genius.main.GDisplay, fr.cnes.genius.main.GReadWrite, fr.cnes.genius.main.GClear, fr.cnes.genius.main.GCondensedStatusInterface

Widget for maneuver frame definition.

Author:
sumelzi, bacr

Nested Class Summary
static class GPManeuverFrame.GPManFrameTypes
          Frames types array.
 
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
GPManeuverFrame()
          Creates a new instance.
GPManeuverFrame(String widgetId)
          Creates a new instance.
 
Method Summary
 void clear()
          
 void display()
          
 void generic()
          
 GPManeuverFrame.GPManFrameTypes getFrameType()
          Get frame type value.
 fr.cnes.genius.highLevel.GChoice getGChoiceFrameType()
          Get frame type value.
 fr.cnes.genius.highLevel.GComboBoxWithLabel getGComboBoxLofType()
          Get loft type combo box.
 GPFrame getGPFrameInertial()
          Get inertial frame type combo box.
 org.orekit.frames.Frame getInertialFrame()
          Getter for the inertial frame.
 org.orekit.frames.LOFType getLOFFrame()
          Getter for the LOF frame.
 fr.cnes.genius.main.GComponent getSubComponent(int position)
          
 void read()
          
 void setConstraint(int widgetGap)
          Setter for the constraints of the widget.
 void setDefaultValue(org.orekit.frames.Frame inertialFrame, org.orekit.frames.LOFType lofFrame)
          Setter for the default status of the widget.
 void setEnabled(boolean b)
          
 void setSavedValue(org.orekit.frames.Frame inertialFrame, org.orekit.frames.LOFType lofFrame)
          Setter for the saved status of the widget.
 void setValue(org.orekit.frames.Frame inertialFrame, org.orekit.frames.LOFType lofFrame)
          Setter for the widget.
 void setWidgetId(String widgetId)
          
 void updateCondensedStatus(fr.cnes.genius.main.GCondensedStatus condensedStatus)
          
 void write()
          
 
Methods inherited from class fr.cnes.genius.lowLevel.GContainer
put
 
Methods inherited from class fr.cnes.genius.main.GComponent
activateConstraintsByType, attachCopyPasteMenu, attachCopyPasteMenu, beginOfElement, beginOfElement, beginOfElement, beginOfElement, composeWidgetId, doDisplay, endOfElement, getCommentInConfigFile, getComponent, getConstraint, getCurrentOperation, getDisplayIndicatorStatus, getDisplayIsModifiedIndicator, getElement, getGPanel, getGParent, getGUnitInConfigFile, getInnerDescendantConstraint, getName, getNameInConfigFile, getOperationSaveValue, getSimpleWidgetId, getStatus, getStringConstraint, getWidgetId, handleCopyPasteEvent, handleProcessEventException, isCopyPasteEvent, isEnabled, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GPManeuverFrame

public GPManeuverFrame()
Creates a new instance. The widgetId will be asigned automatically.


GPManeuverFrame

public GPManeuverFrame(String widgetId)
Creates a new instance.

Parameters:
widgetId - widgetId
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.

getInertialFrame

public org.orekit.frames.Frame getInertialFrame()
                                         throws GPFrameException
Getter for the inertial frame. If the selected frame type is GPManeuverFrame.GPManFrameTypes.INERTIAL, it returns the Frame selected. If the selected frame type is GPManeuverFrame.GPManFrameTypes.LOF, it returns null.

Returns:
the inertial frame.
Throws:
GPFrameException - if EOP data is not initialized.

getLOFFrame

public org.orekit.frames.LOFType getLOFFrame()
Getter for the LOF frame. If the selected frame type is GPManeuverFrame.GPManFrameTypes.LOF, it returns the LOFType selected. If the selected frame type is GPManeuverFrame.GPManFrameTypes.INERTIAL, it returns null.

Returns:
the LOF frame.

generic

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

Specified by:
generic in class fr.cnes.genius.lowLevel.GContainer
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

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

getFrameType

public GPManeuverFrame.GPManFrameTypes getFrameType()
Get frame type value.

Returns:
the frame type value

getGChoiceFrameType

public fr.cnes.genius.highLevel.GChoice getGChoiceFrameType()
Get frame type value.

Returns:
the frame type value

getGComboBoxLofType

public fr.cnes.genius.highLevel.GComboBoxWithLabel getGComboBoxLofType()
Get loft type combo box.

Returns:
the loft type

getGPFrameInertial

public GPFrame getGPFrameInertial()
Get inertial frame type combo box.

Returns:
the inertial frame type combo box

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

setEnabled

public void setEnabled(boolean b)

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

setWidgetId

public void setWidgetId(String widgetId)

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

setValue

public void setValue(org.orekit.frames.Frame inertialFrame,
                     org.orekit.frames.LOFType lofFrame)
              throws GPFrameException
Setter for the widget. One of the inputs must be null and the other non-null.

Parameters:
inertialFrame - the inertial frame
lofFrame - the lof frame
Throws:
GPFrameException - if the lofFrame and the inertialFrame are both either null either non-null at the same time or if the type is inertial and the frame is not available in the widget.

setDefaultValue

public void setDefaultValue(org.orekit.frames.Frame inertialFrame,
                            org.orekit.frames.LOFType lofFrame)
                     throws GPFrameException
Setter for the default status of the widget. One of the inputs must be null and the other non-null.

Parameters:
inertialFrame - the inertial frame
lofFrame - the lof frame
Throws:
GPFrameException - if the lofFrame and the inertialFrame are both either null either non-null at the same time or if the type is inertial and the frame is not available in the widget.

setSavedValue

public void setSavedValue(org.orekit.frames.Frame inertialFrame,
                          org.orekit.frames.LOFType lofFrame)
                   throws GPFrameException
Setter for the saved status of the widget. One of the inputs must be null and the other non-null.

Parameters:
inertialFrame - the inertial frame
lofFrame - the lof frame
Throws:
GPFrameException - if the lofFrame and the inertialFrame are both either null either non-null at the same time or if the type is inertial and the frame is not available in the widget.


Copyright © 2017. All rights reserved.