nus/Simulation.java
Yadunand Prem 08f94aa5d3 init
2022-08-25 17:25:02 +08:00

21 lines
564 B
Java

/**
* This class is a general abstract class that
* encapsulates a simulation. To implement a
* simulation, inherit from this class and implement
* the `getInitialEvents` method.
*
* @author Wei Tsang
* @version CS2030S AY21/22 Semester 2
*/
abstract class Simulation {
/**
* An abstract method to return an array of events
* used to initialize the simulation.
*
* @return An array of initial events that the
* simulator can use to kick-start the
* simulation.
*/
public abstract Event[] getInitialEvents();
}