sid.agent
Class DetectAgent

java.lang.Object
  |
  +--alice.tucson.api.Agent
        |
        +--sid.agent.RobotAgent
              |
              +--sid.agent.DetectAgent

public class DetectAgent
extends RobotAgent

agente rilevatore di mine


Constructor Summary
DetectAgent(int x, int y, int[][] matrix, alice.tucson.api.AgentId name)
          costruttore
 
Method Summary
protected  void body()
          definizione del body dell'agente rilevatore di mine
 
Methods inherited from class sid.agent.RobotAgent
getX, getY, setX, setY
 
Methods inherited from class alice.tucson.api.Agent
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

DetectAgent

public DetectAgent(int x,
                   int y,
                   int[][] matrix,
                   alice.tucson.api.AgentId name)
            throws java.lang.Exception
costruttore

Parameters:
x - la coordinata x che relativa alla posizione iniziale dell' Agent
y - la coordinata y relativa alla posizione iniziale dell' Agent
matrix - riferimento alla matrice usata per aggiornare l'interfaccia grafica del campo minato
name - il nome del robot agent, ovvero il suo identificativo
Method Detail

body

protected void body()
definizione del body dell'agente rilevatore di mine

Specified by:
body in class alice.tucson.api.Agent