1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
|
:- protocol(monitorp).
:- info([
version is 1.0,
author is 'Paulo Moura',
date is 2000/7/24,
comment is 'Monitor protocol.']).
:- public(monitor_activated/0).
:- mode(monitor_activated, zero_or_one).
:- info(monitor_activated/0, [
comment is 'True if monitor is currently active.']).
:- public(activate_monitor/0).
:- mode(activate_monitor, one).
:- info(activate_monitor/0, [
comment is 'Activates all spy points and start monitoring.']).
:- public(suspend_monitor/0).
:- mode(suspend_monitor, one).
:- info(suspend_monitor/0, [
comment is 'Suspends monitoring, deactivating all spy points.']).
:- public(reset_monitor/0).
:- mode(reset_monitor, one).
:- info(reset_monitor/0, [
comment is 'Resets monitor, deactivating and deleting all spy points.']).
:- public(spy_point/4).
:- mode(spy_point(?event, ?object, ?callable, ?object), zero_or_more).
:- info(spy_point/4, [
comment is 'Current spy point.',
argnames is ['Event', 'Object', 'Message', 'Sender']]).
:- public(set_spy_point/4).
:- mode(set_spy_point(?event, ?object, ?callable, ?object), one).
:- info(set_spy_point/4, [
comment is 'Sets a spy point.',
argnames is ['Event', 'Object', 'Message', 'Sender']]).
:- public(del_spy_points/4).
:- mode(del_spy_points(@event, @object, @callable, @object), one).
:- info(del_spy_points/4, [
comment is 'Deletes all matching spy points.',
argnames is ['Event', 'Object', 'Message', 'Sender']]).
:- end_protocol.
|