Package org.sim0mq.demo.mm1
Class MM1Queue41Model
- All Implemented Interfaces:
Serializable
,DSOLModel<Double,Double,SimTimeDouble,DEVSSimulatorInterface.TimeDouble>
,DSOLModel.TimeDouble<DEVSSimulatorInterface.TimeDouble>
,EventProducerInterface
public class MM1Queue41Model extends AbstractDSOLModel.TimeDouble<DEVSSimulatorInterface.TimeDouble>
The M/M/1 example as published in Simulation Modeling and Analysis by A.M. Law & W.D. Kelton section 1.4 and 2.4.
(c) copyright 2015-2020 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: Lesser General Public License (LGPL) , no warranty.
- Version:
- 2.0 21.09.2003
- Author:
- Peter Jacobs
- See Also:
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from class nl.tudelft.simulation.dsol.model.AbstractDSOLModel
AbstractDSOLModel.CalendarDouble<S extends SimulatorInterface.CalendarDouble>, AbstractDSOLModel.CalendarFloat<S extends SimulatorInterface.CalendarFloat>, AbstractDSOLModel.CalendarLong<S extends SimulatorInterface.CalendarLong>, AbstractDSOLModel.TimeDouble<S extends SimulatorInterface.TimeDouble>, AbstractDSOLModel.TimeDoubleUnit<S extends SimulatorInterface.TimeDoubleUnit>, AbstractDSOLModel.TimeFloat<S extends SimulatorInterface.TimeFloat>, AbstractDSOLModel.TimeFloatUnit<S extends SimulatorInterface.TimeFloatUnit>, AbstractDSOLModel.TimeLong<S extends SimulatorInterface.TimeLong>
Nested classes/interfaces inherited from interface nl.tudelft.simulation.dsol.model.DSOLModel
DSOLModel.CalendarDouble<S extends SimulatorInterface.CalendarDouble>, DSOLModel.CalendarFloat<S extends SimulatorInterface.CalendarFloat>, DSOLModel.CalendarLong<S extends SimulatorInterface.CalendarLong>, DSOLModel.TimeDouble<S extends SimulatorInterface.TimeDouble>, DSOLModel.TimeDoubleUnit<S extends SimulatorInterface.TimeDoubleUnit>, DSOLModel.TimeFloat<S extends SimulatorInterface.TimeFloat>, DSOLModel.TimeFloatUnit<S extends SimulatorInterface.TimeFloatUnit>, DSOLModel.TimeLong<S extends SimulatorInterface.TimeLong>
-
Field Summary
Fields Modifier and Type Field Description (package private) SimTally.TimeDouble
dN
tally dN.double
iat
PARAMETER iat.(package private) SimTally.TimeDouble
qN
tally qN.long
seed
PARAMETER seed.double
serviceTime
PARAMETER serviceTime.(package private) Utilization<Double,Double,SimTimeDouble>
uN
utilization uN.Fields inherited from class nl.tudelft.simulation.dsol.model.AbstractDSOLModel
inputParameterMap, outputStatistics, simulator
Fields inherited from interface org.djutils.event.EventProducerInterface
FIRST_POSITION, LAST_POSITION
-
Constructor Summary
Constructors Constructor Description MM1Queue41Model(DEVSSimulatorInterface.TimeDouble simulator)
Construct the model. -
Method Summary
Modifier and Type Method Description void
constructModel()
Serializable
getSourceId()
Methods inherited from class nl.tudelft.simulation.dsol.model.AbstractDSOLModel
addInputParameter, getInputParameter, getInputParameterMap, getOutputStatistics, getSimulator
Methods inherited from class org.djutils.event.EventProducer
addListener, addListener, addListener, addListener, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, getEventTypesWithListeners, getListenerReferences, hasListeners, numberOfListeners, removeAllListeners, removeAllListeners, removeListener
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface nl.tudelft.simulation.dsol.model.DSOLModel
getInputParameterMap, getOutputStatistics, getSimulator
-
Field Details
-
dN
tally dN. -
qN
tally qN. -
uN
Utilization<Double,Double,SimTimeDouble> uNutilization uN. -
iat
public double iatPARAMETER iat. -
serviceTime
public double serviceTimePARAMETER serviceTime. -
seed
public long seedPARAMETER seed.
-
-
Constructor Details
-
MM1Queue41Model
Construct the model.- Parameters:
simulator
- the simulator
-
-
Method Details
-
constructModel
- Throws:
SimRuntimeException
-
getSourceId
- Specified by:
getSourceId
in interfaceEventProducerInterface
- Specified by:
getSourceId
in classEventProducer
-