File: event_registryp.lgt

package info (click to toggle)
yap 5.1.1-3
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 16,124 kB
  • ctags: 14,650
  • sloc: ansic: 122,796; perl: 22,545; sh: 3,768; java: 1,277; makefile: 1,191; xml: 739; tcl: 624; lisp: 142; awk: 9
file content (65 lines) | stat: -rw-r--r-- 1,412 bytes parent folder | download
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

:- protocol(event_registryp).


	:- info([
		version is 1.0,
		author is 'Paulo Moura',
		date is 2000/7/24,
		comment is 'Event registry protocol.']).


	:- public(monitors/1).

	:- mode(monitors(-list), one).

	:- info(monitors/1, [
		comment is 'Returns a list of all current monitors.',
		argnames is ['Monitors']]).


	:- public(monitored/1).

	:- mode(monitored(-list), one).

	:- info(monitored/1, [
		comment is 'Returns a list of all currently monitored objects.',
		argnames is ['Objects']]).


	:- public(monitor/4).

	:- mode(monitor(?object, ?nonvar, ?object, ?object), zero_or_more).

	:- info(monitor/4, [
		comment is 'True if the arguments describe a currently defined monitored event.',
		argnames is ['Object', 'Message', 'Sender', 'Monitor']]).


	:- public(set_monitor/4).

	:- mode(set_monitor(?object, ?nonvar, ?object, +object), zero_or_one).

	:- info(set_monitor/4, [
		comment is 'Sets a monitor for the set of matching events.',
		argnames is ['Object', 'Message', 'Sender', 'Monitor']]).


	:- public(del_monitors/4).

	:- mode(del_monitors(?object, ?nonvar, ?object, ?object), one).

	:- info(del_monitors/4, [
		comment is 'Deletes all matching monitored events.',
		argnames is ['Object', 'Message', 'Sender', 'Monitor']]).


	:- public(del_monitors/0).

	:- mode(del_monitors, one).

	:- info(del_monitors/0, [
		comment is 'Deletes all monitored events.']).


:- end_protocol.