public class LoadFactory_SQ_SV_0014<J extends SimJob,Q extends SimQueue> extends LoadFactory_SQ_SV_0010<J,Q>
LoadFactory_SQ_SV, pattern 0014.Copyright (C) 2005-2017 Jan de Jongh, TNO
This file is covered by the LICENSE file in the root of this project.
generate(org.javades.jsimulation.r5.SimEventList, boolean, Q, org.javades.jqueues.r5.entity.jq.job.SimJobFactory<J, Q>, int, boolean, double, java.util.Set<org.javades.jqueues.r5.util.loadfactory.LoadFactoryHint>, java.util.NavigableMap<java.lang.Double, java.util.Set<org.javades.jqueues.r5.entity.jq.SimJQEvent>>)| Modifier and Type | Field and Description |
|---|---|
static LoadFactoryHint |
DISABLE_GPC
A load-factory hint that disables gate-passage credits events
(irrespective of the auto-detection of the queue's capabilities).
|
static LoadFactoryHint |
FORCE_GPC
A load-factory hint that forces gate-passage credits events
(irrespective of the auto-detection of the queue's capabilities).
|
SERVICE_TIME_JITTER| Constructor and Description |
|---|
LoadFactory_SQ_SV_0014() |
| Modifier and Type | Method and Description |
|---|---|
Set<J> |
generate(org.javades.jsimulation.r5.SimEventList eventList,
boolean attachSimJobsToEventList,
Q queue,
SimJobFactory<J,Q> jobFactory,
int numberOfJobs,
boolean reset,
double resetTime,
Set<LoadFactoryHint> hints,
NavigableMap<Double,Set<SimJQEvent>> queueExternalEvents)
Generates the load.
|
String |
getDescription()
Returns a description of this load factory.
|
generateRequestedServiceTimeMappublic static final LoadFactoryHint FORCE_GPC
public static final LoadFactoryHint DISABLE_GPC
public String getDescription()
LoadFactory_SQ_SVThe default implementation returns "None provided!".
getDescription in interface LoadFactory_SQ_SV<J extends SimJob,Q extends SimQueue>getDescription in class LoadFactory_SQ_SV_0010<J extends SimJob,Q extends SimQueue>public Set<J> generate(org.javades.jsimulation.r5.SimEventList eventList, boolean attachSimJobsToEventList, Q queue, SimJobFactory<J,Q> jobFactory, int numberOfJobs, boolean reset, double resetTime, Set<LoadFactoryHint> hints, NavigableMap<Double,Set<SimJQEvent>> queueExternalEvents)
This method
LoadFactory_SQ_SV_0010.generate(org.javades.jsimulation.r5.SimEventList, boolean, Q, org.javades.jqueues.r5.entity.jq.job.SimJobFactory<J, Q>, int, boolean, double, java.util.Set<org.javades.jqueues.r5.util.loadfactory.LoadFactoryHint>, java.util.NavigableMap<java.lang.Double, java.util.Set<org.javades.jqueues.r5.entity.jq.SimJQEvent>>);
SimQueueWithGate
or has SimQueueWithGateOperationUtils.GatePassageCreditsOperation registered,
it adds setting the number of gate-passage credits on the queue at 11.19, 22.19, 33.19, etc.
Note: this method generates SimQueueGateEvents only for SimQueueWithGates
or queues that have has SimQueueWithGateOperationUtils.GatePassageCreditsOperation registered as operation.
The check is done at runtime, and not reflected in the generic-type arguments of this class.
Otherwise, instances of this class behave as if they
were a LoadFactory_SQ_SV_0010.
The amount of gate-passage credits is drawn from {0, 1, 5, Double.MAX_VALUE} with equal probabilities.
Setting the gate-passage credits is scheduled roughly until all jobs would have been served under single-server FCFS,
with an additional 100% to account for the gate delays.
generate in interface LoadFactory_SQ_SV<J extends SimJob,Q extends SimQueue>generate in class LoadFactory_SQ_SV_0010<J extends SimJob,Q extends SimQueue>eventList - The event list, non-null.attachSimJobsToEventList - Whether or not to attach the generated SimJobs to the SimEventList;
typically set to false
(see SimEntity and SimJob for more details on the consequences).queue - The queue, non-null.jobFactory - The job factory, non-null.numberOfJobs - The number of jobs to generate, non-negative.reset - Whether or not to reset the event list.resetTime - The time to which to reset the event list.hints - An optional set of LoadFactoryHints, may be null
and unknown hints are silently ignored.queueExternalEvents - An optional map for storing the generated SimJQEvents indexed by
event time and for events at the same time, by order of occurrence.
The map is not cleared; generated events in this method are assumed to
occur after any existing events at the same time.SimJQEventScheduler.scheduleJQ(org.javades.jsimulation.r5.SimEventList, boolean, double, java.util.Set<org.javades.jqueues.r5.entity.jq.SimJQEvent<J, Q>>)Copyright © 2018. All rights reserved.