Package mars.simulator
Class SimulatorStartEvent
java.lang.Object
java.util.EventObject
mars.simulator.SimulatorStartEvent
- All Implemented Interfaces:
Serializable
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:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorsConstructorDescriptionSimulatorStartEvent
(Simulator simulator, int stepCount) Construct a new event with the given parameters. -
Method Summary
Modifier and TypeMethodDescriptionint
The maximum number of steps the simulator will take (-1 if not applicable).Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
SimulatorStartEvent
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).
-