yab.agent.object
Class Building
java.lang.Object
|
+--yab.agent.object.RCRObject
|
+--yab.agent.object.RealObject
|
+--yab.agent.object.MotionlessObject
|
+--yab.agent.object.PointObject
|
+--yab.agent.object.Building
- Direct Known Subclasses:
- AmbulanceCenter, FireStation, PoliceOffice, Refuge
- public class Building
- extends PointObject
Building
public Building(int id,
BaseBuilding object,
DisasterSpace world)
Building
public Building(int id,
DisasterSpace world)
floors
public int floors()
fieryness
public int fieryness()
buildingCode
public int buildingCode()
buildingAreaGround
public int buildingAreaGround()
buildingAreaTotal
public int buildingAreaTotal()
entrance
public MotionlessObject entrance()
neighborhood
public Collection neighborhood()
- Specified by:
neighborhood
in class MotionlessObject
isUnburned
public boolean isUnburned()
isBurning
public boolean isBurning()
isPutOut
public boolean isPutOut()
burningTime
public int burningTime()
- CAUTION: This method is implemented assuming that the agent
can perceive all fires in the disaster space regardless of how
far them are.
setProperty
public void setProperty(int type,
int[] value)
- Overrides:
setProperty
in class RCRObject