forked from cmarini/NSE-Train-Control
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSimulator.java
62 lines (55 loc) · 1.15 KB
/
Simulator.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package Simulator;
import CTC.CTCView;
public class Simulator
{
private static boolean demoMode = false;
private static int demoEvent = 0;
private static int timeCounter;
private static CTCView view;
public void setView(CTCView v)
{
view = v;
}
public static void run()
{
demoMode = view.getDemo();
if(demoMode)
{
if(timeCounter % 30000 == 0)
{
switch(demoEvent)
{
case 0:
break;
default:
break;
}
demoEvent++;
}
else
{
timeCounter++;
}
}
else
{
demoEvent = 0;
timeCounter = 0;
}
}
/*
* public TrainController getTrainController(String TrainID)
* {
*
* }
*
* public void createTrain(train attributes)
* {
*
* }
*/
}