Package org.opentrafficsim.draw.core
Interface ClonableRenderable2DInterface<T extends Locatable>
-
- Type Parameters:
T
- the Locatable class of the source that indicates the location of the Renderable on the screen
- All Superinterfaces:
Renderable2DInterface<T>
,Serializable
- All Known Implementing Classes:
DefaultCarAnimation
,LaneAnimation
,LaneAnimation.CenterLineAnimation
,LinkAnimation
,NodeAnimation
,SensorAnimation
,StripeAnimation
,TrafficLightAnimation
public interface ClonableRenderable2DInterface<T extends Locatable> extends Renderable2DInterface<T>
This interface extends the animation objects with an option to clone them for a new source on a new Simulator.Copyright (c) 2013-2022 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
$LastChangedDate: 2015-07-24 02:58:59 +0200 (Fri, 24 Jul 2015) $, @version $Revision: 1147 $, by $Author: averbraeck $, initial version Jan 15, 2017
BSD-style license. See OpenTrafficSim License.- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ClonableRenderable2DInterface<T>
clone(T newSource, org.opentrafficsim.core.dsol.OTSSimulatorInterface newSimulator)
Clone the animation object and register it for the new source on the new simulation.-
Methods inherited from interface nl.tudelft.simulation.dsol.animation.D2.Renderable2DInterface
contains, destroy, getId, getSource, paintComponent
-
-
-
-
Method Detail
-
clone
ClonableRenderable2DInterface<T> clone(T newSource, org.opentrafficsim.core.dsol.OTSSimulatorInterface newSimulator) throws NamingException, RemoteException
Clone the animation object and register it for the new source on the new simulation.- Parameters:
newSource
- T; the sourcenewSimulator
- OTSSimulatorInterface; the simulator- Returns:
- the generated clone
- Throws:
NamingException
- when animation context cannot be created or retrievedRemoteException
- - when remote context cannot be found
-
-