Class AbstrPrioritySQFactory<OBJ extends PriorityServerQueue<QS>,QS extends QueueServer>

All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
PrioritySQFactory

public abstract class AbstrPrioritySQFactory<OBJ extends PriorityServerQueue<QS>,QS extends QueueServer> extends ServerQueueFactory<OBJ,PriorityTaskQueue.PriorityParam,QS>
Abstract factory for server queues that are subclasses of PriorityServerQueue. This factory reduces the number of type parameters that must be provided.

AbstrPrioritySQFactory inherits the factory parameters "queueServer" and "deletePolicy" from its superclass ServerQueueFactory and the parameters "timeline", "timeline.time", "timeline.traceSetMode", "timeline.traceSets", and "traceSets" from SimObjectFactory.

Subclasses that are not abstract classes must implement the method getQueueServerClass. Unless the parameter "queueServer" is hidden and thus not used, subclasses will typically use the method ServerQueueFactory.getQueueServers() to obtain an array of the queue servers that were configured. This array is needed by the constructors of some subclasses.

See Also:
  • Constructor Details

    • AbstrPrioritySQFactory

      protected AbstrPrioritySQFactory(Simulation sim)
      Constructor.
      Parameters:
      sim - the simulation used to name objects.