|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--alice.tucson.api.Agent | +--sid.agent.RobotAgent
Questa classe rappresenta un generico agente robot in grado di muoversi in un ambiente virtuale: in
particolare, in riferimento alla simulazione del campo minato, gli agenti che estenderanno questa classe
saranno di due tipi:
agenti rilevatori di mine
agenti sminatori
Constructor Summary | |
RobotAgent(int x,
int y,
alice.tucson.api.AgentId name)
costruttore |
Method Summary | |
protected int |
getX()
restituisce la coordinata x dell'ambiente virtuale alla quale si trova l'agente |
protected int |
getY()
restituisce la coordinata y dell'ambiente virtuale alla quale si trova l'agente |
protected void |
setX(int x)
setta la coordinata x dell'ambiente virtuale alla quale si trova l'agente |
protected void |
setY(int y)
setta la coordinata y dell'ambiente virtuale alla quale si trova l'agente |
Methods inherited from class alice.tucson.api.Agent |
body, getContext, getId, getSpec, in, inp, out, rd, rdp, setSpec, spawn |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RobotAgent(int x, int y, alice.tucson.api.AgentId name) throws java.lang.Exception
x
- la coordinata x che relativa alla posizione iniziale del robotAgenty
- la coordinata y relativa alla posizione iniziale del robotAgentname
- il nome del robot agent, ovvero il suo identificativoMethod Detail |
protected int getX()
protected int getY()
protected void setX(int x)
protected void setY(int y)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |