Esempio n. 1
0
 //Random random = new Random();
 public CountSensor(DoorSensor d, int id)
 {
     this.d      = d;
     this.id     = id;
     passengers1 = 0;
     passengers2 = 0;
     passengers3 = 0;
     passengers4 = 0;
 }
Esempio n. 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));
     }
 }
Esempio n. 3
0
 public GPSSensor(int id, DoorSensor door)
 {
     this.id   = id;
     this.door = door;
 }