|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensourcephysics.sip.ch09.Oscillators
public class Oscillators
Oscillators models the analytic soution of a chain of oscillators with fixed end points. Students should implement the ODE interface to complete the exercise in "An Introduction to Computer Simulation Methods."
| Constructor Summary | |
|---|---|
Oscillators(int mode,
int N)
Constructs a chain of coupled oscillators in the given mode and number of oscillators. |
|
| Method Summary | |
|---|---|
void |
draw(DrawingPanel drawingPanel,
java.awt.Graphics g)
Draws the oscillators |
void |
step(double dt)
Steps the time using the given time step. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Oscillators(int mode,
int N)
mode - intN - int| Method Detail |
|---|
public void step(double dt)
dt -
public void draw(DrawingPanel drawingPanel,
java.awt.Graphics g)
draw in interface DrawabledrawingPanel - g -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||