Package org.opentrafficsim.core.object
Interface InvisibleObjectInterface
-
- All Superinterfaces:
Drawable
,Identifiable
,java.io.Serializable
public interface InvisibleObjectInterface extends Identifiable, Drawable, java.io.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-2020 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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InvisibleObjectInterface
clone(OTSSimulatorInterface newSimulator, Network newNetwork)
Duplicate the invisibleObject in a new simulator and network.java.lang.String
getFullId()
-
Methods inherited from interface org.opentrafficsim.base.Identifiable
getId
-
-
-
-
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 simulatornewNetwork
- 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
java.lang.String getFullId()
- Returns:
- the full id that makes the id unique in the network.
-
-