.. java:import:: ch.epfl.leb.sass.models Microscope .. java:import:: java.util List SimulationManager ================= .. java:package:: ch.epfl.leb.sass.simulator :noindex: .. java:type:: public interface SimulationManager Management tool for handling multiple Simulators. :author: Kyle M. Douglass Methods ------- addSimulator ^^^^^^^^^^^^ .. java:method:: public void addSimulator(Simulator simulator) :outertype: SimulationManager Adds a simulation to the manager. :param simulator: The simulation to add to the manager. getIds ^^^^^^ .. java:method:: public List getIds() :outertype: SimulationManager Returns a list of simulation IDs currently managed by this Manager. A simulation manager is a Singleton; there is only one. :return: A list of simulation ID numbers. getMostRecentMicroscope ^^^^^^^^^^^^^^^^^^^^^^^ .. java:method:: public Microscope getMostRecentMicroscope() :outertype: SimulationManager Returns the most recent microscope that was used to create a simulation. This method serves as a sort of cache for remembering the most recently created \ :java:ref:`Microscope `\ object. Its purpose is to allow for easy generation of new Simulators. This method will return null if the SimulatorManager has never managed a simulation. :return: A copy of the Microscope object null. getSimulator ^^^^^^^^^^^^ .. java:method:: public Simulator getSimulator(int id) :outertype: SimulationManager Returns a reference to the simulator corresponding to the ID. :param id: The ID number of a simulation. :return: A reference to the Simulator. removeSimulator ^^^^^^^^^^^^^^^ .. java:method:: public void removeSimulator(int id) :outertype: SimulationManager Removes a Simulator from the manager. :param id: The ID number of a simulation to remove.