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
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
-
Field Summary
Fields inherited from class nl.tudelft.simulation.dsol.model.AbstractDsolModel
inputParameterMap, outputStatistics, simulator, streamInformationFields inherited from interface org.djutils.event.EventProducer
FIRST_POSITION, LAST_POSITION -
Constructor Summary
ConstructorsConstructorDescriptionDesQueueingModel5(DevsSimulatorInterface<Double> simulator, DistContinuous interArrivalTime, DistContinuous processingTime) Constructor for the model. -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected voidendProcess(Entity entity) End the processing of an entity by the server.protected voidgenerate()Generate an entity.protected voidstartProcess(Entity entity) Start the processing of an entity by the server.Methods inherited from class nl.tudelft.simulation.dsol.model.AbstractDsolModel
addInputParameter, getInputParameter, getInputParameterMap, getOutputStatistics, getResetApplicationExecutable, getSimulator, getStreamInformation, resetApplication, setInputParameterMap, setResetApplicationExecutable, setStreamInformationMethods inherited from class org.djutils.event.LocalEventProducer
getEventListenerMapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface nl.tudelft.simulation.dsol.model.DsolModel
getDefaultStream, getInputParameterBoolean, getInputParameterDouble, getInputParameterDoubleScalar, getInputParameterFloat, getInputParameterFloatScalar, getInputParameterInteger, getInputParameterLocalDateTime, getInputParameterLong, getInputParameterString, getInputParameterUnit, getStream, getStreams, resetStreamsMethods inherited from interface org.djutils.event.EventProducer
addListener, addListener, addListener, addListener, fireEvent, fireEvent, fireEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireUnverifiedEvent, fireUnverifiedEvent, fireUnverifiedTimedEvent, fireUnverifiedTimedEvent, getEventTypesWithListeners, getListenerReferences, hasListeners, numberOfListeners, removeAllListeners, removeAllListeners, removeListener
-
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 eventsinterArrivalTime- the distribution of the interarrival time between entitiesprocessingTime- the distribution of the processing time of entities
-
-
Method Details
-
constructModel
public void constructModel() -
generate
protected void generate()Generate an entity. -
startProcess
Start the processing of an entity by the server.- Parameters:
entity- the entity to be processed
-
endProcess
End the processing of an entity by the server.- Parameters:
entity- the entity that is being processed, and should leave the server
-