Class Cannibal

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--java.applet.Applet
                          |
                          +--Cannibal

public class Cannibal
extends java.applet.Applet
implements java.awt.event.ItemListener

The invoking class for the Cannibal Applet
The following are PARAM tags - and their default values:

See Also:
Serialized Form

Field Summary
static java.awt.Checkbox dfToggle
          Checkbox to toggle dynamic friction effects on/off
static java.awt.Checkbox diskToggle
          Checkbox to toggle disk effect on/off
static Panel3D galPanel3D
          The Panel3D for viewing the entire system in 3d
static GalRunner galRunner
          The tracking thread for the satellite and stars
static GraphCanvas graph
          The GraphCanvas to plot out radius and mass percentage
static int HEIGHT
          The height of the applet
static Variable inclInput
          Input variable for inclination radius
static java.awt.Panel inputPanel
          The panel to contain the input controls
static java.awt.Checkbox mlToggle
          Checkbox to toggle mass loss effects on/off
static int nstars
          The number of stars to be tracked
static java.awt.Choice nstarsChoice
          Choice menu for number of stars to be tracked
static java.awt.Button pauseButton
          Button to pause the simulation
static boolean PAUSEFLAG
          When true, the simulation will pause and wait for PAUSEFLAG to be true again
static Variable rapoInput
          Input variable for apogee radius
static Variable rperiInput
          Input variable for perigee radius
static java.awt.Choice satmassChoice
          Choice menu for sat mass
static Panel3D satPanel3D
          The Panel3D for viewing the satellite up close and in 2D
static Variable satradInput
          Input variable for satellite radius
static double[][] stars
          Array to hold all of the stars
static double[][] starsC
          Array to hold all of the stars centered about the satellite to avoid synchronization issues.
static java.awt.Button startButton
          Button to start the simulation
static java.awt.Button stopButton
          Button to stop the simulation
static boolean STOPFLAG
          When true, the simulation stops
static InputSlider timeStepSlider
          Input slider for integration (RK4) timestep
static double[] w
          Array for the state vector of the satellite
static int WIDTH
          The width of the applet
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Constructor Summary
Cannibal()
           
 
Method Summary
 void itemStateChanged(java.awt.event.ItemEvent e)
          Used to enable and disable the timestep slider for cases of nstars=0 or !=0 May cause issues with some browsers.
 void setupInputPanel()
          Setup the layout of the input panel
 void start()
          Called by browser when applet is loaded into webpage
 
Methods inherited from class java.applet.Applet
destroy, getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, init, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus, stop
 
Methods inherited from class java.awt.Panel
addNotify
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setCursor, setFont, setLayout, update, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputContext, getInputMethodRequests, getLocation, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

inputPanel

public static java.awt.Panel inputPanel
The panel to contain the input controls

graph

public static GraphCanvas graph
The GraphCanvas to plot out radius and mass percentage

galPanel3D

public static Panel3D galPanel3D
The Panel3D for viewing the entire system in 3d

satPanel3D

public static Panel3D satPanel3D
The Panel3D for viewing the satellite up close and in 2D

WIDTH

public static int WIDTH
The width of the applet

HEIGHT

public static int HEIGHT
The height of the applet

stars

public static double[][] stars
Array to hold all of the stars

starsC

public static double[][] starsC
Array to hold all of the stars centered about the satellite to avoid synchronization issues.

w

public static double[] w
Array for the state vector of the satellite

nstars

public static int nstars
The number of stars to be tracked

STOPFLAG

public static boolean STOPFLAG
When true, the simulation stops

PAUSEFLAG

public static boolean PAUSEFLAG
When true, the simulation will pause and wait for PAUSEFLAG to be true again

galRunner

public static GalRunner galRunner
The tracking thread for the satellite and stars

rapoInput

public static Variable rapoInput
Input variable for apogee radius

rperiInput

public static Variable rperiInput
Input variable for perigee radius

inclInput

public static Variable inclInput
Input variable for inclination radius

satmassChoice

public static java.awt.Choice satmassChoice
Choice menu for sat mass

satradInput

public static Variable satradInput
Input variable for satellite radius

timeStepSlider

public static InputSlider timeStepSlider
Input slider for integration (RK4) timestep

nstarsChoice

public static java.awt.Choice nstarsChoice
Choice menu for number of stars to be tracked

startButton

public static java.awt.Button startButton
Button to start the simulation

stopButton

public static java.awt.Button stopButton
Button to stop the simulation

pauseButton

public static java.awt.Button pauseButton
Button to pause the simulation

diskToggle

public static java.awt.Checkbox diskToggle
Checkbox to toggle disk effect on/off

mlToggle

public static java.awt.Checkbox mlToggle
Checkbox to toggle mass loss effects on/off

dfToggle

public static java.awt.Checkbox dfToggle
Checkbox to toggle dynamic friction effects on/off
Constructor Detail

Cannibal

public Cannibal()
Method Detail

start

public void start()
Called by browser when applet is loaded into webpage
Overrides:
start in class java.applet.Applet

setupInputPanel

public void setupInputPanel()
Setup the layout of the input panel

itemStateChanged

public void itemStateChanged(java.awt.event.ItemEvent e)
Used to enable and disable the timestep slider for cases of nstars=0 or !=0 May cause issues with some browsers.
Specified by:
itemStateChanged in interface java.awt.event.ItemListener