Package org.opentrafficsim.core.object
Interface ObjectInterface
- All Superinterfaces:
EventProducerInterface
,Identifiable
,Locatable
- All Known Implementing Classes:
StaticObject
public interface ObjectInterface extends Locatable, Identifiable, EventProducerInterface
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-2019 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 nl.tudelft.simulation.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 nl.tudelft.simulation.event.EventProducerInterface
addListener, addListener, addListener, addListener, 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.
-