コード例 #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;
 }