Class SimulatorStartEvent

java.lang.Object
java.util.EventObject
mars.simulator.SimulatorStartEvent
All Implemented Interfaces:
Serializable

public class SimulatorStartEvent extends EventObject
Event for when the simulator begins execution of a program. Note that the return value of EventObject.getSource() will always be a Simulator.
See Also:
  • Constructor Details

    • SimulatorStartEvent

      public SimulatorStartEvent(Simulator simulator, int stepCount)
      Construct a new event with the given parameters.
      Parameters:
      simulator - The source of this event.
      stepCount - The maximum number of steps the simulator will take (-1 if not applicable).
  • Method Details

    • getStepCount

      public int getStepCount()
      The maximum number of steps the simulator will take (-1 if not applicable).