|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectaim4.vehicle.BasicVehicle
aim4.vehicle.BasicAutoVehicle
aim4.vehicle.ProxyVehicle
public class ProxyVehicle
The proxy vehicle.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class aim4.vehicle.BasicVehicle |
|---|
BasicVehicle.AccelScheduleMovement, BasicVehicle.Movement, BasicVehicle.MovementFactory, BasicVehicle.MovementWithAccel, BasicVehicle.MoveToTargetVelocityMovement, BasicVehicle.NonAccelMovement, BasicVehicle.PhysicalMovement, BasicVehicle.SteeringMovement, BasicVehicle.TrackMovement |
| Nested classes/interfaces inherited from interface aim4.vehicle.AutoVehicleDriverView |
|---|
AutoVehicleDriverView.LRFMode |
| Field Summary |
|---|
| Fields inherited from class aim4.vehicle.BasicAutoVehicle |
|---|
bitsReceived, DEFAULT_TRANSMISSION_POWER |
| Fields inherited from class aim4.vehicle.BasicVehicle |
|---|
currentTime, movement, spec, vin |
| Constructor Summary | |
|---|---|
ProxyVehicle(Point2D pos,
double heading,
double steeringAngle,
double velocity,
double targetVelocity,
double acceleration,
double currentTime)
Create a proxy vehicle. |
|
| Method Summary | |
|---|---|
ProxyDriver |
getDriver()
Getter method for the Driver controlling this Vehicle. |
SocketAddress |
getSa()
|
void |
move(double timeStep)
Move a single Vehicle according to some approximation of the laws of physics. |
void |
processReal2ProxyMsg(Real2ProxyMsg msg)
Process the incoming Real2Proxy message |
void |
receive(I2VMessage msg)
Adds a message to the incoming queue of messages received from IntersectionManagers. |
void |
setDriver(ProxyDriver driver)
Set this proxy vehicle's driver. |
void |
setSa(SocketAddress sa)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface aim4.vehicle.AutoVehicleSimView |
|---|
setLRFSensing |
| Methods inherited from interface aim4.vehicle.VehicleSimView |
|---|
checkCurrentTime, getAcceleration, getCenterPoint, getCornerPoints, getEdges, getHeading, getPointAtMiddleFront, getPointAtRear, getPosition, getShape, getShape, getV2IOutbox, getVelocity, getWheelShapes, setDriver, setVIN |
| Constructor Detail |
|---|
public ProxyVehicle(Point2D pos,
double heading,
double steeringAngle,
double velocity,
double targetVelocity,
double acceleration,
double currentTime)
pos - the positionheading - the headingsteeringAngle - the steering anglevelocity - the velocitytargetVelocity - the target velocityacceleration - the accelerationcurrentTime - the current time| Method Detail |
|---|
public ProxyDriver getDriver()
getDriver in interface AutoVehicleDriverViewgetDriver in interface ProxyVehicleSimViewgetDriver in interface VehicleDriverViewgetDriver in class BasicAutoVehiclenull
if none exists.public void setDriver(ProxyDriver driver)
setDriver in interface ProxyVehicleSimViewdriver - the new driver to control this Vehiclepublic SocketAddress getSa()
getSa in interface ProxyVehicleSimViewpublic void setSa(SocketAddress sa)
setSa in interface ProxyVehicleSimViewsa - the new socket address to setpublic void processReal2ProxyMsg(Real2ProxyMsg msg)
processReal2ProxyMsg in interface ProxyVehicleSimViewmsg - the Real2Proxy messagepublic void receive(I2VMessage msg)
receive in interface AutoVehicleDriverViewreceive in class BasicAutoVehiclemsg - the message to send to another Vehiclepublic void move(double timeStep)
move in interface VehicleSimViewmove in class BasicVehicletimeStep - the size of the time step to simulate, in seconds
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||