//Random random = new Random();
 public CountSensor(DoorSensor d, int id)
 {
     this.d      = d;
     this.id     = id;
     passengers1 = 0;
     passengers2 = 0;
     passengers3 = 0;
     passengers4 = 0;
 }
Example #2
0
 public PassCount(DoorSensor d, int n, int id)
 {
     this.d    = d;
     this.n    = n;
     this.id   = id;
     this.vett = new List <CountSensor>();
     for (int i = 0; i < n; i++)
     {
         vett.Add(new CountSensor(d, id));
     }
 }
Example #3
0
 public GPSSensor(int id, DoorSensor door)
 {
     this.id   = id;
     this.door = door;
 }