package org.opentrafficsim.demo.geometry.shape; import java.rmi.RemoteException; import java.util.HashMap; import java.util.Map; import nl.tudelft.simulation.dsol.SimRuntimeException; import nl.tudelft.simulation.dsol.simulators.SimulatorInterface; import org.djunits.unit.TimeUnit; import org.djunits.value.vdouble.scalar.DoubleScalar; import org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface; import org.opentrafficsim.core.dsol.OTSModelInterface; import org.opentrafficsim.core.dsol.OTSSimTimeDouble; import org.opentrafficsim.core.network.Link; import org.opentrafficsim.core.network.OTSNode; /** *
* Copyright (c) 2013-2015 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
* BSD-style license. See OpenTrafficSim License.
*
* $LastChangedDate$, @version $Revision$, by $Author$,
* initial version Sep 9, 2014
* @author Alexander Verbraeck
* @author Guus Tamminga
*/
public class ShapeModel implements OTSModelInterface
{
/** */
private static final long serialVersionUID = 20140815L;
/** the simulator. */
private OTSDEVSSimulatorInterface simulator;
/** nodes from shape file. */
private Map