Interface ClonableRenderable2DInterface<T extends Locatable>

    • 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 source
        newSimulator - OTSSimulatorInterface; the simulator
        Returns:
        the generated clone
        Throws:
        NamingException - when animation context cannot be created or retrieved
        RemoteException - - when remote context cannot be found