nl.tudelft.simulation.traffic.vehicle
Interface VehicleControlInterface

All Superinterfaces:
java.util.EventListener, nl.tudelft.simulation.event.EventListenerInterface, nl.tudelft.simulation.event.EventProducerInterface
All Known Implementing Classes:
VehicleControl

public interface VehicleControlInterface
extends nl.tudelft.simulation.event.EventListenerInterface, nl.tudelft.simulation.event.EventProducerInterface

This interface defines the behavior of the control of a vehicle. The control takes the decisions regarding the behavior of the vehicle based on the environment and its own internal parameters. For instance, it decides when and if to stop for trafficlights or adapt to speedlimits.

For a detailed discussion of the involved logic, see the report (hyperlink?) and the source code of the implementation classes.
(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

Version:
Jul 4, 2004
Author:
Alexander Verbraeck

Field Summary
static nl.tudelft.simulation.event.EventType ACCELERATION_CHANGE
          This event signals a change of acceleration
static nl.tudelft.simulation.event.EventType CHECK_SCENARIO_FOR_PHYSICAL_EVENTS
          This event is used by the vehiclePhysical to check a given scenario for any relevant physical events.
static nl.tudelft.simulation.event.EventType END_OF_SCHEDULED_SCENARIO
          END_OF_SCHEDULED_SCENARIO is the event used for signalling the end of scheduled scenario.
static nl.tudelft.simulation.event.EventType PLANNING_CHANGED
          The PLANNING_CHANGED event signals a change of planning by the control.
static nl.tudelft.simulation.event.EventType UPDATE
          This event signifies that the control has updated itself.
 
Fields inherited from interface nl.tudelft.simulation.event.EventProducerInterface
FIRST_POSITION, LAST_POSITION
 
Method Summary
 java.lang.String getLine()
           
 VehiclePhysicalInterface getVehiclePhysical()
           
 void removeVehicle()
          remove the vehicle from the track
 void setVehiclePhysical(VehiclePhysicalInterface vehiclePhysical)
           
 void startDriving()
          this method is needed to tell the vehicle to start driving
 
Methods inherited from interface nl.tudelft.simulation.event.EventListenerInterface
notify
 
Methods inherited from interface nl.tudelft.simulation.event.EventProducerInterface
addListener, addListener, addListener, addListener, getEventTypes, removeListener
 

Field Detail

UPDATE

public static final nl.tudelft.simulation.event.EventType UPDATE
This event signifies that the control has updated itself.


PLANNING_CHANGED

public static final nl.tudelft.simulation.event.EventType PLANNING_CHANGED
The PLANNING_CHANGED event signals a change of planning by the control.


END_OF_SCHEDULED_SCENARIO

public static final nl.tudelft.simulation.event.EventType END_OF_SCHEDULED_SCENARIO
END_OF_SCHEDULED_SCENARIO is the event used for signalling the end of scheduled scenario.


CHECK_SCENARIO_FOR_PHYSICAL_EVENTS

public static final nl.tudelft.simulation.event.EventType CHECK_SCENARIO_FOR_PHYSICAL_EVENTS
This event is used by the vehiclePhysical to check a given scenario for any relevant physical events.


ACCELERATION_CHANGE

public static final nl.tudelft.simulation.event.EventType ACCELERATION_CHANGE
This event signals a change of acceleration

Method Detail

startDriving

public void startDriving()
this method is needed to tell the vehicle to start driving


getVehiclePhysical

public VehiclePhysicalInterface getVehiclePhysical()
Returns:
vehiclePhysical

setVehiclePhysical

public void setVehiclePhysical(VehiclePhysicalInterface vehiclePhysical)
                        throws java.lang.Exception
Parameters:
vehiclePhysical - The vehiclePhysical to set.
Throws:
java.lang.Exception

removeVehicle

public void removeVehicle()
                   throws java.rmi.RemoteException
remove the vehicle from the track

Throws:
java.rmi.RemoteException

getLine

public java.lang.String getLine()
Returns:
Returns the line.


Copyright © 2003-2004 Delft University of Technology, the Netherlands. All Rights Reserved.