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>
- 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-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. 
 BSD-style license. See OpenTrafficSim License.
 
- Author:
 - Alexander Verbraeck, Peter Knoppers, Wouter Schakel
 
- 
Nested Class Summary
Nested classes/interfaces inherited from interface nl.tudelft.simulation.dsol.animation.D2.Renderable2DInterface
Renderable2DInterface.Util - 
Method Summary
Modifier and Type Method Description ClonableRenderable2DInterface<T>clone(T newSource, SimulatorInterface.TimeDoubleUnit 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, getSource, paint 
- 
Method Details
- 
clone
ClonableRenderable2DInterface<T> clone(T newSource, SimulatorInterface.TimeDoubleUnit newSimulator) throws javax.naming.NamingException, java.rmi.RemoteExceptionClone the animation object and register it for the new source on the new simulation.- Parameters:
 newSource- T; the sourcenewSimulator- SimulatorInterface.TimeDoubleUnit; the simulator- Returns:
 - the generated clone
 - Throws:
 javax.naming.NamingException- when animation context cannot be created or retrievedjava.rmi.RemoteException- - when remote context cannot be found
 
 -