Package org.opensourcephysics.controls
Interface Simulation
- All Superinterfaces:
Animation
- All Known Implementing Classes:
AbstractSimulation
Simulations are Animations that invoke methods before starting their
animation thread and after stopping their animation thread. This interface is
a placeholder for animations that behave in a certain way.
- Version:
- 1.1
- Author:
- Wolfgang Christian
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Tests if the simulations's animation thread is running.void
Starts the simulation thread.void
Stops the simulation thread.Methods inherited from interface org.opensourcephysics.controls.Animation
initializeAnimation, resetAnimation, setControl, startAnimation, stepAnimation, stopAnimation
-
Method Details
-
isRunning
boolean isRunning()Tests if the simulations's animation thread is running. -
startSimulation
void startSimulation()Starts the simulation thread. -
stopSimulation
void stopSimulation()Stops the simulation thread.
-