Interface GalaxySimulator

All Known Implementing Classes:
ObjectGalaxySimulator, PrimitiveGalaxySimulator

public interface GalaxySimulator
Interface for Galaxy Physics Simulation. Allows benchmarking Primitive vs Object-based Physics.
Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
    Initialize the simulator with the star field.
    void
    setGalaxy2State(double x, double y, double vx, double vy)
    Updates the state of the second galaxy core.
    void
    update(boolean collisionMode, double g2x, double g2y)
    Update the simulation by one step.
  • Method Details

    • init

      void init(List<StarParticle> stars)
      Initialize the simulator with the star field.
    • update

      void update(boolean collisionMode, double g2x, double g2y)
      Update the simulation by one step.
    • setGalaxy2State

      void setGalaxy2State(double x, double y, double vx, double vy)
      Updates the state of the second galaxy core.
    • getName

      String getName()