Conveyor Request
A conveyor request represents the holding of cells on a conveyor and acts as a "ticket" to use the conveyor. Once an entity has a conveyor request, the entity has control over the cells at the start of the segment associated with the entry location along the conveyor. After receiving a request to access the conveyor the entity can either ride on the conveyor or exit. The conveyor request blocks at the point of access until riding or exiting. The request is placed in the blocking entry state. When the entity asks to ride the conveyor then the request will be placed in the riding state. If the entity never rides the conveyor, then the request stays in the blocking entry state. The property isWaitingForEntry indicates that the conveyor request is waiting to be allowed to block the entry cell of the conveyor at its current location. Once the conveyor request is used to ride the conveyor, the isWaitingToConvey property will report false. The isBlockingEntry property will report true until the request begins riding. Once the request reaches its destination, the isBlockingExit property will be true and the request is in the blocking exit state. When the request exits the conveyor the isCompleted property is true and the request is in the completed state. Once in the completed state, the request can no longer be used for any interaction with the conveyor.
Constructors
Properties
Can be used when the entity is resumed
A reference to an object that can be attached to the QObject when queued
The time that the QObject was created
The current location of the entity. This is assigned when the entity arrives at the end of a segment
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.
The final location where the entity wants to visit on the conveyor
The entity that needs to use the conveyor
The location where the entity first accessed the conveyor
The cell that is occupied by the item that is the furthest forward (closest to the end) on the conveyor that the item is currently occupying. Null means that the item is not occupying any cells. An item may occupy 1 or more cells depending on the number of cells that it needs while riding on the conveyor. If the conveyor has 5 cells (1, 2, 3, 4, 5) and the item needs 2 cells and is occupying cells 2 and 3, then its front cell is 3.
True if the item has reached the last cell of the current segment
True if the entity has reached its destination
The number of cells needed when riding on the conveyor
The number of cells currently occupied on the conveyor. This may be different from numCellsAllocated because an allocation does not need to convey. It can be used to block the conveyor at one of its entrance locations
True if the item occupies cells. After exiting the conveyor the item does not occupy any cells
While riding this is the location where the entity is heading
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
The cell that is occupied by the item that is closest to the origin of the conveyor that the item is currently on. Null means that the item is not occupying any cells. An item may occupy 1 or more cells depending on the number of cells that it needs while riding on the conveyor. If the segment has 5 cells (1, 2, 3, 4, 5) and the item needs 2 cells and is occupying cells 2 and 3, then its rear cell is 2.
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