|
||||||||||
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 timeMethod Detail |
---|
public ProxyDriver getDriver()
getDriver
in interface AutoVehicleDriverView
getDriver
in interface ProxyVehicleSimView
getDriver
in interface VehicleDriverView
getDriver
in class BasicAutoVehicle
null
if none exists.public void setDriver(ProxyDriver driver)
setDriver
in interface ProxyVehicleSimView
driver
- the new driver to control this Vehiclepublic SocketAddress getSa()
getSa
in interface ProxyVehicleSimView
public void setSa(SocketAddress sa)
setSa
in interface ProxyVehicleSimView
sa
- the new socket address to setpublic void processReal2ProxyMsg(Real2ProxyMsg msg)
processReal2ProxyMsg
in interface ProxyVehicleSimView
msg
- the Real2Proxy messagepublic void receive(I2VMessage msg)
receive
in interface AutoVehicleDriverView
receive
in class BasicAutoVehicle
msg
- the message to send to another Vehiclepublic void move(double timeStep)
move
in interface VehicleSimView
move
in class BasicVehicle
timeStep
- 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 |