public class Stripe extends RoadMarkerAlong
Copyright (c) 2013-2015 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 Oct 25, 2014
| Modifier and Type | Class and Description |
|---|---|
static class |
Stripe.Permeable
the types of permeability of a stripe.
|
beginWidth, designLineOffsetAtBegin, designLineOffsetAtEnd, endWidth, length, parentLink| Constructor and Description |
|---|
Stripe(CrossSectionLink parentLink,
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> lateralCenterPosition,
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.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,
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> lateralCenterPosition,
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.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,
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> lateralCenterPosition,
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.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) |
String |
toString() |
addPermeability, getZ, isPermeableequals, getBeginWidth, getBounds, getCenterLine, getContour, getDesignLineOffsetAtBegin, getDesignLineOffsetAtEnd, getEndWidth, getId, getLateralBoundaryPosition, getLateralBoundaryPosition, getLateralCenterPosition, getLateralCenterPosition, getLength, getLocation, getParentLink, getWidth, getWidth, hashCodepublic Stripe(CrossSectionLink parentLink, org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> lateralCenterPosition, org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> width) throws OTSGeometryException, 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.OTSGeometryException - when creation of the center line or contour geometry failsNetworkException - when id equal to null or not uniquepublic Stripe(CrossSectionLink parentLink, org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> lateralCenterPosition, org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> width, Set<GTUType> gtuTypes, Stripe.Permeable permeable) throws OTSGeometryException, 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 permeabilityOTSGeometryException - when creation of the center line or contour geometry failsNetworkException - when id equal to null or not uniquepublic Stripe(CrossSectionLink parentLink, org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> lateralCenterPosition, org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> width, Stripe.Permeable permeable) throws OTSGeometryException, 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 permeabilityOTSGeometryException - when creation of the center line or contour geometry failsNetworkException - when id equal to null or not uniquepublic 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.public String toString()
toString in class CrossSectionElementCopyright © 2014–2015 Delft University of Technology. All rights reserved.