All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class faraday.Faraday

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----java.applet.Applet
                                   |
                                   +----physlet.Physlet
                                           |
                                           +----faraday.Faraday

public class Faraday
extends Physlet
implements Runnable

Simulate the Faraday effect using a sliding wire.

Version:
$Revision: 1.0a $, $Date: 1998/07/30 08:00:00 $
Author:
Wolfgang Christian

Constructor Index

 o Faraday()
 

Method Index

 o destroy()
 
 o getAppletInfo()
 
 o getParameter(String, String)
 
 o getParameterInfo()
 
 o init()
 
 o run()
The applet's animation thread.
 o setCycle(boolean)
Cycle the time between 0 and maxTime.
 o setDefault()
Stop the applet, clear the graph, and put the applet into a predfined state.
 o setDragMode(boolean)
Set the drag mode on the wire.
 o setFieldFunction(String)
Set the magnetic field, B(x,t), into or out of the wire loop.
 o setMaxTime(double)
Set the maximum time for the graph and for cycle mode.
 o setMeterMinMax(double, double)
Set the range on the meter.
 o setPixPerUnit(int)
Set the scale.
 o setPosFunction(String)
Set the slider postion as a function of time.
 o setShowGraph(boolean)
Display the graph, V(t).
 o start()
start the animation.
 o stop()
stop the animation.

Constructors

 o Faraday

 public Faraday()

Methods

 o getParameter

 public String getParameter(String key,
                            String def)

 o init

 public void init()
Overrides:
init in class Applet

 o start

 public void start()
start the animation. Animation is in real time using the computer's internal clock.
Overrides:
start in class Applet

 o run

 public void run()
The applet's animation thread. Should not be called from JavaScript.

 o stop

 public void stop()
stop the animation. Animation is in real time using the computer's internal clock.
Overrides:
stop in class Applet

 o destroy

 public void destroy()
Overrides:
destroy in class Applet

 o getAppletInfo

 public String getAppletInfo()
Overrides:
getAppletInfo in class Applet

 o getParameterInfo

 public String[][] getParameterInfo()
Overrides:
getParameterInfo in class Applet

 o setDefault

 public void setDefault()
Stop the applet, clear the graph, and put the applet into a predfined state.

 o setDragMode

 public void setDragMode(boolean dm)
Set the drag mode on the wire. Will disable the postion function
Parameters:
dm - Boolean drag mode.

 o setMeterMinMax

 public void setMeterMinMax(double min,
                            double max)
Set the range on the meter.
Parameters:
min - The minimum value.
max - The maximum value.

 o setPixPerUnit

 public void setPixPerUnit(int ppu)
Set the scale. All functions and readings will use this scale factor.
Parameters:
ppu - pPxels per unit.

 o setShowGraph

 public void setShowGraph(boolean sg)
Display the graph, V(t).
Parameters:
sg - True will display V(t).

 o setPosFunction

 public void setPosFunction(String str)
Set the slider postion as a function of time.
Parameters:
str - The position of the slider, x(t).
See Also:
setDragMode

 o setFieldFunction

 public void setFieldFunction(String str)
Set the magnetic field, B(x,t), into or out of the wire loop. Can be a function of x but not y.
Parameters:
str - The magnetic field, B(x,t).

 o setMaxTime

 public void setMaxTime(double tm)
Set the maximum time for the graph and for cycle mode.
Parameters:
tm - maximum time
See Also:
setCycle

 o setCycle

 public void setCycle(boolean c)
Cycle the time between 0 and maxTime.
Parameters:
c - True will enable cycle
See Also:
setMaxTime

All Packages  Class Hierarchy  This Package  Previous  Next  Index