Class SimRenderable2d<L extends Locatable>

java.lang.Object
nl.tudelft.simulation.dsol.animation.d2.Renderable2d<L>
nl.tudelft.simulation.dsol.animation.SimRenderable2d<L>
Type Parameters:
L - The Locatable source type
All Implemented Interfaces:
Serializable, Renderable2dInterface<L>

public abstract class SimRenderable2d<L extends Locatable> extends Renderable2d<L>
SimRenderable2D binds the animation objects to the context in simulator.getReplication().

Copyright (c) 2021-2024 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information DSOL Manual. The DSOL project is distributed under a three-clause BSD-style license, which can be found at DSOL License.

Author:
Alexander Verbraeck
See Also:
  • Constructor Details

    • SimRenderable2d

      public SimRenderable2d(L source, SimulatorInterface<?> simulator)
      Constructs a new Renderable2D.
      Parameters:
      source - T; the Locatable source type that provides the location and bounds
      simulator - SimulatorInterface<?, ?, ?>; the simulator to provide the context via the replication
  • Method Details

    • destroy

      public void destroy(SimulatorInterface<?> simulator)
      destroys an RenderableObject by unsubscribing it from the context.
      Parameters:
      simulator - SimulatorInterface<?, ?, ?>; the simulator to provide the context via the replication