Class AnimationGtuGeneratorPositionData
java.lang.Object
org.opentrafficsim.animation.data.AnimationGtuGeneratorPositionData
- All Implemented Interfaces:
nl.tudelft.simulation.dsol.animation.Locatable,org.opentrafficsim.base.geometry.OtsLocatable,org.opentrafficsim.base.geometry.SpatialObject,ClickableLocatable,GtuGeneratorPositionAnimation.GtuGeneratorPositionData
public class AnimationGtuGeneratorPositionData
extends Object
implements GtuGeneratorPositionAnimation.GtuGeneratorPositionData
Animation data of a GtuGeneratorPosition.
Copyright (c) 2023-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Wouter Schakel
-
Field Summary
Fields inherited from interface org.opentrafficsim.draw.ClickableLocatable
EXPANSE -
Constructor Summary
ConstructorsConstructorDescriptionAnimationGtuGeneratorPositionData(org.opentrafficsim.core.gtu.GtuGenerator.GtuGeneratorPosition position) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionorg.djutils.draw.bounds.Bounds2dorg.djutils.draw.line.Polygon2dorg.opentrafficsim.core.gtu.GtuGenerator.GtuGeneratorPositionReturns the generator position.org.djutils.draw.point.OrientedPoint2dinttoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.opentrafficsim.draw.road.GtuGeneratorPositionAnimation.GtuGeneratorPositionData
getZMethods inherited from interface nl.tudelft.simulation.dsol.animation.Locatable
getDirZMethods inherited from interface org.opentrafficsim.base.geometry.OtsLocatable
getShape
-
Constructor Details
-
AnimationGtuGeneratorPositionData
public AnimationGtuGeneratorPositionData(org.opentrafficsim.core.gtu.GtuGenerator.GtuGeneratorPosition position) Constructor.- Parameters:
position- position within a generator.
-
-
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.djutils.draw.bounds.Bounds2d getBounds()- Specified by:
getBoundsin interfaceClickableLocatable- Specified by:
getBoundsin interfacenl.tudelft.simulation.dsol.animation.Locatable- Specified by:
getBoundsin interfaceorg.opentrafficsim.base.geometry.OtsLocatable
-
getContour
public org.djutils.draw.line.Polygon2d getContour()- Specified by:
getContourin interfaceorg.opentrafficsim.base.geometry.SpatialObject
-
getQueueCount
public int getQueueCount()- Specified by:
getQueueCountin interfaceGtuGeneratorPositionAnimation.GtuGeneratorPositionData
-
getGeneratorPosition
public org.opentrafficsim.core.gtu.GtuGenerator.GtuGeneratorPosition getGeneratorPosition()Returns the generator position.- Returns:
- generator position.
-
toString
-