pacworld
Class PacAgentRep

java.lang.Object
  extended by 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.


Constructor Summary
PacAgentRep(Agent a)
           
 
Method Summary
 boolean getBumped()
           
 Package getHeldPackage()
           
 java.lang.String getId()
           
 java.lang.String getMessage()
           
 int getX()
           
 int getY()
           
 boolean hasBumped()
           
 boolean isHolding()
           
 void setBumped(boolean bumped)
           
 void setHeldPackage(Package p)
           
 void setMessage(java.lang.String message)
           
 void setX(int x)
           
 void setY(int y)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PacAgentRep

public PacAgentRep(Agent a)
Method Detail

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)