public class LinkType extends org.opentrafficsim.base.Type<LinkType> implements Serializable
Copyright (c) 2013-2017 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
$LastChangedDate: 2015-08-30 00:16:51 +0200 (Sun, 30 Aug 2015) $, @version $Revision: 1329 $, by $Author: averbraeck $,
initial version Aug 21, 2014
| Modifier and Type | Field and Description |
|---|---|
static LinkType |
ALL
The link type that allows all vehicles.
|
static LinkType |
NONE
The link type that does not allow any vehicles.
|
| Constructor and Description |
|---|
LinkType(String id,
Collection<GTUType> compatibility)
Create a new Link type with an immutable compatibility set.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getId() |
int |
hashCode() |
boolean |
isCompatible(GTUType gtuType) |
String |
toString() |
public static final LinkType NONE
public static final LinkType ALL
public LinkType(String id, Collection<GTUType> compatibility) throws NullPointerException
id - the id of the lane type.compatibility - the collection of compatible GTUTypes for this LinkTypeNullPointerException - if either the id is null, or the compatibilitySet is nullCopyright © 2014–2017 Delft University of Technology. All rights reserved.