Class DesQueueingModel5

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

class DesQueueingModel5 extends AbstractDsolModel<Double,DevsSimulatorInterface<Double>>
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

    • DesQueueingModel5

      public DesQueueingModel5(DevsSimulatorInterface<Double> simulator, DistContinuous interArrivalTime, DistContinuous processingTime)
      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
      interArrivalTime - the distribution of the interarrival time between entities
      processingTime - the distribution of the processing time of entities
  • Method Details

    • constructModel

      public void constructModel()
    • generate

      protected void generate()
      Generate an entity.
    • 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