Class LaneStructureLocatable
java.lang.Object
org.opentrafficsim.animation.lane.LaneStructureLocatable
- All Implemented Interfaces:
nl.tudelft.simulation.dsol.animation.Locatable,org.opentrafficsim.base.geometry.OtsLocatable
public class LaneStructureLocatable
extends Object
implements org.opentrafficsim.base.geometry.OtsLocatable
LaneStructureLocatable.java.
Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Alexander Verbraeck
-
Constructor Summary
ConstructorsConstructorDescriptionLaneStructureLocatable(RollingLaneStructure rollingLaneStructure, org.opentrafficsim.core.gtu.Gtu gtu) -
Method Summary
Modifier and TypeMethodDescriptionorg.opentrafficsim.base.geometry.OtsBounds2dfinal org.opentrafficsim.core.gtu.GtugetGtu()org.djutils.draw.point.OrientedPoint2dfinal RollingLaneStructureMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface nl.tudelft.simulation.dsol.animation.Locatable
getDirZ, getZ
-
Constructor Details
-
LaneStructureLocatable
public LaneStructureLocatable(RollingLaneStructure rollingLaneStructure, org.opentrafficsim.core.gtu.Gtu gtu) - Parameters:
rollingLaneStructure- RollingLaneStructure; the rolling lane structuregtu- Gtu; the gtu
-
-
Method Details
-
getLocation
public org.djutils.draw.point.OrientedPoint2d getLocation()- Specified by:
getLocationin interfacenl.tudelft.simulation.dsol.animation.Locatable- Specified by:
getLocationin interfaceorg.opentrafficsim.base.geometry.OtsLocatable
-
getBounds
public org.opentrafficsim.base.geometry.OtsBounds2d getBounds()- Specified by:
getBoundsin interfacenl.tudelft.simulation.dsol.animation.Locatable- Specified by:
getBoundsin interfaceorg.opentrafficsim.base.geometry.OtsLocatable
-
getRollingLaneStructure
- Returns:
- rollingLaneStructure
-
getGtu
public final org.opentrafficsim.core.gtu.Gtu getGtu()- Returns:
- gtu
-