Class Room

  • All Implemented Interfaces:
    Allocatable

    public class Room
    extends Location
    A representation of a room which can be allocated to activities. In a model this can be represented as a place with the number of tokens as specified by capacity.
    • Constructor Detail

      • Room

        public Room()
      • Room

        public Room​(java.lang.String name,
                    int capacity)
    • Method Detail

      • getCapacity

        public int getCapacity()
        Description copied from interface: Allocatable
        Returns the capacity of the allocatable entity. A room can have a capacity > 1, if there can be multiple cases handles within Similarly, a worker can perhaps multi-task and handle multiple cases at once.
        Specified by:
        getCapacity in interface Allocatable
        Overrides:
        getCapacity in class Location
        Returns:
        int capacity of the allocatable entity.
      • setCapacity

        public void setCapacity​(int capacity)