|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This interface defines the behaviour of the physical part of a vehicle.
(c) copyright 2003-2004 Delft
University of Technology , the Netherlands.
See for project information
www.simulation.tudelft.nl
License of use: General Public
License (GPL) , no warranty
| Field Summary | |
static nl.tudelft.simulation.event.EventType |
REMOVE_EVENT
This event signals that the vehicle is leaving the infrastructure. |
| Fields inherited from interface nl.tudelft.simulation.event.EventProducerInterface |
FIRST_POSITION, LAST_POSITION |
| Method Summary | |
javax.vecmath.Point3d |
getBackwardLocation(double distance)
Returns the location of a position 'distace' meters behind the front of the vehicle |
double |
getCurrentAcceleration(double speed,
double progression)
Returns the vehicle's current acceleration |
double |
getCurrentSpeed()
Returns the vehicle's current speed |
TrackInterface |
getCurrentTrack()
Returns the vehicle's current track |
double |
getDistanceTraveled()
this method is used for verification etc. |
double |
getProgression()
Returns the vehicle's current progression on the track where it is located. |
VehicleControlInterface |
getVehicleControl()
Returns the control associated to this physical vehicle. |
VehicleType |
getVehicleType()
Returns the vehicleType. |
void |
removeVehicle()
remove the vehicle from the track |
void |
setMaximumSpeed(double speed)
Sets the vehicle's maximum speed |
double[] |
setSpeedAndProgression(double speed,
double progression)
|
void |
setVehicleControl(VehicleControlInterface vehicleControl)
|
void |
startDriving()
this method is needed to tell the vehicle to start driving |
| Methods inherited from interface nl.tudelft.simulation.event.EventProducerInterface |
addListener, addListener, addListener, addListener, getEventTypes, removeListener |
| Methods inherited from interface nl.tudelft.simulation.dsol.animation.LocatableInterface |
getBounds, getLocation |
| Methods inherited from interface nl.tudelft.simulation.event.EventListenerInterface |
notify |
| Field Detail |
public static final nl.tudelft.simulation.event.EventType REMOVE_EVENT
| Method Detail |
public void startDriving()
public double getCurrentAcceleration(double speed,
double progression)
speed - progression -
public double[] setSpeedAndProgression(double speed,
double progression)
speed - progression -
public void setMaximumSpeed(double speed)
speed - public double getCurrentSpeed()
public double getProgression()
public TrackInterface getCurrentTrack()
public javax.vecmath.Point3d getBackwardLocation(double distance)
distance -
public VehicleType getVehicleType()
public VehicleControlInterface getVehicleControl()
public void setVehicleControl(VehicleControlInterface vehicleControl)
vehicleControl - The vehicleControl to set.public double getDistanceTraveled()
public void removeVehicle()
throws java.rmi.RemoteException
java.rmi.RemoteException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||