note description: "A timer manager implementation" legal: "See notice at end of class."; status: "See notice at end of class."; date: "$Date$"; revision: "$Revision$" deferred class TIMER_I inherit G_ANY export {NONE} all end feature -- Status report is_call_back_set: BOOLEAN -- Is a call back already set ? deferred end; is_regular_call_back: BOOLEAN -- Is the call back set a regular one ? require is_call_back_set deferred end; feature -- Status setting set_next_call_back (a_delay: INTEGER; a_command: COMMAND; an_argument: ANY)-- Set `a_command' with `argument' to execute when `a_delay'; -- in milliseconds has expired. require no_call_back_already_set: not is_call_back_set; a_delay_positive_and_not_null: a_delay > 0; not_a_command_void: a_command /= Void deferred ensure is_call_back_set and (not is_regular_call_back) end; set_no_call_back -- Remove any call-back already set. require a_call_back_must_be_set: is_call_back_set deferred ensure not is_call_back_set end; set_regular_call_back (a_time: INTEGER; a_command: COMMAND; an_argument: ANY) -- Set `a_command' with `argument' to execute all the `a_time' -- milliseconds. require no_call_back_already_set: not is_call_back_set; a_time_positive_and_not_null: a_time >0; not_a_command_void: a_command /= Void deferred ensure is_call_back_set and is_regular_call_back end; destroy deferred end note copyright: "Copyright (c) 1984-2006, Eiffel Software and others" license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)" source: "[ Eiffel Software 356 Storke Road, Goleta, CA 93117 USA Telephone 805-685-1006, Fax 805-685-6869 Website http://www.eiffel.com Customer support http://support.eiffel.com ]" end -- class TIMER_I