public class Stripe extends RoadMarkerAlong
Copyright (c) 2013-2014 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights
reserved.
BSD-style license. See OpenTrafficSim License.
Modifier and Type | Class and Description |
---|---|
static class |
Stripe.Permeable
the types of permeability of a stripe.
|
Constructor and Description |
---|
Stripe(CrossSectionLink<?,?> parentLink,
DoubleScalar.Rel<LengthUnit> lateralCenterPosition,
DoubleScalar.Rel<LengthUnit> width)
Note: LEFT is seen as a positive lateral direction, RIGHT as a negative lateral direction, with the
direction from the StartNode towards the EndNode as the longitudinal direction.
|
Stripe(CrossSectionLink<?,?> parentLink,
DoubleScalar.Rel<LengthUnit> lateralCenterPosition,
DoubleScalar.Rel<LengthUnit> width,
Set<GTUType<?>> gtuTypes,
Stripe.Permeable permeable)
Helper constructor that immediately provides permeability for a number of GTU classes.
Note: LEFT is seen as a positive lateral direction, RIGHT as a negative lateral direction, with the direction from the StartNode towards the EndNode as the longitudinal direction. |
Stripe(CrossSectionLink<?,?> parentLink,
DoubleScalar.Rel<LengthUnit> lateralCenterPosition,
DoubleScalar.Rel<LengthUnit> width,
Stripe.Permeable permeable)
Helper constructor that immediately provides permeability for all GTU classes.
Note: LEFT is seen as a positive lateral direction, RIGHT as a negative lateral direction, with the direction from the StartNode towards the EndNode as the longitudinal direction. |
Modifier and Type | Method and Description |
---|---|
void |
addPermeability(GTUType<?> gtuType,
Stripe.Permeable permeable) |
addPermeability, getZ, isPermeable
getBounds, getCenterLine, getContour, getLateralBoundaryPosition, getLateralBoundaryPosition, getLateralCenterPosition, getLateralCenterPosition, getLength, getLocation, getParentLink, getWidth, getWidth, printCoordinate, printCoordinates, printCoordinates, printCoordinates, printCoordinates, toString
public Stripe(CrossSectionLink<?,?> parentLink, DoubleScalar.Rel<LengthUnit> lateralCenterPosition, DoubleScalar.Rel<LengthUnit> width) throws NetworkException
parentLink
- Cross Section Link to which the element belongslateralCenterPosition
- the lateral start position compared to the linear geometry of the Cross Section
Linkwidth
- positioned symmetrically around the center line given by the lateralCenterPosition.NetworkException
- on network topology problemspublic Stripe(CrossSectionLink<?,?> parentLink, DoubleScalar.Rel<LengthUnit> lateralCenterPosition, DoubleScalar.Rel<LengthUnit> width, Set<GTUType<?>> gtuTypes, Stripe.Permeable permeable) throws NetworkException
parentLink
- Cross Section Link to which the element belongslateralCenterPosition
- the lateral start position compared to the linear geometry of the Cross Section
Linkwidth
- positioned symmetrically around the center line given by the lateralCenterPositiongtuTypes
- the GTU types for which the permeability is definedpermeable
- one of the enums of Stripe.Permeable to define the permeabilityNetworkException
- on network topology problemspublic Stripe(CrossSectionLink<?,?> parentLink, DoubleScalar.Rel<LengthUnit> lateralCenterPosition, DoubleScalar.Rel<LengthUnit> width, Stripe.Permeable permeable) throws NetworkException
parentLink
- Cross Section Link to which the element belongslateralCenterPosition
- the lateral start position compared to the linear geometry of the Cross Section
Linkwidth
- positioned symmetrically around the center line given by the lateralCenterPositionpermeable
- one of the enums of Stripe.Permeable to define the permeabilityNetworkException
- on network topology problemspublic final void addPermeability(GTUType<?> gtuType, Stripe.Permeable permeable)
gtuType
- GTU type to add permeability for.permeable
- direction(s) to add compared to the direction of the design line.Copyright © 2014–2015 Delft University of Technology. All rights reserved.