yab.agent.object
Class Edge

java.lang.Object
  |
  +--yab.agent.object.RCRObject
        |
        +--yab.agent.object.RealObject
              |
              +--yab.agent.object.MotionlessObject
                    |
                    +--yab.agent.object.Edge
Direct Known Subclasses:
River, Road

public abstract class Edge
extends MotionlessObject


Field Summary
 
Fields inherited from class yab.agent.object.RCRObject
id, object, world
 
Constructor Summary
Edge(int id, BaseEdge object, DisasterSpace world)
           
 
Method Summary
 PointObject head()
           
 int length()
           
 Collection neighborhood()
           
 PointObject tail()
           
 int x()
           
 int 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, setProperty, setTime, time, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Edge

public Edge(int id,
            BaseEdge object,
            DisasterSpace world)
Method Detail

head

public PointObject head()

tail

public PointObject tail()

length

public int length()

x

public int x()
Specified by:
x in class RealObject

y

public int y()
Specified by:
y in class RealObject

neighborhood

public Collection neighborhood()
Specified by:
neighborhood in class MotionlessObject