nl.tudelft.simulation.traffic.vehicle
Class VehiclePositioner
java.lang.Object
nl.tudelft.simulation.event.EventProducer
nl.tudelft.simulation.jstats.ode.DifferentialEquation
nl.tudelft.simulation.dsol.formalisms.dess.DifferentialEquation
nl.tudelft.simulation.traffic.vehicle.VehiclePositioner
- All Implemented Interfaces:
- nl.tudelft.simulation.jstats.ode.DifferentialEquationInterface, nl.tudelft.simulation.dsol.formalisms.dess.DifferentialEquationInterface, java.util.EventListener, nl.tudelft.simulation.event.EventListenerInterface, nl.tudelft.simulation.event.EventProducerInterface, java.io.Serializable
- public class VehiclePositioner
- extends nl.tudelft.simulation.dsol.formalisms.dess.DifferentialEquation
(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
| Fields inherited from class nl.tudelft.simulation.dsol.formalisms.dess.DifferentialEquation |
previousX, previousY, simulator |
| Fields inherited from class nl.tudelft.simulation.jstats.ode.DifferentialEquation |
timeStep, x0, y0 |
| Fields inherited from class nl.tudelft.simulation.event.EventProducer |
listeners |
| Fields inherited from interface nl.tudelft.simulation.dsol.formalisms.dess.DifferentialEquationInterface |
FUNCTION_CHANGED_EVENT, VALUE_CHANGED_EVENT |
| Fields inherited from interface nl.tudelft.simulation.event.EventProducerInterface |
FIRST_POSITION, LAST_POSITION |
|
Method Summary |
double[] |
dy(double x,
double[] y)
|
protected double[] |
integrateY(double x,
double initialX,
double[] initialY)
|
void |
setValue(double speed,
double progression)
sets the speed and progression (e.g. |
void |
stopIntegration()
Stop the integration; do not make calculations anymore. |
| Methods inherited from class nl.tudelft.simulation.dsol.formalisms.dess.DifferentialEquation |
initialize, notify |
| Methods inherited from class nl.tudelft.simulation.jstats.ode.DifferentialEquation |
getIntegrator, setIntegrator, y |
| 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.jstats.ode.DifferentialEquationInterface |
y |
vehiclePhysical
protected VehiclePhysicalInterface vehiclePhysical
- the vehicle
VehiclePositioner
public VehiclePositioner(VehiclePhysicalInterface vehiclePhysical,
nl.tudelft.simulation.dsol.simulators.DESSSimulatorInterface simulator)
throws java.rmi.RemoteException
- Parameters:
vehiclePhysical - simulator -
- Throws:
java.rmi.RemoteException
VehiclePositioner
public VehiclePositioner(VehiclePhysicalInterface vehiclePhysical,
nl.tudelft.simulation.dsol.simulators.DESSSimulatorInterface simulator,
double timeStep)
- Parameters:
vehiclePhysical - simulator - timeStep -
VehiclePositioner
public VehiclePositioner(VehiclePhysicalInterface vehiclePhysical,
nl.tudelft.simulation.dsol.simulators.DESSSimulatorInterface simulator,
double timeStep,
short numericalMethod)
- Parameters:
vehiclePhysical - simulator - timeStep - numericalMethod -
VehiclePositioner
public VehiclePositioner(VehiclePhysical vehiclePhysical,
nl.tudelft.simulation.dsol.simulators.DESSSimulatorInterface simulator,
double timeStep,
nl.tudelft.simulation.jstats.ode.integrators.NumericalIntegrator numericalIntegrator)
- Parameters:
vehiclePhysical - simulator - timeStep - numericalIntegrator -
setValue
public void setValue(double speed,
double progression)
- sets the speed and progression (e.g. when entering a new track, the
progression will be reset).
- Parameters:
speed - progression -
dy
public double[] dy(double x,
double[] y)
- See Also:
DifferentialEquationInterface.dy(double,
double[])
integrateY
protected double[] integrateY(double x,
double initialX,
double[] initialY)
- See Also:
DifferentialEquation.integrateY(double,
double, double[])
stopIntegration
public void stopIntegration()
- Stop the integration; do not make calculations anymore.
Copyright © 2003-2004 Delft University of Technology, the Netherlands. All Rights Reserved.