1 package org.opentrafficsim.core.object;
2
3 import org.opentrafficsim.base.Identifiable;
4 import org.opentrafficsim.core.animation.Drawable;
5 import org.opentrafficsim.core.dsol.OTSSimulatorInterface;
6 import org.opentrafficsim.core.network.Network;
7 import org.opentrafficsim.core.network.NetworkException;
8
9 /**
10 * Interface for objects that live in a Network, but cannot be drawn and which do not have a specific location. These objects do
11 * have a name and need to be cloned when the Network is cloned. <br>
12 * Example: TrafficLightController.
13 * <p>
14 * Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
15 * BSD-style license. See <a href="http://opentrafficsim.org/node/13">OpenTrafficSim License</a>.
16 * <p>
17 * @version $Revision$, $LastChangedDate$, by $Author$, initial version Feb 10, 2017 <br>
18 * @author <a href="http://www.tbm.tudelft.nl/averbraeck">Alexander Verbraeck</a>
19 * @author <a href="http://www.tudelft.nl/pknoppers">Peter Knoppers</a>
20 * @author <a href="http://www.transport.citg.tudelft.nl">Wouter Schakel</a>
21 */
22 public interface InvisibleObjectInterface extends Identifiable, Drawable
23 {
24
25 /**
26 * Duplicate the invisibleObject in a new simulator and network.
27 * @param newSimulator OTSSimulatorInterface; the new simulator
28 * @param newNetwork Network; the new network
29 * @return InvisibleObjectInterface; clone of this, but living in the new network and simulator
30 * @throws NetworkException when the new Network is not compatible
31 */
32 InvisibleObjectInterface clone(OTSSimulatorInterface newSimulator, Network newNetwork) throws NetworkException;
33
34 /** @return the full id that makes the id unique in the network. */
35 String getFullId();
36
37 }