.. java:import:: java.io File .. java:import:: java.util HashMap .. java:import:: ch.epfl.leb.sass.simulator Simulator .. java:import:: ch.epfl.leb.sass.utils.images ImageS AbstractSimulator ================= .. java:package:: ch.epfl.leb.sass.simulator.internal :noindex: .. java:type:: public abstract class AbstractSimulator implements Simulator Fields and methods that all Simulators should possess. :author: Marcel Stefko Fields ------ id ^^ .. java:field:: protected int id :outertype: AbstractSimulator A unique ID assigned to this simulator. parameters ^^^^^^^^^^ .. java:field:: protected HashMap parameters :outertype: AbstractSimulator Map of custom parameters for the generator. simulatorIds ^^^^^^^^^^^^ .. java:field:: protected static int simulatorIds :outertype: AbstractSimulator Running total of the number of simulators that have been created. stack ^^^^^ .. java:field:: protected ImageS stack :outertype: AbstractSimulator Stack to which the generated images are appended. Constructors ------------ AbstractSimulator ^^^^^^^^^^^^^^^^^ .. java:constructor:: public AbstractSimulator() :outertype: AbstractSimulator Initializes the simulator. Methods ------- getId ^^^^^ .. java:method:: @Override public int getId() :outertype: AbstractSimulator Returns the integer ID of the simulator instance. :return: A unique integer ID for this simulator. getImageCount ^^^^^^^^^^^^^ .. java:method:: @Override public int getImageCount() :outertype: AbstractSimulator getStack ^^^^^^^^ .. java:method:: @Override public ImageS getStack() :outertype: AbstractSimulator saveStack ^^^^^^^^^ .. java:method:: @Override public void saveStack(File file) :outertype: AbstractSimulator