nl.tudelft.simulation.traffic.vehicle
Class VehicleSegment
java.lang.Object
nl.tudelft.simulation.traffic.vehicle.VehicleSegment
- All Implemented Interfaces:
- nl.tudelft.simulation.dsol.animation.LocatableInterface
- public class VehicleSegment
- extends java.lang.Object
- implements nl.tudelft.simulation.dsol.animation.LocatableInterface
(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:
- Jun 20, 2004
- Author:
- Alexander
Verbraeck
|
Constructor Summary |
VehicleSegment(VehiclePhysicalInterface vehicle,
nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface devs,
java.awt.Color color,
double front,
double axle1,
double axle2,
double length)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VehicleSegment
public VehicleSegment(VehiclePhysicalInterface vehicle,
nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface devs,
java.awt.Color color,
double front,
double axle1,
double axle2,
double length)
- Parameters:
vehicle - devs - color - front - axle1 - axle2 - length -
getAxle1
public double getAxle1()
- Returns:
- Returns the axle1.
getAxle2
public double getAxle2()
- Returns:
- Returns the axle2.
getFront
public double getFront()
- Returns:
- Returns the front.
getLength
public double getLength()
- Returns:
- Returns the length.
getLocation
public nl.tudelft.simulation.language.d3.DirectedPoint getLocation()
throws java.rmi.RemoteException
- Specified by:
getLocation in interface nl.tudelft.simulation.dsol.animation.LocatableInterface
- Throws:
java.rmi.RemoteException- See Also:
LocatableInterface.getLocation()
getBounds
public javax.media.j3d.Bounds getBounds()
throws java.rmi.RemoteException
- Specified by:
getBounds in interface nl.tudelft.simulation.dsol.animation.LocatableInterface
- Throws:
java.rmi.RemoteException- See Also:
LocatableInterface.getBounds()
getVehicle
public VehiclePhysicalInterface getVehicle()
- Returns:
- Returns the vehicle.
Copyright © 2003-2004 Delft University of Technology, the Netherlands. All Rights Reserved.