예제 #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;
 }
예제 #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));
     }
 }
예제 #3
0
 public GPSSensor(int id, DoorSensor door)
 {
     this.id   = id;
     this.door = door;
 }