public abstract class AbstractGTU extends Object implements GTU
Copyright (c) 2013-2015 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Constructor and Description |
---|
AbstractGTU(String id,
GTUType gtuType,
RouteNavigator routeNavigator) |
Modifier and Type | Method and Description |
---|---|
GTUType |
getGTUType() |
String |
getId() |
RelativePosition |
getReference() |
RouteNavigator |
getRouteNavigator() |
void |
setRouteNavigator(RouteNavigator routeNavigator) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
destroy, getAcceleration, getFront, getLength, getMaximumVelocity, getOdometer, getRear, getRelativePositions, getSimulator, getVelocity, getWidth
public AbstractGTU(String id, GTUType gtuType, RouteNavigator routeNavigator) throws GTUException
id
- the id of the GTUgtuType
- the type of GTU, e.g. TruckType, CarType, BusTyperouteNavigator
- RouteNavigator; the navigator that determines the route that the GTU will takeGTUException
- when route is nullpublic GTUType getGTUType()
getGTUType
in interface GTU
public final RelativePosition getReference()
getReference
in interface GTU
public final RouteNavigator getRouteNavigator()
public final void setRouteNavigator(RouteNavigator routeNavigator)
routeNavigator
- set routeNavigatorCopyright © 2014–2015 Delft University of Technology. All rights reserved.