Export to GitHub

bpswg - issue #51

Add a Priority control parameter for tasks


Posted on Feb 10, 2012 by Swift Bird

This a ControlParameter to be used with a task. The priority is an integer value, the higher the value the higher the priority.

Background: Simulators can use this during resource allocation to allocate idle resources to waiting activities, the highest priority waiting activity gets satisfied first if its selection rule resolves to the available resource type.

Comment #1

Posted on Feb 23, 2012 by Happy Panda

So, if 2 tasks in the queue (competing on the same resource), the task with higher priority gets the resource first? I understand the concept, not sure how the model would support that...

By the way, the model has it under Priority, not under ControlParameter. Related issue (#64), not sure they are the same (since under different classes).

Comment #2

Posted on Feb 27, 2012 by Happy Cat

Done in version 0.2

A new class PriorityParameters was introduced including a "priority" and "interruptible" attributes

Comment #3

Posted on Oct 24, 2012 by Swift Rabbit

(No comment was entered for this change.)

Status: Applied