Interface InvisibleObjectInterface

  • All Superinterfaces:
    Drawable, Identifiable, Serializable

    public interface InvisibleObjectInterface
    extends Identifiable, Drawable, Serializable
    Interface for objects that live in a Network, but cannot be drawn and which do not have a specific location. These objects do have a name and need to be cloned when the Network is cloned.
    Example: TrafficLightController.

    Copyright (c) 2013-2022 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
    BSD-style license. See OpenTrafficSim License.

    Version:
    $Revision$, $LastChangedDate$, by $Author$, initial version Feb 10, 2017
    Author:
    Alexander Verbraeck, Peter Knoppers, Wouter Schakel
    • Method Detail

      • clone

        InvisibleObjectInterface clone​(OTSSimulatorInterface newSimulator,
                                       Network newNetwork)
                                throws NetworkException
        Duplicate the invisibleObject in a new simulator and network.
        Parameters:
        newSimulator - OTSSimulatorInterface; the new simulator
        newNetwork - Network; the new network
        Returns:
        InvisibleObjectInterface; clone of this, but living in the new network and simulator
        Throws:
        NetworkException - when the new Network is not compatible
      • getFullId

        String getFullId()
        Returns:
        the full id that makes the id unique in the network.