nl.tudelft.simulation.traffic.vehicle
Class VehicleControl

java.lang.Object
  extended bynl.tudelft.simulation.event.EventProducer
      extended bynl.tudelft.simulation.traffic.vehicle.VehicleControl
All Implemented Interfaces:
java.util.EventListener, nl.tudelft.simulation.event.EventListenerInterface, nl.tudelft.simulation.event.EventProducerInterface, java.io.Serializable, VehicleControlInterface

public class VehicleControl
extends nl.tudelft.simulation.event.EventProducer
implements VehicleControlInterface


(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
See Also:
Serialized Form

Field Summary
 
Fields inherited from class nl.tudelft.simulation.event.EventProducer
listeners
 
Fields inherited from interface nl.tudelft.simulation.traffic.vehicle.VehicleControlInterface
ACCELERATION_CHANGE, CHECK_SCENARIO_FOR_PHYSICAL_EVENTS, END_OF_SCHEDULED_SCENARIO, PLANNING_CHANGED, UPDATE
 
Fields inherited from interface nl.tudelft.simulation.event.EventProducerInterface
FIRST_POSITION, LAST_POSITION
 
Constructor Summary
VehicleControl(java.lang.String line)
           
VehicleControl(TrackInterface track, double progression, double maxSpeedStart, nl.tudelft.simulation.dsol.simulators.DEVDESSSimulatorInterface simulator, VehicleType vehicleType, java.lang.String line)
           
 
Method Summary
 java.lang.String getLine()
           
 VehiclePhysicalInterface getVehiclePhysical()
           
 void notify(nl.tudelft.simulation.event.EventInterface event)
           
 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 class nl.tudelft.simulation.event.EventProducer
addListener, addListener, addListener, addListener, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, getEventTypes, removeAllListeners, removeAllListeners, removeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface nl.tudelft.simulation.event.EventProducerInterface
addListener, addListener, addListener, addListener, getEventTypes, removeListener
 

Constructor Detail

VehicleControl

public VehicleControl(java.lang.String line)
Parameters:
line -

VehicleControl

public VehicleControl(TrackInterface track,
                      double progression,
                      double maxSpeedStart,
                      nl.tudelft.simulation.dsol.simulators.DEVDESSSimulatorInterface simulator,
                      VehicleType vehicleType,
                      java.lang.String line)
               throws java.lang.Exception
Parameters:
track -
progression -
maxSpeedStart -
simulator -
vehicleType -
line -
Throws:
java.lang.Exception
Method Detail

startDriving

public void startDriving()
Description copied from interface: VehicleControlInterface
this method is needed to tell the vehicle to start driving

Specified by:
startDriving in interface VehicleControlInterface
See Also:
VehicleControlInterface.startDriving()

getVehiclePhysical

public VehiclePhysicalInterface getVehiclePhysical()
Specified by:
getVehiclePhysical in interface VehicleControlInterface
Returns:
vehiclePhysical
See Also:
VehicleControlInterface.getVehiclePhysical()

setVehiclePhysical

public void setVehiclePhysical(VehiclePhysicalInterface vehiclePhysical)
                        throws java.lang.Exception
Specified by:
setVehiclePhysical in interface VehicleControlInterface
Parameters:
vehiclePhysical - The vehiclePhysical to set.
Throws:
java.lang.Exception
See Also:
VehicleControlInterface.setVehiclePhysical(nl.tudelft.simulation.traffic.vehicle.VehiclePhysicalInterface)

getLine

public java.lang.String getLine()
Specified by:
getLine in interface VehicleControlInterface
Returns:
Returns the line.

removeVehicle

public void removeVehicle()
                   throws java.rmi.RemoteException
Description copied from interface: VehicleControlInterface
remove the vehicle from the track

Specified by:
removeVehicle in interface VehicleControlInterface
Throws:
java.rmi.RemoteException
See Also:
VehicleControlInterface.removeVehicle()

notify

public void notify(nl.tudelft.simulation.event.EventInterface event)
            throws java.rmi.RemoteException
Specified by:
notify in interface nl.tudelft.simulation.event.EventListenerInterface
Throws:
java.rmi.RemoteException
See Also:
EventListenerInterface.notify(nl.tudelft.simulation.event.EventInterface)


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