root/tags/lgt2310/library/monitorp.lgt

Revision 3687, 1.4 KB (checked in by pmoura, 21 months ago)

Code reformating.

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