+
Point of view
LOOP_ITEM
class SIMPLE_PERIODIC_JOB
Summary
Class invariant
Overview
creation features
exported features
  • done: BOOLEAN
    done returns True when the job is finished.
  • continue
    Continue to do the job The work to do has to be small work and non blocking, it will continue on next call
  • restart
    Configure the job like the initial state.
set_work (t: FUNCTION[TUPLE, BOOLEAN], tr: PROCEDURE[TUPLE], prio: INTEGER_32, seconds: REAL_64)
effective procedure
t has to return True while continue
done: BOOLEAN
writable attribute
done returns True when the job is finished.
continue
effective procedure
Continue to do the job The work to do has to be small work and non blocking, it will continue on next call
restart
effective procedure
Configure the job like the initial state.
period: REAL_64
writable attribute
unit is seconds
next_time: MICROSECOND_TIME
writable attribute
prepare (events: EVENTS_SET)
effective procedure
use ready to descibe condition that make this job ready to continue.
is_ready (events: EVENTS_SET): BOOLEAN
effective function
check if this job is ready to continue his work
priority: INTEGER_32
writable attribute
Never change priority after job inserted in loop_item.
infix "<" (other: JOB): BOOLEAN
effective function