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