You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Move priority, preemptible and restart to add_generator #69
More natural interpretation as attributes of an arrival, rather than attributes of a seize.
Alleviate seize's complex syntax.
Same flexibility and performance with set_attribute and static values, and even more flexibility with the possibility of passing functions to set_attribute.
By default, all arrivals would be generated with the same default values, so
should print 0 0 0. Maybe this would be a bit opaque, so priority=0, preemptible=priority, restart=FALSE could be added to add_generator to define these initial values for all the arrivals.
There were some issues with the initial plan. priority must be equal or greater than 0, and preemptible must be equal or greater than priority, but always checking the key of the attribute being set in order to enforce these limits is too expensive, so I've taken another approach.
There is an implementation of this in the dev-main branch. These, let's say, special attributes, priority, preemptible and restart, are stored apart from the attributes and they have a special verb to modify them: set_prioritization(). You can define the same static prioritization for all the arrivals belonging to certain generator:
Activity
Enchufa2 commentedon Jul 3, 2016
There were some issues with the initial plan.
prioritymust be equal or greater than 0, andpreemptiblemust be equal or greater thanpriority, but always checking the key of the attribute being set in order to enforce these limits is too expensive, so I've taken another approach.There is an implementation of this in the dev-main branch. These, let's say, special attributes,
priority,preemptibleandrestart, are stored apart from the attributes and they have a special verb to modify them:set_prioritization(). You can define the same static prioritization for all the arrivals belonging to certain generator:or you can define this prioritization dynamically inside the trajectory:
Of course, if you try to set the prioritization in the
seize, a warning is shown:[-]Priority, preemptible and restart as attributes[/-][+]Move priority, preemptible and restart to add_generator[/+]close #69: move priority, preemptible and restart to add_generator