public class LoadFactory_SQ_SV_0001<J extends SimJob,Q extends SimQueue> extends AbstractLoadFactory_SQ_SV<J,Q>
LoadFactory_SQ_SV, pattern 0001.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>>)| Constructor and Description |
|---|
LoadFactory_SQ_SV_0001() |
| 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.
|
public String getDescription()
LoadFactory_SQ_SVThe default implementation returns "None provided!".
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 generates no jobs or other external queue events (empty workload)
(ignoring the numberOfJobs argument).
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.