Class StaticObject

java.lang.Object
nl.tudelft.simulation.event.EventProducer
org.opentrafficsim.core.object.StaticObject
All Implemented Interfaces:
Serializable, Locatable, nl.tudelft.simulation.event.EventProducerInterface, Identifiable, Drawable, ObjectInterface

public class StaticObject
extends nl.tudelft.simulation.event.EventProducer
implements ObjectInterface, Serializable, Identifiable, Drawable
A static object with a height that a GTU might have to avoid, or which can cause occlusion for perception. All objects are potential event producers, which allows them to signal that their state has changed.

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.

$LastChangedDate: 2015-07-24 02:58:59 +0200 (Fri, 24 Jul 2015) $, @version $Revision: 1147 $, by $Author: averbraeck $, initial version Nov 26, 2015
Author:
Alexander Verbraeck, Peter Knoppers
See Also:
Serialized Form
  • Field Summary

    Fields inherited from class nl.tudelft.simulation.event.EventProducer

    listeners

    Fields inherited from interface nl.tudelft.simulation.event.EventProducerInterface

    FIRST_POSITION, LAST_POSITION
  • Constructor Summary

    Constructors 
    Modifier Constructor Description
    protected StaticObject​(String id, OTSLine3D geometry, Length height)  
  • Method Summary

    Modifier and Type Method Description
    StaticObject clone​(Network newNetwork, SimulatorInterface.TimeDoubleUnit newSimulator, boolean animation)
    Clone the StaticObject for e.g., copying a network.
    static StaticObject create​(String id, OTSLine3D geometry)
    Make a static object with zero height and carry out the initialization after it has been fully created.
    static StaticObject create​(String id, OTSLine3D geometry, Length height)
    Make a static object and carry out the initialization after it has been fully created.
    javax.media.j3d.Bounds getBounds()
    String getFullId()
    OTSLine3D getGeometry()
    Length getHeight()
    String getId()
    DirectedPoint getLocation()
    protected void init()
    Initialize the object after it has been fully created.
    String toString()

    Methods inherited from class nl.tudelft.simulation.event.EventProducer

    addListener, addListener, addListener, addListener, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, removeAllListeners, removeAllListeners, removeListener

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface nl.tudelft.simulation.event.EventProducerInterface

    addListener, addListener, addListener, addListener, removeListener