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

Faraday
public Faraday()

getParameter
public String getParameter(String key,
String def)

init
public void init()
- Overrides:
- init in class Applet

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

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

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

destroy
public void destroy()
- Overrides:
- destroy in class Applet

getAppletInfo
public String getAppletInfo()
- Overrides:
- getAppletInfo in class Applet

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

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

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

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

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

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

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

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).

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

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