Package examples.queueing
Class NHPDriverLicenseBureauWithQ
- java.lang.Object
-
- jsl.simulation.ModelElement
-
- jsl.simulation.SchedulingElement
-
- examples.queueing.NHPDriverLicenseBureauWithQ
-
- All Implemented Interfaces:
ObservableIfc
,GetNameIfc
,IdentityIfc
public class NHPDriverLicenseBureauWithQ extends SchedulingElement
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jsl.simulation.ModelElement
ModelElement.EventBuilderIfc<T>, ModelElement.EventScheduler<T>, ModelElement.ModelElementComparator, ModelElement.RequestBuilder, ModelElement.RequestDurationIfc, ModelElement.RequestTimeIfc, ModelElement.RequestUsingIfc, ModelElement.TimedUpdateEventAction, ModelElement.TimeUnitIfc<T>, ModelElement.WarmUpEventAction
-
-
Field Summary
-
Fields inherited from class jsl.simulation.ModelElement
AFTER_EXPERIMENT, AFTER_REPLICATION, BEFORE_EXPERIMENT, BEFORE_REPLICATION, CONDITIONAL_ACTION_REGISTRATION, DEFAULT_TIMED_EVENT_PRIORITY, INITIALIZED, MONTE_CARLO, myAfterExperimentOption, myAfterReplicationOption, myBeforeExperimentOption, myBeforeReplicationOption, myInitializationOption, myLengthOfWarmUp, myModelElements, myMonteCarloOption, myObservableComponent, myReplicationEndedOption, myTimedUpdateActionListener, myTimedUpdateEvent, myTimedUpdateInterval, myTimedUpdateOption, myTimedUpdatePriority, myWarmUpActionListener, myWarmUpEvent, myWarmUpIndicator, myWarmUpOption, myWarmUpPriority, NONE, REMOVED_FROM_MODEL, REPLICATION_ENDED, TIME_UNIT_DAY, TIME_UNIT_HOUR, TIME_UNIT_MILLISECOND, TIME_UNIT_MINUTE, TIME_UNIT_SECOND, TIME_UNIT_WEEK, TIMED_UPDATE, UPDATE, WARMUP
-
-
Constructor Summary
Constructors Constructor Description NHPDriverLicenseBureauWithQ(ModelElement parent)
NHPDriverLicenseBureauWithQ(ModelElement parent, int numServers, java.lang.String name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getNumberOfServers()
protected void
initialize()
This method should be overridden by subclasses that need actions performed to initialize prior to a replication.static void
main(java.lang.String[] args)
protected void
setNumberOfServers(int n)
void
setServiceDistributionInitialRandomSource(RVariableIfc d)
static void
test1()
The service time is exponential with a mean of 3 minutes The arrival process is non-homogeneous Poisson for the following Interval duration (min) rate per min 12 am - 6 am 360 0.006 6 am - 9 am 180 0.033 9 am - 12 pm 180 0.041 12 pm - 2 pm 120 0.194 2 pm - 5 pm 180 0.079 5 pm - 8 pm 180 0.167 8 pm - 12 am 240 0.05 Run for 10 days, no warm upstatic void
test2()
The service time is exponential with a mean of 3 minutes The arrival process is non-homogeneous Poisson for the following Interval duration (min) rate per min 12 am - 6 am 360 0.006 6 am - 9 am 180 0.033 9 am - 12 pm 180 0.041 12 pm - 2 pm 120 0.194 2 pm - 5 pm 180 0.079 5 pm - 8 pm 180 0.167 8 pm - 12 am 240 0.05 Run for 10 days, 1 day warm up, 1 day of observation-
Methods inherited from class jsl.simulation.SchedulingElement
cancelEvent, rescheduleEvent, rescheduleEvent, rescheduleEvent, rescheduleEvent, scheduleEvent, scheduleEvent, scheduleEvent, scheduleEvent, scheduleEvent, scheduleEvent, scheduleEvent, scheduleEvent, scheduleEvent, scheduleEvent
-
Methods inherited from class jsl.simulation.ModelElement
addObserver, addObserverToModelElements, afterExperiment, afterExperiment_, afterReplication, afterReplication_, asString, beforeExperiment, beforeExperiment_, beforeReplication, beforeReplication_, buildEventGenerator, cancelTimedUpdateEvent, cancelWarmUpEvent, changeParentModelElement, checkForAfterExperiment, checkForAfterReplication, checkForBeforeExperiment, checkForBeforeReplication, checkForConditionalActionRegistration, checkForInitialize, checkForMonteCarlo, checkForRemoveFromModel, checkForReplicationEnded, checkForTimedUpdate, checkForUpdate, checkForWarmUp, checkObserverState, checkWarmUpOption, clearModelElementObservers, contains, countObservers, createEntity, createEntity, createQObject, day, deleteObserver, deleteObserverFromModelElements, deleteObservers, findModelElementWithWarmUpEvent, getAfterExperimentOption, getAfterReplicationOption, getAllCounters, getAllModelElements, getAllRandomElements, getAllResponseVariables, getAllVariables, getBeforeExperimentOption, getBeforeReplicationOption, getChildModelElementIterator, getCurrentReplicationNumber, getDefaultEntityType, getExecutive, getExperiment, getId, getInitializationOption, getInitializationOrderAsString, getLeftPreOrderTraversalCount, getLengthOfWarmUp, getModel, getModelElementCompartor, getModelElementsAsString, getModelElementsAsString, getModelElementsAsString, getMonteCarloOption, getName, getNumberOfModelElements, getObserverState, getParentModelElement, getPreviousObserverState, getReplicationEndedOption, getRightPreOrderTraversalCount, getSimulation, getSpatialModel, getStringLabel, getThisElementsCounters, getThisElementsModelElements, getThisElementsRandomVariables, getThisElementsResponseVariables, getThisElementsVariables, getTime, getTimedUpdateInterval, getTimedUpdateOption, getUpdateNotificationFlag, getVariable, getWarmUpEventTime, getWarmUpOption, hour, indent, initialize_, isTimedUpdateEventScheduled, isWarmedUp, isWarmUpEventScheduled, isWarmUpScheduled, millisecond, minute, montecarlo, montecarlo_, notifyAfterExperimentObservers, notifyAfterReplicationObservers, notifyBeforeExperimentObservers, notifyBeforeReplicationObservers, notifyConditionalActionRegistrationObservers, notifyInitializationObservers, notifyMonteCarloObservers, notifyObservers, notifyObservers, notifyRemovingFromModelObservers, notifyReplicationEndedObservers, notifyTimedUpdateObservers, notifyUpdateObservers, notifyWarmUpObservers, registerConditionalActions, registerConditionalActions_, removedFromModel, removeFromModel, replicationEnded, replicationEnded_, schedule, second, seize, setAfterExperimentOption, setAfterExperimentOptionForModelElements, setAfterReplicationOption, setAfterReplicationOptionForModelElements, setBeforeExperimentOption, setBeforeExperimentOptionForModelElements, setBeforeReplicationOption, setBeforeReplicationOptionForModelElements, setInitializationOption, setInitializationOptionForModelElements, setLengthOfWarmUp, setModel, setMonteCarloOption, setMonteCarloOptionForModelElements, setName, setObserverState, setParentModelElement, setReplicationEndedOption, setReplicationEndedOptionForModelElements, setSpatialModel, setStringLabel, setTimedUpdateInterval, setTimedUpdateOption, setTimedUpdateOptionForModelElements, setUpdateNotificationFlag, setWarmUpOption, setWarmUpOptionForModelElements, stopExecutive, stopExecutive, timedUpdate, timedUpdate_, toString, update, useControls, warmUp, warmUp_, week
-
-
-
-
Constructor Detail
-
NHPDriverLicenseBureauWithQ
public NHPDriverLicenseBureauWithQ(ModelElement parent)
-
NHPDriverLicenseBureauWithQ
public NHPDriverLicenseBureauWithQ(ModelElement parent, int numServers, java.lang.String name)
-
-
Method Detail
-
getNumberOfServers
public int getNumberOfServers()
-
setNumberOfServers
protected void setNumberOfServers(int n)
-
setServiceDistributionInitialRandomSource
public void setServiceDistributionInitialRandomSource(RVariableIfc d)
-
initialize
protected void initialize()
Description copied from class:ModelElement
This method should be overridden by subclasses that need actions performed to initialize prior to a replication. It is called once before each replication occurs if the model element wants initialization. It is called after beforeReplication() is called- Overrides:
initialize
in classModelElement
-
main
public static void main(java.lang.String[] args)
-
test1
public static void test1()
The service time is exponential with a mean of 3 minutes The arrival process is non-homogeneous Poisson for the following Interval duration (min) rate per min 12 am - 6 am 360 0.006 6 am - 9 am 180 0.033 9 am - 12 pm 180 0.041 12 pm - 2 pm 120 0.194 2 pm - 5 pm 180 0.079 5 pm - 8 pm 180 0.167 8 pm - 12 am 240 0.05 Run for 10 days, no warm up
-
test2
public static void test2()
The service time is exponential with a mean of 3 minutes The arrival process is non-homogeneous Poisson for the following Interval duration (min) rate per min 12 am - 6 am 360 0.006 6 am - 9 am 180 0.033 9 am - 12 pm 180 0.041 12 pm - 2 pm 120 0.194 2 pm - 5 pm 180 0.079 5 pm - 8 pm 180 0.167 8 pm - 12 am 240 0.05 Run for 10 days, 1 day warm up, 1 day of observation
-
-