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
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
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
 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.
 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, getClockTime, 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, setExternalClock, setFPS, setRunningID, setRunningID, setTimeContinuous, setTimeCycle, setTimeOneShot, startClock, stepClock, stepTime, stepTimeBack, stepTimeForward, stopClock, updateDataConnection, updateDataConnections
 
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, 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, setCursor, 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

destroy

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

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

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

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

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

getActiveWavefunctionID

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

getAppletInfo

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

getParameter

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

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
Returns:
int the identifier

init

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

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

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

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

setPsi

public void setPsi(double ene)
Set the wave finction that corresponds to a given energy.
Parameters:
en - The energy.

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

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

start

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

Copyright Wolfgang Christian

Visit the Davidson CollegePhyslets Page