1 package org.opentrafficsim.road.network.lane; 2 3 import java.io.Serializable; 4 5 import org.djunits.value.vdouble.scalar.Length; 6 7 /** 8 * <p> 9 * Copyright (c) 2013-2022 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br> 10 * BSD-style license. See <a href="http://opentrafficsim.org/docs/license.html">OpenTrafficSim License</a>. 11 * <p> 12 * $LastChangedDate: 2015-09-03 13:38:01 +0200 (Thu, 03 Sep 2015) $, @version $Revision: 1378 $, by $Author: averbraeck $, 13 * initial version Aug 21, 2014 <br> 14 * @author <a href="http://www.tbm.tudelft.nl/averbraeck">Alexander Verbraeck</a> 15 * @author <a href="http://www.tudelft.nl/pknoppers">Peter Knoppers</a> 16 */ 17 public abstract class RoadMarkerAcross implements Serializable 18 { 19 /** */ 20 private static final long serialVersionUID = 20141021L; 21 22 /** Cross section element for which this is a road marker. Usually this will be a Lane. */ 23 private final CrossSectionElement crossSectionElement; 24 25 /** Longitudinal position on the cross section element. */ 26 private final Length longitudinalPosition; 27 28 /** 29 * @param crossSectionElement CrossSectionElement; Cross section element for which this is a road marker. Usually this will 30 * be a Lane. 31 * @param longitudinalPosition Length; Longitudinal position on the cross section element. 32 */ 33 public RoadMarkerAcross(final CrossSectionElement crossSectionElement, final Length longitudinalPosition) 34 { 35 this.crossSectionElement = crossSectionElement; 36 this.longitudinalPosition = longitudinalPosition; 37 } 38 39 /** 40 * @return crossSectionElement. 41 */ 42 public final CrossSectionElement getCrossSectionElement() 43 { 44 return this.crossSectionElement; 45 } 46 47 /** 48 * @return longitudinalPosition. 49 */ 50 public final Length getLongitudinalPosition() 51 { 52 return this.longitudinalPosition; 53 } 54 55 }