QObject
QObject can be used as a base class for objects that need to be placed in queues on a regular basis. A QObject can be in one and only one Queue at a time. An arbitrary object can be associated with the QObject. The user is responsible for managing the type of the attached object.
Creates an QObject with the given name and the creation time set to the supplied value
Parameters
The name of the QObject
Inheritors
Properties
A reference to an object that can be attached to the QObject when queued
The time that the QObject was created
The receiver that last received the qObject
The current simulation time. Attached to the queue object for convenience of checking time outside of model element instances.
Sets the priority to the supplied value If the QObject is queued, the queue's changePriority() method is called (possibly causing a reordering of the queue) which may cause significant reordering overhead otherwise the priority is directly changed Changing this value only changes how the QObjects are compared and may or may not change how they are ordered in the queue, depending on the queue discipline used
A generic attribute to indicate a type for the QObject
This method can be used to get direct access to the State that represents when the object was queued. This allows access to the total time in the queued state as well as other statistical accumulation of state statistics
Something that knows how to send qObjects to receivers
The time that the QObject was LAST enqueued
The time that the QObject LAST exited a queue
The time that the QObject spent in the Queue based on the LAST time dequeued
Allows for a generic value to be held by the QObject