nl.tudelft.simulation.traffic.vehicle
Class VehicleType

java.lang.Object
  extended bynl.tudelft.simulation.traffic.vehicle.VehicleType

public class VehicleType
extends java.lang.Object

The data of a vehicle that can be generated or constructed.

(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 14, 2004
Author:
Alexander Verbraeck

Nested Class Summary
 class VehicleType.Segment
          The segment information for a segmented vehicle.
 
Constructor Summary
VehicleType()
          Create a new vehicle type
 
Method Summary
 void addSegment(double front, double axle1, double axle2, double length)
           
 java.lang.String generateUniqueName()
           
 AccelerationProfile getAccelerationProfile()
           
 java.awt.Color getColor()
           
 DecelerationProfile getDecelerationProfile()
           
 double getLength()
           
 java.lang.String getName()
           
 java.util.ArrayList getSegments()
           
 double getVehicleMaximumSpeed()
           
 double getWidth()
           
 void setAccelerationProfile(AccelerationProfile accelerationProfile)
           
 void setColor(java.awt.Color color)
           
 void setDecelerationProfile(DecelerationProfile decelerationProfile)
           
 void setLength(double length)
           
 void setName(java.lang.String name)
           
 void setVehicleMaximumSpeed(double vehicleMaximumSpeed)
           
 void setWidth(double width)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VehicleType

public VehicleType()
Create a new vehicle type

Method Detail

getColor

public java.awt.Color getColor()
Returns:
Returns the color.

setColor

public void setColor(java.awt.Color color)
Parameters:
color - The color to set.

getLength

public double getLength()
Returns:
Returns the length.

setLength

public void setLength(double length)
Parameters:
length - The length to set.

getName

public java.lang.String getName()
Returns:
Returns the name.

setName

public void setName(java.lang.String name)
Parameters:
name - The name to set.

getWidth

public double getWidth()
Returns:
Returns the width.

setWidth

public void setWidth(double width)
Parameters:
width - The width to set.

addSegment

public void addSegment(double front,
                       double axle1,
                       double axle2,
                       double length)
Parameters:
front -
axle1 -
axle2 -
length -

getSegments

public java.util.ArrayList getSegments()
Returns:
Returns the segments.

getVehicleMaximumSpeed

public double getVehicleMaximumSpeed()
Returns:
Returns the vehicleMaximumSpeed.

setVehicleMaximumSpeed

public void setVehicleMaximumSpeed(double vehicleMaximumSpeed)
Parameters:
vehicleMaximumSpeed - The vehicleMaximumSpeed to set.

getAccelerationProfile

public AccelerationProfile getAccelerationProfile()
Returns:
Returns the accelerationProfile.

setAccelerationProfile

public void setAccelerationProfile(AccelerationProfile accelerationProfile)
Parameters:
accelerationProfile - The accelerationProfile to set.

getDecelerationProfile

public DecelerationProfile getDecelerationProfile()
Returns:
Returns the decelerationProfile.

setDecelerationProfile

public void setDecelerationProfile(DecelerationProfile decelerationProfile)
Parameters:
decelerationProfile - The decelerationProfile to set.

generateUniqueName

public java.lang.String generateUniqueName()
Returns:
a unique name for this type


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