public final class GTUType extends org.opentrafficsim.base.Type<GTUType> implements Serializable
Copyright (c) 2013-2016 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 |
ALL
ALL GTUType to be used only for permeability and accessibility.
|
static GTUType |
BIKE
Super type for bikes.
|
static GTUType |
BOAT
Super type for boats.
|
static GTUType |
NONE
NONE GTUType to be used only for permeability and accessibility.
|
static GTUType |
PEDESTRIAN
Super type for pedestrians.
|
static GTUType |
TRAIN
Super type for trains.
|
static GTUType |
VEHICLE
Super type for vehicles.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getId() |
GTUType |
getParent() |
int |
hashCode() |
boolean |
isOfType(GTUType gtuType)
Whether this, or any of the parent GTU types, equals the given GTU type.
|
String |
toString() |
public static final GTUType ALL
public static final GTUType NONE
public static final GTUType PEDESTRIAN
public static final GTUType BIKE
public static final GTUType VEHICLE
public static final GTUType BOAT
public static final GTUType TRAIN
public GTUType(String id, GTUType parent) throws NullPointerException
id - The id of the GTUType to make it identifiable.parent - GTUType; parent GTU typeNullPointerException - if the id is nullpublic String getId()
public GTUType getParent()
public boolean isOfType(GTUType gtuType)
gtuType - GTUType; gtu typeCopyright © 2014–2017 Delft University of Technology. All rights reserved.