br.edu.fei.dcc.raciocinioespacial.simulador.entidades
Class Agent2D

java.lang.Object
  extended by java.util.Observable
      extended by br.edu.fei.dcc.raciocinioespacial.simulador.entidades.Pedestrian2D
          extended by br.edu.fei.dcc.raciocinioespacial.simulador.entidades.Vehicle2D
              extended by br.edu.fei.dcc.raciocinioespacial.simulador.entidades.Agent2D
All Implemented Interfaces:
IEntidade, IEntidade2D, IEntidadeMovel, java.io.Serializable, java.lang.Cloneable

public class Agent2D
extends Vehicle2D

Author:
Thiago
See Also:
Serialized Form

Constructor Summary
Agent2D()
           
Agent2D(int x, int y, int width, int height, java.lang.String nome, java.awt.Color cor, java.util.ArrayList<java.awt.Point> pontos, int profundidade, float angulo)
           
Agent2D(int x, int y, int width, int height, java.lang.String nome, java.awt.Color cor, int profundidade, float angulo)
           
Agent2D(int x, int y, int width, int height, java.lang.String nome, int profundidade, float angulo)
           
 
Method Summary
 float getAngulo()
          Getter of the property angulo
 java.awt.geom.Arc2D getCampoVisao2D_Old()
           
 java.awt.geom.Arc2D getCampoVisao2D()
           
 float[] getDirecao()
          Getter of the property direcao
 int getProfundidade()
          Getter of the property profundidade
 boolean hasMovement()
           
 void setAngulo(float angulo)
          Setter of the property angulo
 void setDirecao(float direcao, int index)
          Setter of the property direcao
 void setProfundidade(int profundidade)
          Setter of the property profundidade
 
Methods inherited from class br.edu.fei.dcc.raciocinioespacial.simulador.entidades.Vehicle2D
calculaDirecoes, getObjeto2D, getRect
 
Methods inherited from class br.edu.fei.dcc.raciocinioespacial.simulador.entidades.Pedestrian2D
criarEntidade, getCor, getHeight, getNome, getPontos, getSentido, getTempoTotalMovimentacao, getVelocidade, getWidth, getX, getY, move, moveInitialPos, notificarObservadores, notifyObservers, setCor, setHeight, setNome, setPontos, setSentido, setVelocidade, setWidth, setX, setY, transformEntidadeMovelToObjeto2D
 
Methods inherited from class java.util.Observable
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Agent2D

public Agent2D(int x,
               int y,
               int width,
               int height,
               java.lang.String nome,
               int profundidade,
               float angulo)

Agent2D

public Agent2D(int x,
               int y,
               int width,
               int height,
               java.lang.String nome,
               java.awt.Color cor,
               int profundidade,
               float angulo)

Agent2D

public Agent2D()

Agent2D

public Agent2D(int x,
               int y,
               int width,
               int height,
               java.lang.String nome,
               java.awt.Color cor,
               java.util.ArrayList<java.awt.Point> pontos,
               int profundidade,
               float angulo)
Method Detail

getAngulo

public float getAngulo()
Getter of the property angulo

Returns:
Returns the angulo.

getDirecao

public float[] getDirecao()
Getter of the property direcao

Overrides:
getDirecao in class Vehicle2D
Returns:
Returns the direcao.

getProfundidade

public int getProfundidade()
Getter of the property profundidade

Returns:
Returns the profundidade.

getCampoVisao2D

public java.awt.geom.Arc2D getCampoVisao2D()

getCampoVisao2D_Old

public java.awt.geom.Arc2D getCampoVisao2D_Old()

setAngulo

public void setAngulo(float angulo)
Setter of the property angulo

Parameters:
angulo - The angulo to set.

setDirecao

public void setDirecao(float direcao,
                       int index)
Setter of the property direcao

Overrides:
setDirecao in class Vehicle2D
Parameters:
direcao - The direcao to set.

setProfundidade

public void setProfundidade(int profundidade)
Setter of the property profundidade

Parameters:
profundidade - The profundidade to set.

hasMovement

public boolean hasMovement()