public class StaticObject extends EventProducer implements ObjectInterface, Serializable, Identifiable, Drawable
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.
listenersFIRST_POSITION, LAST_POSITION| Constructor and Description |
|---|
StaticObject(String id,
OTSLine3D geometry) |
StaticObject(String id,
OTSLine3D geometry,
Length height) |
| Modifier and Type | Method and Description |
|---|---|
StaticObject |
clone(Network newNetwork,
SimulatorInterface.TimeDoubleUnit newSimulator,
boolean animation)
Clone the StaticObject for e.g., copying a network.
|
javax.media.j3d.Bounds |
getBounds() |
String |
getFullId() |
OTSLine3D |
getGeometry() |
Length |
getHeight() |
String |
getId() |
DirectedPoint |
getLocation() |
String |
toString() |
addListener, addListener, addListener, addListener, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, removeAllListeners, removeAllListeners, removeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddListener, addListener, addListener, addListener, removeListenerpublic StaticObject(String id, OTSLine3D geometry, Length height)
id - String; the idgeometry - OTSLine3D; the top-level 2D outline of the objectheight - Length; the height of the objectpublic final OTSLine3D getGeometry()
getGeometry in interface ObjectInterfacepublic final Length getHeight()
getHeight in interface ObjectInterfacepublic final String getId()
getId in interface Identifiablepublic String getFullId()
getFullId in interface ObjectInterfacepublic DirectedPoint getLocation()
getLocation in interface Locatablepublic StaticObject clone(Network newNetwork, SimulatorInterface.TimeDoubleUnit newSimulator, boolean animation) throws NetworkException
newNetwork - Network; the new network to which the clone belongsnewSimulator - SimulatorInterface.TimeDoubleUnit; the new simulator for this networkanimation - boolean; whether to (re)create animation or notNetworkException - in case the cloning failsCopyright © 2014–2019 Delft University of Technology. All rights reserved.