Interface Simulatable
- All Known Implementing Classes:
AbstractSimulationDemo, ArchitectureStabilityDemo, AudioViewerDemo, BioMotionDemo, BioMotionViewer, CarTrafficDemo, ChemicalKineticsDemo, CircuitSimulatorViewer, ClothSimulationDemo, DigitalLogicDemo, DigitalLogicViewer, FluidDynamicsDemo, GalaxyDemo, GaltonBoardDemo, GameOfLifeDemo, GeneticAlgorithmDemo, GeometryBoardViewer, LorenzDemo, LorenzViewer, LotkaVolterraDemo, LotkaVolterraViewer, LSystemDemo, LSystemViewer, MechanicsDemo, NewtonianMechanicsLabDemo, PsychologyReactionTestDemo, ReactionKineticsViewer, RigidBodyDemo, RigidBodyViewer, StarSystemDemo, StarSystemViewer, VitalMonitorViewer
public interface Simulatable
Interface for viewers or engines that support simulation/animation control.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if the simulation is currently playing.voidpause()Pauses the simulation.voidplay()Starts or resumes the simulation.voidsetSpeed(double multiplier) Sets the simulation speed (e.g., 1.0 for normal, 2.0 for double).voidstep()Advances the simulation by a single step.voidstop()Stops and resets the simulation.
-
Method Details
-
play
void play()Starts or resumes the simulation. -
pause
void pause()Pauses the simulation. -
stop
void stop()Stops and resets the simulation. -
step
void step()Advances the simulation by a single step. -
setSpeed
void setSpeed(double multiplier) Sets the simulation speed (e.g., 1.0 for normal, 2.0 for double). -
isPlaying
boolean isPlaying()Returns true if the simulation is currently playing.
-