Class CustomSimulation.CustomModel

java.lang.Object
org.djutils.event.LocalEventProducer
nl.tudelft.simulation.dsol.model.AbstractDsolModel<Duration,OtsSimulatorInterface>
org.opentrafficsim.core.dsol.AbstractOtsModel
org.opentrafficsim.swing.gui.CustomSimulation.CustomModel
All Implemented Interfaces:
nl.tudelft.simulation.dsol.model.DsolModel<Duration,OtsSimulatorInterface>, EventProducer, OtsModelInterface
Enclosing class:
CustomSimulation

public static class CustomSimulation.CustomModel extends AbstractOtsModel
Custom simulation.

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

  • Constructor Details

    • CustomModel

      public CustomModel(OtsSimulatorInterface simulator)
      Constructor.
      Parameters:
      simulator - the simulator for this model
  • Method Details

    • setNetwork

      public void setNetwork(RoadNetwork network)
      Set network.
      Parameters:
      network - the network
    • constructModel

      public void constructModel() throws nl.tudelft.simulation.dsol.SimRuntimeException
      Throws:
      nl.tudelft.simulation.dsol.SimRuntimeException
    • getNetwork

      public RoadNetwork getNetwork()