Exemplo n.º 1
0
 public Group(int id)
 {
     Doors = new List<Door>();
     Buildings = new List<string>();
     this.Id = id;
     foreach (CsvRow row in ListGroups.CSV)
     {
         if (row.GroupId == id)
         {
             if (!Buildings.Contains(row.Building))
             {
                 Buildings.Add(row.Building);
             }
             Door d = new Door(row.Latitude, row.Longitude, row.DoorId, id);
             Doors.Add(d);
         }
     }
 }
Exemplo n.º 2
0
 public Edge(Door doorOne, Door doorTwo)
 {
     DoorOne = doorOne;
     DoorTwo = doorTwo;
     Distance = DoorOne.Distance(DoorTwo);
 }
Exemplo n.º 3
0
 public static Edge GetEdge(Door doorA, Door doorB)
 {
     return GetEdge(doorA.GroupId, doorB.GroupId);
 }