public class StaticObject extends nl.tudelft.simulation.event.EventProducer implements ObjectInterface, Serializable
Copyright (c) 2013-2017 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Constructor and Description |
---|
StaticObject(String id,
OTSLine3D geometry) |
StaticObject(String id,
OTSLine3D geometry,
org.djunits.value.vdouble.scalar.Length height) |
Modifier and Type | Method and Description |
---|---|
StaticObject |
clone(Network newNetwork,
OTSSimulatorInterface newSimulator,
boolean animation)
Clone the StaticObject for e.g., copying a network.
|
javax.media.j3d.Bounds |
getBounds() |
String |
getFullId() |
OTSLine3D |
getGeometry() |
org.djunits.value.vdouble.scalar.Length |
getHeight() |
String |
getId() |
nl.tudelft.simulation.language.d3.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, removeListener
public StaticObject(String id, OTSLine3D geometry, org.djunits.value.vdouble.scalar.Length height)
id
- the idgeometry
- the top-level 2D outline of the objectheight
- the height of the objectpublic final OTSLine3D getGeometry()
getGeometry
in interface ObjectInterface
public final org.djunits.value.vdouble.scalar.Length getHeight()
getHeight
in interface ObjectInterface
public final String getId()
getId
in interface org.opentrafficsim.base.Identifyable
public String getFullId()
getFullId
in interface ObjectInterface
public nl.tudelft.simulation.language.d3.DirectedPoint getLocation()
getLocation
in interface nl.tudelft.simulation.dsol.animation.Locatable
public javax.media.j3d.Bounds getBounds()
getBounds
in interface nl.tudelft.simulation.dsol.animation.Locatable
public StaticObject clone(Network newNetwork, OTSSimulatorInterface newSimulator, boolean animation) throws NetworkException
newNetwork
- the new network to which the clone belongsnewSimulator
- the new simulator for this networkanimation
- whether to (re)create animation or notNetworkException
- in case the cloning failsCopyright © 2014–2017 Delft University of Technology. All rights reserved.