public class Simulation
extends java.lang.Object
Constructor and Description |
---|
Simulation() |
Modifier and Type | Method and Description |
---|---|
static int |
getTime()
Returns current simulation time
|
static void |
main(java.lang.String[] args) |
static void |
setTime(int time)
Sets the global time,
Note: This method should ONLY be used by JUnit test programs
|
public static int getTime()
public static void setTime(int time)
Note: This method should ONLY be used by JUnit test programs
time
- new value for global timejava.lang.RuntimeException
- if called during simulation runspublic static void main(java.lang.String[] args) throws java.io.IOException
java.io.IOException