public final class GTUType extends HierarchicalType<GTUType> implements Serializable
Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
| Modifier and Type | Field and Description |
|---|---|
static GTUType |
BICYCLE
Super type for bicycle.
|
static GTUType |
BUS
Super type for busses.
|
static GTUType |
CAR
Super type for cars.
|
static GTUType |
EMERGENCY_VEHICLE
Super type for emergency vehicles.
|
static GTUType |
MOPED
Super type for mopeds.
|
static GTUType |
PEDESTRIAN
Super type for pedestrians.
|
static GTUType |
RAIL_WAY_USER
Super type for all rail users.
|
static GTUType |
ROAD_USER
Super type for all road users.
|
static GTUType |
SCHEDULED_BUS
Super type for scheduled busses.
|
static GTUType |
SHIP
Super type for ships.
|
static GTUType |
TRAIN
Super type for trains.
|
static GTUType |
TRUCK
Super type for trucks.
|
static GTUType |
VAN
Super type for vans.
|
static GTUType |
VEHICLE
Super type for vehicles.
|
static GTUType |
WATER_WAY_USER
Super type for all water way users.
|
| Modifier and Type | Method and Description |
|---|---|
static GTUCharacteristics |
defaultCharacteristics(GTUType gtuType,
StreamInterface randomStream)
Returns default characteristics for given GTUType.
|
String |
toString() |
commonAncestor, equals, getId, getParent, hashCode, isOfTypepublic static final GTUType ROAD_USER
public static final GTUType WATER_WAY_USER
public static final GTUType RAIL_WAY_USER
public static final GTUType PEDESTRIAN
public static final GTUType BICYCLE
public static final GTUType MOPED
public static final GTUType VEHICLE
public static final GTUType EMERGENCY_VEHICLE
public static final GTUType SHIP
public static final GTUType TRAIN
public static final GTUType CAR
public static final GTUType VAN
public static final GTUType BUS
public static final GTUType TRUCK
public static final GTUType SCHEDULED_BUS
public GTUType(String id, GTUType parent) throws NullPointerException
id - String; The id of the GTUType to make it identifiable.parent - GTUType; parent GTU typeNullPointerException - if the id is nullpublic static GTUCharacteristics defaultCharacteristics(GTUType gtuType, StreamInterface randomStream) throws GTUException
gtuType - GTUType; GTUType GTU typerandomStream - StreamInterface; stream for random numbersGTUException - if there are no default characteristics for the GTU typeCopyright © 2014–2019 Delft University of Technology. All rights reserved.