class SIMPLE_PERIODIC_JOB
Summary
Class invariant
Overview
Creation features
Exported features
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.
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 events to describe 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