feat: add Lab4

This commit is contained in:
Yadunand Prem
2022-09-15 11:21:56 +08:00
parent c4d857ed02
commit 46d4fa5e9d
116 changed files with 912 additions and 2 deletions

20
Lab1/Simulation.java Normal file
View File

@@ -0,0 +1,20 @@
/**
* 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 Yadunand Prem
* @version CS2030S AY22/23 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();
}