Package org.opentrafficsim.core.object
Interface ObjectInterface
-
- All Superinterfaces:
EventProducerInterface,Identifiable,Locatable,Serializable
- All Known Implementing Classes:
StaticObject
public interface ObjectInterface extends Locatable, Identifiable, EventProducerInterface, 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.
$LastChangedDate: 2015-07-24 02:58:59 +0200 (Fri, 24 Jul 2015) $, @version $Revision: 1147 $, by $Author: averbraeck $, initial version Dec 16, 2015
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetFullId()Retrieve the full id that (must be unique within the network).PolyLine3dgetGeometry()Retrieve the outline geometry of the object.LengthgetMaximumRelativeHeight()Get the maximum elevation relative to the Z of getLocation.LengthgetMinimumRelativeHeight()Get the minimum elevation relative to the Z of getLocation.-
Methods inherited from interface org.djutils.event.EventProducerInterface
addListener, addListener, addListener, addListener, getEventTypesWithListeners, getSourceId, hasListeners, numberOfListeners, removeListener
-
Methods inherited from interface org.opentrafficsim.base.Identifiable
getId
-
Methods inherited from interface nl.tudelft.simulation.dsol.animation.Locatable
getBounds, getDirZ, getLocation, getZ
-
-
-
-
Method Detail
-
getGeometry
PolyLine3d getGeometry()
Retrieve the outline geometry of the object.- Returns:
- PolyLine3d; the outline geometry of the object
-
getMaximumRelativeHeight
Length getMaximumRelativeHeight()
Get the maximum elevation relative to the Z of getLocation.- Returns:
- Length; the maximum elevation relative to the Z of getLocation
-
getMinimumRelativeHeight
Length getMinimumRelativeHeight()
Get the minimum elevation relative to the Z of getLocation.- Returns:
- Length; the minimum elevation relative to the Z of getLocation
-
getFullId
String getFullId()
Retrieve the full id that (must be unique within the network).- Returns:
- String; the full id that makes the id unique in the network
-
-