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 Type
    Method
    Description
    boolean
    Returns true if the simulation is currently playing.
    void
    Pauses the simulation.
    void
    Starts or resumes the simulation.
    void
    setSpeed(double multiplier)
    Sets the simulation speed (e.g., 1.0 for normal, 2.0 for double).
    void
    Advances the simulation by a single step.
    void
    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.