public interface Compatible
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 Compatible |
EVERYTHING
Default
Compatible that allows every GTU type in every direction. |
static Compatible |
MINUS
Minus direction
Compatible that allows all GTU types in the minus direction. |
static Compatible |
PLUS
Plus direction
Compatible that allows all GTU types in the plus direction. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isCompatible(GTUType gtuType,
GTUDirectionality directionality)
Test if a GTUType is handled by the infrastructure in the given direction.
|
static final Compatible EVERYTHING
Compatible that allows every GTU type in every direction.static final Compatible PLUS
Compatible that allows all GTU types in the plus direction.static final Compatible MINUS
Compatible that allows all GTU types in the minus direction.boolean isCompatible(GTUType gtuType, GTUDirectionality directionality)
gtuType - GTUType; the type of the GTUdirectionality - GTUDirectionality; the direction of the GTU with respect to the design direction of the
infrastructureCopyright © 2014–2019 Delft University of Technology. All rights reserved.