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()
getHeldPackage
public Package getHeldPackage()
getId
public java.lang.String getId()
getMessage
public java.lang.String getMessage()
getX
public int getX()
getY
public int getY()
hasBumped
public boolean hasBumped()
isHolding
public boolean isHolding()
setBumped
public void setBumped(boolean bumped)
setHeldPackage
public void setHeldPackage(Package p)
setMessage
public void setMessage(java.lang.String message)
setX
public void setX(int x)
setY
public void setY(int y)