root/tags/lgt290/library/monitorp.lgt

Revision 2, 1.5 KB (checked in by pmoura, 7 years ago)

Initial revision

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