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