Class Location

    • Field Detail

      • capacity

        protected int capacity
      • parentLocation

        protected Location parentLocation
      • childLocations

        protected java.util.List<Location> childLocations
    • Constructor Detail

      • Location

        public Location​(java.lang.String name)
      • Location

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

      • getParentLocation

        public Location getParentLocation()
      • setParentLocation

        public void setParentLocation​(Location parentLocation)
      • getChildLocations

        public java.util.List<Location> getChildLocations()
      • 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
        Returns:
        int capacity of the allocatable entity.