Package org.opentrafficsim.core.object
Interface ObjectInterface
- All Superinterfaces:
EventProducerInterface
,Identifiable
,Locatable
,java.io.Serializable
- All Known Implementing Classes:
StaticObject
public interface ObjectInterface extends Locatable, Identifiable, EventProducerInterface, java.io.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-2020 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.EventProducerInterface
FIRST_POSITION, LAST_POSITION
-
Method Summary
Modifier and Type Method Description java.lang.String
getFullId()
OTSLine3D
getGeometry()
Length
getHeight()
Methods inherited from interface org.djutils.event.EventProducerInterface
addListener, addListener, addListener, addListener, getEventTypesWithListeners, getSourceId, hasListeners, numberOfListeners, removeListener
Methods inherited from interface nl.tudelft.simulation.dsol.animation.Locatable
getBounds, getLocation
-
Method Details
-
getGeometry
OTSLine3D getGeometry()- Returns:
- the outline geometry of the object.
-
getHeight
Length getHeight()- Returns:
- the height of the object (can be Length.ZERO).
-
getFullId
java.lang.String getFullId()- Returns:
- the full id that makes the id unique in the network.
-