Class TaskQueueFactory<T,OBJ extends TaskQueue<T>>

All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
Abstr2WaitTaskQFactory, AbstrPriorityTQFactory, DelayTaskQueueFactory

public abstract class TaskQueueFactory<T,OBJ extends TaskQueue<T>> extends DefaultSimObjectFactory<OBJ>
Abstract factory for task queues. This class is the base class for factories that create subclasses of TaskQueue.

The parameters this factory provides are the same as the parameters provided by its subclass LifoTaskQueueFactory:

See Also:
  • Constructor Details

    • TaskQueueFactory

      protected TaskQueueFactory(Simulation sim)
      Constructor.
      Parameters:
      sim - the simulation used to name objects.
  • Method Details

    • clear

      public void clear()
      Description copied from class: NamedObjectFactory
      Clear all entries and restore to default values. Note: each subclass that implements this method should call super.clear(). Any subclass that defines parameters should call this method in order to restore the parameters to their default values. When an annotation processor is used for some parameters, those parameters can be restored to their default value by calling the parm manager's setDefaults method with the factory as its argument.
      Overrides:
      clear in class SimObjectFactory<DefaultSimObjectFactory<OBJ extends TaskQueue<T>>,Simulation,OBJ extends TaskQueue<T>>
    • initObject

      protected void initObject(OBJ object)
      Description copied from class: NamedObjectFactory
      Initialize an object. This method will call the methods for the object necessary to initialize it based on how the factory was configured, and is called by createObject() and createObjects unless these methods are overridden. The default method does nothing. Subclasses that override this method to provide subclass-specific initializations must start with the statement "super.initObject(object);".
      Overrides:
      initObject in class SimObjectFactory<DefaultSimObjectFactory<OBJ extends TaskQueue<T>>,Simulation,OBJ extends TaskQueue<T>>
      Parameters:
      object - the object to initialize