Class AnimationConflictData
java.lang.Object
org.opentrafficsim.animation.data.AnimationIdentifiableShape<T>
org.opentrafficsim.animation.data.AnimationLaneBasedObjectData<Conflict>
org.opentrafficsim.animation.data.AnimationConflictData
- All Implemented Interfaces:
Locatable,Identifiable,OtsShape,LineLocatable,AbstractLineAnimation.LaneBasedObjectData,ConflictAnimation.ConflictData
public class AnimationConflictData
extends AnimationLaneBasedObjectData<Conflict>
implements 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.base.geometry.OtsShape
DEFAULT_POLYGON_SEGMENTS, WORLD_MARGIN_LINE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.opentrafficsim.animation.data.AnimationLaneBasedObjectData
getId, getLaneWidth, getLineMethods inherited from class org.opentrafficsim.animation.data.AnimationIdentifiableShape
getAbsoluteContour, getLocation, getObject, getRelativeBounds, getRelativeContourMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.opentrafficsim.draw.road.AbstractLineAnimation.LaneBasedObjectData
getLaneWidth, getLocation, getZMethods inherited from interface org.djutils.base.Identifiable
getIdMethods inherited from interface org.opentrafficsim.draw.LineLocatable
contains, getLine, signedDistanceMethods inherited from interface org.opentrafficsim.base.geometry.OtsShape
contains, getAbsoluteBounds, getAbsoluteContour, getAbsoluteContour, getDirZ, getRelativeBounds, getRelativeContour, signedDistance
-
Constructor Details
-
AnimationConflictData
Constructor.- Parameters:
conflict- conflict.
-
-
Method Details
-
getColor
- Specified by:
getColorin interfaceConflictAnimation.ConflictData
-
isCrossing
public boolean isCrossing()- Specified by:
isCrossingin interfaceConflictAnimation.ConflictData
-
isPermitted
public boolean isPermitted()- Specified by:
isPermittedin interfaceConflictAnimation.ConflictData
-
toString
-