Beispiel #1
0
 /// <summary>
 /// Creates the core instances of SS1.
 /// </summary>
 public static void Init()
 {
     control      = TrafficControl.GetInstance;
     lightManager = TrafficLightManager.GetInstance;
     detector     = TrafficDetection.GetInstance;
 }
Beispiel #2
0
 /// <summary>
 /// Calls method, which need to be carried out each tick.
 /// </summary>
 public static void SimulateTick()
 {
     TrafficLightManager.UpdateTrafficLights();
 }
Beispiel #3
0
 /// <summary>
 /// This method gets called by the DataLinker and receives a list of new TrafficLightPlans.
 /// It then forwards the plans to the TrafficLightManager.
 /// </summary>
 /// <param name="plans"></param>
 public static void ReceiveTrafficLightPlans(List <TrafficLightPlan> plans)
 {
     TrafficLightManager.AddTrafficLightPlans(plans);
 }