Package org.opentrafficsim.draw.road
Interface PriorityAnimation.PriorityData
- All Superinterfaces:
nl.tudelft.simulation.dsol.animation.Locatable,OtsShape
- Enclosing class:
- PriorityAnimation
Data for priority animation.
Copyright (c) 2024-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, Peter Knoppers, Wouter Schakel
-
Field Summary
Fields inherited from interface org.opentrafficsim.base.geometry.OtsShape
DEFAULT_POLYGON_SEGMENTS, WORLD_MARGIN_LINE -
Method Summary
Modifier and TypeMethodDescriptiondefault doublegetZ()booleanReturns whether the priority is all stop.booleanReturns whether the priority is bus stop.booleanisNone()Returns whether the priority is none.booleanReturns whether the priority is priority.booleanisStop()Returns whether the priority is stop.booleanisYield()Returns whether the priority is yield.Methods inherited from interface org.opentrafficsim.base.geometry.OtsShape
contains, contains, getAbsoluteBounds, getAbsoluteContour, getAbsoluteContour, getDirZ, getLocation, getRelativeBounds, getRelativeContour, signedDistance, signedDistance
-
Method Details
-
getZ
default double getZ()- Specified by:
getZin interfacenl.tudelft.simulation.dsol.animation.Locatable
-
isAllStop
boolean isAllStop()Returns whether the priority is all stop.- Returns:
- whether the priority is all stop.
-
isBusStop
boolean isBusStop()Returns whether the priority is bus stop.- Returns:
- whether the priority is bus stop.
-
isNone
boolean isNone()Returns whether the priority is none.- Returns:
- whether the priority is none.
-
isPriority
boolean isPriority()Returns whether the priority is priority.- Returns:
- whether the priority is priority.
-
isStop
boolean isStop()Returns whether the priority is stop.- Returns:
- whether the priority is stop.
-
isYield
boolean isYield()Returns whether the priority is yield.- Returns:
- whether the priority is yield.
-