public final class Room extends ASimpleEntity
Represents Room entity from a backend of school agenda.
  • Constructor Details

    • Room

      public Room()
      Instantiates new Room.
    • Room

      public Room(int idRooms, String roomName, int capacity)
      Instantiates new Room with all its attributes.
      Parameters:
      idRooms - ID of Room
      roomName - name of Room
      capacity - capacity of Room
  • Method Details

    • getID

      public int getID()
      Description copied from class: ASimpleEntity
      Gets simple identifier.
      Specified by:
      getID in class ASimpleEntity
      Returns:
      simple identifier
    • getSimpleIdentifier

      public String getSimpleIdentifier()
      Specified by:
      getSimpleIdentifier in class ASimpleEntity
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getBuilding

      public Building getBuilding()
      Get room building.
      Returns:
      room building
    • getScheduleactions

      public ScheduleAction[] getScheduleactions()
      Get room schedule action.
      Returns:
      room schedule action
    • getIdRooms

      public int getIdRooms()
      Get room id.
      Returns:
      room id
    • getRoomName

      public String getRoomName()
      Get room name.
      Returns:
      room name
    • getCapacity

      public int getCapacity()
      Get room capacity.
      Returns:
      room capacity
    • getScheduleactionDates

      public ScheduleActionDate[] getScheduleactionDates()
      Get room schedule action dates.
      Returns:
      room schedule action dates
    • setScheduleactionDates

      public void setScheduleactionDates(ScheduleActionDate[] scheduleactionDates)
      Set room schedule action date.
      Parameters:
      scheduleactionDates - room schedule action date
    • setBuilding

      public void setBuilding(Building building)
      Set room building.
      Parameters:
      building - room building
    • setScheduleactiondates

      public void setScheduleactiondates(ScheduleActionDate[] scheduleactionDates)
      Set room schedule action dates
      Parameters:
      scheduleactionDates - room schedule action dates
    • setScheduleactions

      public void setScheduleactions(ScheduleAction[] scheduleactions)
      Set room schedule action.
      Parameters:
      scheduleactions - room schedule action
    • setIdRooms

      public void setIdRooms(int idRooms)
      Set room id.
      Parameters:
      idRooms - room id
    • setRoomName

      public void setRoomName(String roomName)
      Set room name
      Parameters:
      roomName - room name
    • setCapacity

      public void setCapacity(int capacity)
      Set room capacity.
      Parameters:
      capacity - room capacity