AbstractSimulator

public abstract class AbstractSimulator implements Simulator

Fields and methods that all Simulators should possess.

Author:Marcel Stefko

Fields

id

protected int id

A unique ID assigned to this simulator.

parameters

protected HashMap<String, Double> parameters

Map of custom parameters for the generator.

simulatorIds

protected static int simulatorIds

Running total of the number of simulators that have been created.

stack

protected ImageS stack

Stack to which the generated images are appended.

Constructors

AbstractSimulator

public AbstractSimulator()

Initializes the simulator.

Methods

getId

public int getId()

Returns the integer ID of the simulator instance.

Returns:A unique integer ID for this simulator.

getImageCount

public int getImageCount()

getStack

public ImageS getStack()

saveStack

public void saveStack(File file)