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


Field Summary
 
Fields inherited from class yab.agent.object.RCRObject
id, object, world
 
Constructor Summary
Building(int id, BaseBuilding object, DisasterSpace world)
           
Building(int id, DisasterSpace world)
           
 
Method Summary
 int buildingAreaGround()
           
 int buildingAreaTotal()
           
 int buildingCode()
           
 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.
 MotionlessObject entrance()
           
 int fieryness()
           
 int floors()
           
 boolean isBurning()
           
 boolean isPutOut()
           
 boolean isUnburned()
           
 Collection neighborhood()
           
 void setProperty(int type, int[] value)
           
 
Methods inherited from class yab.agent.object.PointObject
x, y
 
Methods inherited from class yab.agent.object.MotionlessObject
motionlessPosition
 
Methods inherited from class yab.agent.object.RealObject
direction, distance, hasBeenSeen
 
Methods inherited from class yab.agent.object.RCRObject
hashCode, produce, setProperty, setTime, time, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Building

public Building(int id,
                BaseBuilding object,
                DisasterSpace world)

Building

public Building(int id,
                DisasterSpace world)
Method Detail

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