deferred class interface JOB
--The job life will looks like :
-- do
-- prepare
-- if is_ready then
-- continue
-- repeat while not done
--
--If the same job as to live again, restart is called.
--
-- Note: never change priority after job inserted in loop_item.
-- Priority should only be set at creation time.
--
feature(s) from JOB
priority: INTEGER
-- Never change priority after job inserted in loop_item.
-- Priority should only be set at creation time.
invariant
priority /= Minimum_integer;
end of deferred JOB