Package org.opentrafficsim.core.object
Interface LocatedObject
- All Superinterfaces:
org.djutils.event.EventProducer
,org.djutils.base.Identifiable
,nl.tudelft.simulation.dsol.animation.Locatable
,OtsLocatable
,Remote
,Serializable
- All Known Implementing Classes:
StaticObject
public interface LocatedObject
extends OtsLocatable, org.djutils.base.Identifiable, org.djutils.event.EventProducer, Serializable
Generic object that can be placed in the model. This could be implemented for a traffic light, a road sign, or an obstacle.
Copyright (c) 2013-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
-
Field Summary
Fields inherited from interface org.djutils.event.EventProducer
FIRST_POSITION, LAST_POSITION
-
Method Summary
Modifier and TypeMethodDescriptionorg.djutils.draw.line.PolyLine2d
org.djunits.value.vdouble.scalar.Length
Methods inherited from interface org.djutils.event.EventProducer
addListener, addListener, addListener, addListener, fireEvent, fireEvent, fireEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireUnverifiedEvent, fireUnverifiedEvent, fireUnverifiedTimedEvent, fireUnverifiedTimedEvent, getEventListenerMap, getEventTypesWithListeners, getListenerReferences, hasListeners, numberOfListeners, removeAllListeners, removeAllListeners, removeListener
Methods inherited from interface org.djutils.base.Identifiable
getId
Methods inherited from interface nl.tudelft.simulation.dsol.animation.Locatable
getDirZ, getZ
Methods inherited from interface org.opentrafficsim.base.geometry.OtsLocatable
getBounds, getLocation
-
Method Details
-
getGeometry
org.djutils.draw.line.PolyLine2d getGeometry()- Returns:
- the outline geometry of the object.
-
getHeight
org.djunits.value.vdouble.scalar.Length getHeight()- Returns:
- the height of the object (can be Length.ZERO).
-
getFullId
String getFullId()- Returns:
- the full id that makes the id unique in the network.
-