Class MapPriorityData

java.lang.Object
org.opentrafficsim.editor.extensions.map.MapPriorityData
All Implemented Interfaces:
nl.tudelft.simulation.dsol.animation.Locatable, org.opentrafficsim.base.geometry.OtsLocatable, org.opentrafficsim.base.geometry.SpatialObject, org.opentrafficsim.draw.ClickableLocatable, org.opentrafficsim.draw.road.PriorityAnimation.PriorityData

public class MapPriorityData extends Object implements org.opentrafficsim.draw.road.PriorityAnimation.PriorityData
Priority data for in the editor.

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:
Wouter Schakel
  • Field Summary

    Fields inherited from interface org.opentrafficsim.draw.ClickableLocatable

    EXPANSE
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.djutils.draw.bounds.Bounds2d
     
    org.djutils.draw.line.Polygon2d
     
    org.djutils.draw.point.Point2d
     
    org.opentrafficsim.base.geometry.OtsShape
     
    boolean
     
    boolean
     
    boolean
     
    boolean
     
    boolean
     
    boolean
     
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface nl.tudelft.simulation.dsol.animation.Locatable

    getDirZ

    Methods inherited from interface org.opentrafficsim.draw.road.PriorityAnimation.PriorityData

    getZ
  • Constructor Details

    • MapPriorityData

      public MapPriorityData(MapLinkData linkData)
      Constructor.
      Parameters:
      linkData - link data.
  • Method Details

    • getLocation

      public org.djutils.draw.point.Point2d getLocation()
      Specified by:
      getLocation in interface nl.tudelft.simulation.dsol.animation.Locatable
      Specified by:
      getLocation in interface org.opentrafficsim.base.geometry.OtsLocatable
    • getContour

      public org.djutils.draw.line.Polygon2d getContour()
      Specified by:
      getContour in interface org.opentrafficsim.base.geometry.SpatialObject
    • getShape

      public org.opentrafficsim.base.geometry.OtsShape getShape()
      Specified by:
      getShape in interface org.opentrafficsim.base.geometry.OtsLocatable
    • getBounds

      public org.djutils.draw.bounds.Bounds2d getBounds()
      Specified by:
      getBounds in interface org.opentrafficsim.draw.ClickableLocatable
      Specified by:
      getBounds in interface nl.tudelft.simulation.dsol.animation.Locatable
      Specified by:
      getBounds in interface org.opentrafficsim.base.geometry.OtsLocatable
    • isAllStop

      public boolean isAllStop()
      Specified by:
      isAllStop in interface org.opentrafficsim.draw.road.PriorityAnimation.PriorityData
    • isBusStop

      public boolean isBusStop()
      Specified by:
      isBusStop in interface org.opentrafficsim.draw.road.PriorityAnimation.PriorityData
    • isNone

      public boolean isNone()
      Specified by:
      isNone in interface org.opentrafficsim.draw.road.PriorityAnimation.PriorityData
    • isPriority

      public boolean isPriority()
      Specified by:
      isPriority in interface org.opentrafficsim.draw.road.PriorityAnimation.PriorityData
    • isStop

      public boolean isStop()
      Specified by:
      isStop in interface org.opentrafficsim.draw.road.PriorityAnimation.PriorityData
    • isYield

      public boolean isYield()
      Specified by:
      isYield in interface org.opentrafficsim.draw.road.PriorityAnimation.PriorityData
    • toString

      public String toString()
      Overrides:
      toString in class Object