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 TypeMethodDescriptiongetName()voidinit(List<StarParticle> stars) Initialize the simulator with the star field.voidsetGalaxy2State(double x, double y, double vx, double vy) Updates the state of the second galaxy core.voidupdate(boolean collisionMode, double g2x, double g2y) Update the simulation by one step.
-
Method Details
-
init
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()
-