root/tags/lgt293/library/event_registryp.lgt

Revision 2, 1.4 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(event_registryp).
3
4
5    :- info([
6        version is 1.0,
7        authors is 'Paulo Moura',
8        date is 2000/7/24,
9        comment is 'Event registry protocol.']).
10
11
12    :- public(monitors/1).
13
14    :- mode(monitors(-list), one).
15
16    :- info(monitors/1, [
17        comment is 'Returns a list of all current monitors.',
18        argnames is ['Monitors']]).
19
20
21    :- public(monitored/1).
22
23    :- mode(monitored(-list), one).
24
25    :- info(monitored/1, [
26        comment is 'Returns a list of all currently monitored objects.',
27        argnames is ['Objects']]).
28
29
30    :- public(monitor/4).
31
32    :- mode(monitor(?object, ?nonvar, ?object, ?object), zero_or_more).
33
34    :- info(monitor/4, [
35        comment is 'True if the arguments describe a currently defined monitored event.',
36        argnames is ['Object', 'Message', 'Sender', 'Monitor']]).
37
38
39    :- public(set_monitor/4).
40
41    :- mode(set_monitor(?object, ?nonvar, ?object, +object), zero_or_one).
42
43    :- info(set_monitor/4, [
44        comment is 'Sets a monitor for the set of matching events.',
45        argnames is ['Object', 'Message', 'Sender', 'Monitor']]).
46
47
48    :- public(del_monitors/4).
49
50    :- mode(del_monitors(?object, ?nonvar, ?object, ?object), one).
51
52    :- info(del_monitors/4, [
53        comment is 'Deletes all matching monitored events.',
54        argnames is ['Object', 'Message', 'Sender', 'Monitor']]).
55
56
57    :- public(del_monitors/0).
58
59    :- mode(del_monitors, one).
60
61    :- info(del_monitors/0, [
62        comment is 'Deletes all monitored events.']).
63
64
65:- end_protocol.
Note: See TracBrowser for help on using the browser.