pacworld
Class PacAgentRep
java.lang.Object
pacworld.PacAgentRep
public class PacAgentRep
- extends java.lang.Object
The representation of a Package World agent. Includes information about
the agent's id, position, and whether or not it is holding anything.
This is part of the agent's state, and should not be used by any
class outside of the simulator.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PacAgentRep
public PacAgentRep(Agent a)
getBumped
public boolean getBumped()
getId
public java.lang.String getId()
getHeldPackage
public Package getHeldPackage()
getX
public int getX()
getY
public int getY()
getMessage
public java.lang.String getMessage()
hasBumped
public boolean hasBumped()
isHolding
public boolean isHolding()
setBumped
public void setBumped(boolean bumped)
setHeldPackage
public void setHeldPackage(Package p)
setX
public void setX(int x)
setY
public void setY(int y)
setMessage
public void setMessage(java.lang.String message)