예제 #1
0
        public Building_Floor removeFloorAtFloorNumber(int floorNumber)
        {
            Building_Floor tbr = mFloors[floorNumber];

            mFloors.Remove(floorNumber);

            return(tbr);
        }
예제 #2
0
 /**
  *
  * @param newFloor
  * @return True, if the floor was added (i.e., it had a new floor number); false otherwise
  */
 public bool addFloor(Building_Floor newFloor)
 {
     if (!mFloors.ContainsKey(newFloor.getFloorNumber()))
     {
         mFloors.Add(newFloor.getFloorNumber(), newFloor);
         return(true);
     }
     return(false);
 }
예제 #3
0
 /**
  * 
  * @param newFloor
  * @return True, if the floor was added (i.e., it had a new floor number); false otherwise
  */
 public bool addFloor(Building_Floor newFloor)
 {
     if (!mFloors.ContainsKey(newFloor.getFloorNumber()))
     {
         mFloors.Add(newFloor.getFloorNumber(), newFloor);
         return true;
     }
     return false;
 }