This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
yap-6.3/Logtalk/library/event_registryp.lgt
pmoura 6b4bde14e1 Logtalk 2.30.1 files.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1903 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2007-06-12 10:39:47 +00:00

46 lines
1.4 KiB
Plaintext

:- 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.