antonio6vieira Posted March 19, 2015 Share Posted March 19, 2015 Hi I have a FIFO queue in my model. However, in certain cases, I want to transfer entities to the first position of that queue (temporary LIFO). I have thought of some more complex ways to do this but before implement those, I wanted to know if a more efficient way exists, like for example transferring an entity to the first position of the queue... Link to comment Share on other sites More sharing options...
dsturrock Posted March 20, 2015 Share Posted March 20, 2015 You could rank the queue Low Value First based on Entity.Priority. Just before the entity arrives at the queue assign its priority to TimeNow, or assign it to 0.0 if you want to push it to the front. Link to comment Share on other sites More sharing options...
Recommended Posts