DefaultSimulationManager¶
-
public class
DefaultSimulationManager
implements SimulationManager¶ A default implementation of the SimulationManager class.
Author: Kyle M. Douglass
Constructors¶
DefaultSimulationManager¶
-
public
DefaultSimulationManager
(ConcurrentHashMap simulations)¶ Adds a table of simulations to a new SimulationManager instance.
Parameters: - simulations – A table of simulations to add to the new instance.
Methods¶
addSimulator¶
getIds¶
getMostRecentMicroscope¶
-
public Microscope
getMostRecentMicroscope
()¶ 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
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.Returns: A copy of the Microscope object or null.