br.edu.fei.dcc.raciocinioespacial.simulador.entidades
Class Vehicle2D
java.lang.Object
java.util.Observable
br.edu.fei.dcc.raciocinioespacial.simulador.entidades.Pedestrian2D
br.edu.fei.dcc.raciocinioespacial.simulador.entidades.Vehicle2D
- All Implemented Interfaces:
- IEntidade, IEntidade2D, IEntidadeMovel, java.io.Serializable, java.lang.Cloneable
- Direct Known Subclasses:
- Agent2D
public class Vehicle2D
- extends Pedestrian2D
- See Also:
- Serialized Form
Constructor Summary |
Vehicle2D()
|
Vehicle2D(int x,
int y,
int width,
int height,
java.lang.String nome)
|
Vehicle2D(int x,
int y,
int width,
int height,
java.lang.String nome,
java.awt.Color cor,
java.util.ArrayList<java.awt.Point> pontos)
|
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 |
Vehicle2D
public Vehicle2D(int x,
int y,
int width,
int height,
java.lang.String nome)
Vehicle2D
public Vehicle2D()
Vehicle2D
public Vehicle2D(int x,
int y,
int width,
int height,
java.lang.String nome,
java.awt.Color cor,
java.util.ArrayList<java.awt.Point> pontos)
getDirecao
public float[] getDirecao()
- Getter of the property direcao
- Returns:
- Returns the direcao.
setDirecao
public void setDirecao(float direcao,
int index)
- Setter of the property direcao
- Parameters:
direcao
- The direcao to set.
getObjeto2D
public java.awt.geom.RectangularShape getObjeto2D()
- Specified by:
getObjeto2D
in interface IEntidade2D
- Overrides:
getObjeto2D
in class Pedestrian2D
calculaDirecoes
public void calculaDirecoes(java.awt.Polygon percurso)
getRect
public java.awt.Rectangle getRect()
- Specified by:
getRect
in interface IEntidadeMovel
- Overrides:
getRect
in class Pedestrian2D