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
-
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
ConstructorsConstructorDescriptionDesQueueingModel9(DevsSimulatorInterface<Double> simulator) Constructor for the model. -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected voidendProcess(Entity entity) End the processing of an entity by the server.protected voidgenerate()Generate one or more entities, based on batchSize.voidnotify(org.djutils.event.Event event) protected voidReport statistics at the end of a replication.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
-
DesQueueingModel9
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
- Specified by:
constructModelin interfaceDsolModel<Double,DevsSimulatorInterface<Double>> - Throws:
SimRuntimeException
-
generate
protected void generate()Generate one or more entities, based on batchSize. -
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
-
reportStats
protected void reportStats()Report statistics at the end of a replication. -
notify
public void notify(org.djutils.event.Event event) - Specified by:
notifyin interfaceorg.djutils.event.EventListener
-