Class DesQueueingModel9

java.lang.Object
org.djutils.event.LocalEventProducer
nl.tudelft.simulation.dsol.model.AbstractDsolModel<Double,DevsSimulatorInterface<Double>>
nl.tudelft.simulation.dsol.demo.des.mm1.step09.DesQueueingModel9
All Implemented Interfaces:
EventListener, DsolModel<Double,DevsSimulatorInterface<Double>>, org.djutils.event.EventListener, org.djutils.event.EventProducer

class DesQueueingModel9 extends AbstractDsolModel<Double,DevsSimulatorInterface<Double>> implements org.djutils.event.EventListener
Model with a generator that generates entities.

Copyright (c) 2025-2025 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information https://simulation.tudelft.nl. The DSOL project is distributed under a three-clause BSD-style license, which can be found at https://https://simulation.tudelft.nl/dsol/docs/latest/license.html.

Author:
Alexander Verbraeck
  • Constructor Details

    • DesQueueingModel9

      public DesQueueingModel9(DevsSimulatorInterface<Double> simulator)
      Constructor for the model. This provides the distribution functions and the simulator to the model.
      Parameters:
      simulator - the simulator on which to schedule new events
  • Method Details

    • constructModel

      public void constructModel() throws SimRuntimeException
      Specified by:
      constructModel in interface DsolModel<Double,DevsSimulatorInterface<Double>>
      Throws:
      SimRuntimeException
    • generate

      protected void generate()
      Generate one or more entities, based on batchSize.
    • startProcess

      protected void startProcess(Entity entity)
      Start the processing of an entity by the server.
      Parameters:
      entity - the entity to be processed
    • endProcess

      protected void endProcess(Entity entity)
      End the processing of an entity by the server.
      Parameters:
      entity - the entity that is being processed, and should leave the server
    • reportStats

      protected void reportStats()
      Report statistics at the end of a replication.
    • notify

      public void notify(org.djutils.event.Event event)
      Specified by:
      notify in interface org.djutils.event.EventListener