Class AnimationConflictData
java.lang.Object
org.opentrafficsim.animation.data.AnimationConflictData
- All Implemented Interfaces:
nl.tudelft.simulation.dsol.animation.Locatable
,org.djutils.base.Identifiable
,org.opentrafficsim.base.geometry.OtsLocatable
,org.opentrafficsim.base.geometry.SpatialObject
,ClickableLineLocatable
,ClickableLocatable
,AbstractLineAnimation.LaneBasedObjectData
,ConflictAnimation.ConflictData
Animation data of a Conflict.
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.djutils.draw.bounds.Bounds2d
getColor()
Returns the Conflict.org.djutils.draw.line.Polygon2d
getId()
org.djunits.value.vdouble.scalar.Length
org.djutils.draw.line.PolyLine2d
getLine()
org.djutils.draw.point.OrientedPoint2d
org.opentrafficsim.base.geometry.OtsShape
getShape()
boolean
boolean
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.opentrafficsim.draw.road.AbstractLineAnimation.LaneBasedObjectData
getZ
Methods inherited from interface nl.tudelft.simulation.dsol.animation.Locatable
getDirZ
-
Constructor Details
-
AnimationConflictData
Constructor.- Parameters:
conflict
- conflict.
-
-
Method Details
-
getLaneWidth
public org.djunits.value.vdouble.scalar.Length getLaneWidth()- Specified by:
getLaneWidth
in interfaceAbstractLineAnimation.LaneBasedObjectData
-
getLocation
public org.djutils.draw.point.OrientedPoint2d getLocation()- Specified by:
getLocation
in interfaceAbstractLineAnimation.LaneBasedObjectData
- Specified by:
getLocation
in interfacenl.tudelft.simulation.dsol.animation.Locatable
- Specified by:
getLocation
in interfaceorg.opentrafficsim.base.geometry.OtsLocatable
-
getId
- Specified by:
getId
in interfaceorg.djutils.base.Identifiable
-
getColor
- Specified by:
getColor
in interfaceConflictAnimation.ConflictData
-
getBounds
public org.djutils.draw.bounds.Bounds2d getBounds()- Specified by:
getBounds
in interfaceClickableLineLocatable
- Specified by:
getBounds
in interfaceClickableLocatable
- Specified by:
getBounds
in interfacenl.tudelft.simulation.dsol.animation.Locatable
- Specified by:
getBounds
in interfaceorg.opentrafficsim.base.geometry.OtsLocatable
-
getContour
public org.djutils.draw.line.Polygon2d getContour()- Specified by:
getContour
in interfaceorg.opentrafficsim.base.geometry.SpatialObject
-
getShape
public org.opentrafficsim.base.geometry.OtsShape getShape()- Specified by:
getShape
in interfaceorg.opentrafficsim.base.geometry.OtsLocatable
-
getLine
public org.djutils.draw.line.PolyLine2d getLine()- Specified by:
getLine
in interfaceClickableLineLocatable
-
isCrossing
public boolean isCrossing()- Specified by:
isCrossing
in interfaceConflictAnimation.ConflictData
-
isPermitted
public boolean isPermitted()- Specified by:
isPermitted
in interfaceConflictAnimation.ConflictData
-
getConflict
Returns the Conflict.- Returns:
- GTU.
-
toString
-