org.opensourcephysics.controls
Interface Simulation

All Superinterfaces:
Animation
All Known Implementing Classes:
AbstractSimulation

public interface Simulation
extends Animation

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
 boolean isRunning()
          Tests if the simulations's animation thread is running.
 void startSimulation()
          Starts the simulation thread.
 void stopSimulation()
          Stops the simulation thread.
 
Methods inherited from interface org.opensourcephysics.controls.Animation
initializeAnimation, resetAnimation, setControl, startAnimation, stepAnimation, stopAnimation
 

Method Detail

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.