Class MapGeneratorData
java.lang.Object
org.opentrafficsim.editor.extensions.map.MapData
org.opentrafficsim.editor.extensions.map.MapLaneBasedObjectData
org.opentrafficsim.editor.extensions.map.MapGeneratorData
- All Implemented Interfaces:
Serializable,Remote,EventListener,nl.tudelft.simulation.dsol.animation.Locatable,org.djutils.base.Identifiable,org.djutils.event.EventListener,org.opentrafficsim.base.geometry.OtsLocatable,AbstractLineAnimation.LaneBasedObjectData,GtuGeneratorPositionAnimation.GtuGeneratorPositionData,EvalWrapper.EvalListener
public class MapGeneratorData
extends MapLaneBasedObjectData
implements GtuGeneratorPositionAnimation.GtuGeneratorPositionData
Generator data for the editor Map.
Copyright (c) 2024-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Wouter Schakel
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMapGeneratorData(EditorMap map, XsdTreeNode node, OtsEditor editor) Constructor. -
Method Summary
Methods inherited from class org.opentrafficsim.editor.extensions.map.MapLaneBasedObjectData
destroy, evalChanged, getBounds, getId, getLaneWidth, getLinkLanePositionId, getLocation, notify, setLinkNodeMethods inherited from class org.opentrafficsim.editor.extensions.map.MapData
getEval, getMap, getNode, setInvalid, setValid, setValueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface nl.tudelft.simulation.dsol.animation.Locatable
getDirZMethods inherited from interface org.opentrafficsim.base.geometry.OtsLocatable
getBounds
-
Constructor Details
-
MapGeneratorData
Constructor.- Parameters:
map- Map; map.node- XsdTreeNode; node.editor- OtsEditor; editor.
-
-
Method Details
-
calculateBounds
protected org.opentrafficsim.base.geometry.OtsBounds2d calculateBounds()Calculates the bounds. Can be overridden for objects with non-line shapes.- Overrides:
calculateBoundsin classMapLaneBasedObjectData- Returns:
- OtsBounds2d; bounds of the object.
-
getQueueCount
public int getQueueCount()- Specified by:
getQueueCountin interfaceGtuGeneratorPositionAnimation.GtuGeneratorPositionData
-
getZ
public double getZ()- Specified by:
getZin interfaceAbstractLineAnimation.LaneBasedObjectData- Specified by:
getZin interfaceGtuGeneratorPositionAnimation.GtuGeneratorPositionData- Specified by:
getZin interfacenl.tudelft.simulation.dsol.animation.Locatable
-
toString
-