|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opensourcephysics.sip.ch02.Particle
public abstract class Particle
Particle models a one-dimensional trajectory that can be computed analytically and numerically. This class is abstract because the dynamics of the particle's motion is not yet known.
Constructor Summary | |
---|---|
Particle()
Constructs a Particle. |
Method Summary | |
---|---|
protected abstract double |
analyticPosition()
Computes the position at the current time using the analytic solution. |
protected abstract double |
analyticVelocity()
Computes the velocity at the current time using the analytic solution. |
protected abstract void |
step()
Steps (advances) the dynamical variables using a numeric method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Particle()
Method Detail |
---|
protected abstract void step()
protected abstract double analyticPosition()
protected abstract double analyticVelocity()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |