|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensourcephysics.display.Circle
org.opensourcephysics.sip.ch01.SHOModel
public class SHOModel
SHOModel defines a damped simple harmonic oscillator using a system of first order differential equations.
| Field Summary |
|---|
| Fields inherited from class org.opensourcephysics.display.Circle |
|---|
color, pixRadius, x, y |
| Constructor Summary | |
|---|---|
SHOModel()
|
|
| Method Summary | |
|---|---|
void |
getRate(double[] state,
double[] rate)
Calculates the rate array using the given state. |
double[] |
getState()
Gets the state array. |
void |
move()
Moves the particle. |
| Methods inherited from class org.opensourcephysics.display.Circle |
|---|
draw, getLoader, getX, getY, setX, setXY, setY, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SHOModel()
| Method Detail |
|---|
public double[] getState()
getState in interface ODE
public void getRate(double[] state,
double[] rate)
getRate in interface ODEstate - the staterate - the ratepublic void move()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||