public class Room extends Location
childLocations, parentLocation
Constructor and Description |
---|
Room() |
Room(java.lang.String name,
int capacity) |
Modifier and Type | Method and Description |
---|---|
int |
getCapacity()
Returns the capacity of the allocatable entity.
|
void |
setCapacity(int capacity) |
getChildLocations, getParentLocation, setParentLocation
getName, setName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName
public int getCapacity()
Allocatable
getCapacity
in interface Allocatable
getCapacity
in class Location
public void setCapacity(int capacity)