energyEigenvalue
Class EnergyEigenvalue

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--java.applet.Applet
                          |
                          +--edu.davidson.tools.SApplet
                                |
                                +--energyEigenvalue.EnergyEigenvalue
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable

public class EnergyEigenvalue
extends SApplet

See Also:
Serialized Form

Fields inherited from class edu.davidson.tools.SApplet
clock, dataConnections, dataListeners, dataSources, lock
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Constructor Summary
EnergyEigenvalue()
           
 
Method Summary
 void destroy()
          Destroy all threads and cleanup the applet.
 void findEnergyLevel(int n)
          This method finds a single energy level input by the user
 void findEnergyLevels(int lowest, int highest)
          This method allows the user to script in an enrgy band to be found
 int getActiveWavefunctionID()
          Gets the object identifier for the active wavefunction.
 java.lang.String getAppletInfo()
           
 java.lang.String getParameter(java.lang.String key, java.lang.String def)
           
 java.lang.String[][] getParameterInfo()
           
 int getWavefunctionID(int n)
          Gets the object identifier for a Wavefunction data source.
 void init()
           
 void setAutoscaleY(boolean as)
          This method 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 ene)
          Set the wave finction that corresponds to a given energy.
 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.
 void start()
          Start the applet.
 
Methods inherited from class edu.davidson.tools.SApplet
addDataListener, addDataSource, cleanupDataConnections, clearAllData, clearData, deleteDataConnection, deleteDataConnections, forward, getClockID, getDataConnectionFromDL, getDataConnectionFromDS, getDataFromDS, getDataListener, getDataListener, getDataSource, getDataSource, getID, getRunningID, getSourceData, getSourceVariables, isAutoRefresh, isClockRunning, makeDataConnection, pause, removeDataListener, removeDataSource, reset, reverse, setAutoRefresh, setClockContinous, setClockCycle, setClockOneShot, setClockTime, setConnectionBlock, setConnectionListener, setConnectionSmoothing, setConnectionSource, setConnectionStride, setDefault, setDt, setFPS, setRunningID, setRunningID, setTimeContinuous, setTimeCycle, setTimeOneShot, startClock, stepClock, stepTime, stepTimeBack, stepTimeForward, stopClock, updateDataConnection, updateDataConnections, useMasterClock
 
Methods inherited from class java.applet.Applet
getAccessibleContext, getAppletContext, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, 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, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, remove, remove, removeAll, removeContainerListener, removeNotify, setCursor, setFont, setLayout, update, validate
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, disable, dispatchEvent, enable, enable, enableInputMethods, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, 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, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, 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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EnergyEigenvalue

public EnergyEigenvalue()
Method Detail

getParameter

public java.lang.String getParameter(java.lang.String key,
                                     java.lang.String def)

init

public void init()
Overrides:
init in class java.applet.Applet

start

public void start()
Start the applet. Do not script.
Overrides:
start in class java.applet.Applet

destroy

public void destroy()
Destroy all threads and cleanup the applet. Do not script.
Overrides:
destroy in class SApplet

getAppletInfo

public java.lang.String getAppletInfo()
Overrides:
getAppletInfo in class java.applet.Applet

getParameterInfo

public java.lang.String[][] getParameterInfo()
Overrides:
getParameterInfo in class java.applet.Applet

getWavefunctionID

public int getWavefunctionID(int n)
Gets the object identifier for a Wavefunction data source.
Parameters:
n - the quantum number

getActiveWavefunctionID

public int getActiveWavefunctionID()
Gets the object identifier for the active wavefunction.
Parameters:
n - the quantum number

setAutoscaleY

public void setAutoscaleY(boolean as)
This method sets the Autoscale property for the energy graph. The scale is set based on the value of the potential function.
Parameters:
boolean - as

setShowControls

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

setPsi

public void setPsi(double ene)
Set the wave finction that corresponds to a given energy.
Parameters:
en - 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:
boolean - sp show potential inputs

setMinMaxX

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

setMinMaxY

public void setMinMaxY(double ymin,
                       double ymax)
Set the min and max values for the y axis.
Parameters:
double - ymin yaxis min value
double - ymax yaxis max value

findEnergyLevels

public void findEnergyLevels(int lowest,
                             int highest)
This method allows the user to script in an enrgy band to be found
Parameters:
int - lowest lowest energy level to find
int - highest highest energy level to find

findEnergyLevel

public void findEnergyLevel(int n)
This method finds a single energy level input by the user
Parameters:
int - n quantum number of energy level to find

Copyright Wolfgang Christian

Visit the Davidson CollegePhyslets Page