energyEigenvalue
Class EnergyEigenvalue

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Panel
              extended byjava.applet.Applet
                  extended byedu.davidson.tools.SApplet
                      extended byenergyEigenvalue.EnergyEigenvalue
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable

public class EnergyEigenvalue
extends SApplet

Class EnergyEigenvalue

See Also:
Serialized Form

Field Summary
 
Fields inherited from class edu.davidson.tools.SApplet
destroyed
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Method Summary
 void findEnergyLevel(int n)
          Finds a single energy level input by the user.
 void findEnergyLevels(int lowest, int highest)
          Finds a sequence of energy levels and eigenfunctions.
 double getActiveEnergy()
          Gets the energy of the active state.
 int getActiveQuantumNumber()
          Gets the quantum number of the active state.
 int getActiveStateID()
          Gets the object identifier for the active state.
 int getActiveWavefunctionID()
          Gets the object identifier for the active wavefunction data source.
 int getWavefunctionID(int n)
          Gets the object identifier for a Wavefunction data source.
 void setAutoscaleY(boolean as)
          Sets the Autoscale property for the energy graph.
 void setMinMaxX(double xmin, double xmax)
          Set the min and max values for the x axis.
 void setMinMaxY(double ymin, double ymax)
          Set the min and max values for the y axis.
 void setPotential(java.lang.String str, double xmin, double xmax)
          Set the potential function and the range
 void setPsi(double energy)
          Set the wave function that corresponds to a given energy.
 void setScaleToArea(boolean scale)
          Sets the Autoscale property for the energy graph.
 void setShowControls(boolean sc)
          This method allows the user to hide the entire control panel at bottom of applet
 void setShowPotential(boolean sp)
          This method allows the user to hide just the potential setting controls of the applet Useful to script in specific potentials for specific problems.
 
Methods inherited from class edu.davidson.tools.SApplet
addDataListener, addDataSource, checkAppletNames, cleanupDataConnections, clearAllData, clearData, deleteDataConnection, deleteDataConnections, formatValue, forward, getAppletName, getClockID, getClockTime, getDataFromDS, getDataListener, getDataSource, getDataSource, getDebugLevel, getID, getSourceData, getSourceVariables, isClockRunning, isValidFunction, makeDataConnection, pause, removeDataListener, removeDataSource, reset, reverse, sendDataToListener, setAutoRefresh, setClockContinous, setClockCycle, setClockOneShot, setClockTime, setConnectionBlock, setConnectionListener, setConnectionSmoothing, setConnectionSource, setConnectionStride, setConnectionWindowX, setConnectionWindowY, setDebugLevel, setDefault, setDt, setExternalClock, setFPS, setIndependentClock, setTimeContinuous, setTimeCycle, setTimeOneShot, startClock, stepClock, stepTime, stepTimeBack, stepTimeForward, stop, stopClock, updateDataConnection, updateDataConnections
 
Methods inherited from class java.applet.Applet
destroy, getAccessibleContext, getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, init, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus, start
 
Methods inherited from class java.awt.Panel
addNotify
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, remove, remove, removeAll, removeContainerListener, removeNotify, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, update, validate
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, dispatchEvent, enable, enable, enableInputMethods, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, 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, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocusInWindow, reshape, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getWavefunctionID

public int getWavefunctionID(int n)
Gets the object identifier for a Wavefunction data source.

Parameters:
n - the quantum number
Returns:
int the identifier

getActiveWavefunctionID

public int getActiveWavefunctionID()
Gets the object identifier for the active wavefunction data source.

Returns:
int the identifier

getActiveStateID

public int getActiveStateID()
Gets the object identifier for the active state. The active state variables are energy (en) and quantum number (n) data source.

Returns:
int the identifier

getActiveEnergy

public double getActiveEnergy()
Gets the energy of the active state.

Returns:
double the energy

getActiveQuantumNumber

public int getActiveQuantumNumber()
Gets the quantum number of the active state.

Returns:
int the quantum number

setAutoscaleY

public void setAutoscaleY(boolean as)
Sets the Autoscale property for the energy graph. The scale is set based on the value of the potential function.

Parameters:
as -

setScaleToArea

public void setScaleToArea(boolean scale)
Sets the Autoscale property for the energy graph. The scale is set based on the value of the potential function.

Parameters:
scale -

setShowControls

public void setShowControls(boolean sc)
This method allows the user to hide the entire control panel at bottom of applet

Parameters:
sc -

setPsi

public void setPsi(double energy)
Set the wave function that corresponds to a given energy.

Parameters:
energy - The energy.

setPotential

public void setPotential(java.lang.String str,
                         double xmin,
                         double xmax)
Set the potential function and the range

Parameters:
str - The potential function, f(x).
xmin - x minimum
xmax - x maximum

setShowPotential

public void setShowPotential(boolean sp)
This method allows the user to hide just the potential setting controls of the applet Useful to script in specific potentials for specific problems.

Parameters:
sp -

setMinMaxX

public void setMinMaxX(double xmin,
                       double xmax)
Set the min and max values for the x axis.

Parameters:
xmin -
xmax -

setMinMaxY

public void setMinMaxY(double ymin,
                       double ymax)
Set the min and max values for the y axis.

Parameters:
ymin -
ymax -

findEnergyLevels

public void findEnergyLevels(int lowest,
                             int highest)
Finds a sequence of energy levels and eigenfunctions.

Parameters:
lowest -
highest -

findEnergyLevel

public void findEnergyLevel(int n)
Finds a single energy level input by the user.

Parameters:
n -


Visit the Davidson College Physlet Site for additional information.