Changeset 4550 for trunk/manuals
- Timestamp:
- 10/31/08 09:44:36 (2 months ago)
- Location:
- trunk/manuals
- Files:
-
- 6 modified
-
index.html (modified) (1 diff)
-
refman/builtins/define_events5.html (modified) (3 diffs)
-
refman/index.html (modified) (1 diff)
-
refman/refman.header (modified) (1 diff)
-
userman/events.html (modified) (4 diffs)
-
userman/userman.header (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/manuals/index.html
r4549 r4550 32 32 <div class="copyright"> 33 33 <span>Copyright © <a href="mailto:pmoura@logtalk.org">Paulo Moura</a> — <a href="http://logtalk.org">Logtalk.org</a></span><br/> 34 <span>Last updated on: October 3 0, 2008</span>34 <span>Last updated on: October 31, 2008</span> 35 35 </div> 36 36 <div class="navbottom"> -
trunk/manuals/refman/builtins/define_events5.html
r3957 r4550 26 26 <pre>define_events(Event, Object, Message, Sender, Monitor)</pre> 27 27 <p> 28 Defines a new set of events. The two types of events are represented by the atoms <code>before</code> and <code>after</code> .28 Defines a new set of events. The two types of events are represented by the atoms <code>before</code> and <code>after</code> The object <code>Monitor</code> must define the event handler methods required by the <code>Event</code> argument. 29 29 </p> 30 30 … … 48 48 <dt>Monitor is neither a variable nor a valid object identifier:</dt> 49 49 <dd><code>existence_error(object_identifier, Monitor)</code></dd> 50 <dt>Monitor does not define the required <code>before/3</code> method:</dt> 51 <dd><code>existence_error(procedure, before/3)</code></dd> 52 <dt>Monitor does not define the required <code>after/3</code> method:</dt> 53 <dd><code>existence_error(procedure, after/3)</code></dd> 50 54 </dl> 51 55 … … 57 61 <div class="copyright"> 58 62 <span>Copyright © <a href="mailto:pmoura@logtalk.org">Paulo Moura</a> — <a href="http://logtalk.org">Logtalk.org</a></span><br/> 59 <span>Last updated on: December 9, 2007</span>63 <span>Last updated on: October 31, 2008</span> 60 64 </div> 61 65 <div class="navbottom"> -
trunk/manuals/refman/index.html
r4537 r4550 321 321 <div class="copyright"> 322 322 <span>Copyright © <a href="mailto:pmoura@logtalk.org">Paulo Moura</a> — <a href="http://logtalk.org">Logtalk.org</a></span><br/> 323 <span>Last updated on: October 24, 2008</span>323 <span>Last updated on: October 31, 2008</span> 324 324 </div> 325 325 <div class="navbottom"> -
trunk/manuals/refman/refman.header
r4537 r4550 36 36 <span>http://logtalk.org/</span> 37 37 </p> 38 <p class="date">Last updated on October 24, 2008</p>38 <p class="date">Last updated on October 31, 2008</p> 39 39 </div> 40 40 -
trunk/manuals/userman/events.html
r4530 r4550 158 158 <pre>| ?- define_events(Event, Object, Message, Sender, Monitor).</pre> 159 159 <p> 160 Note that if any of the arguments is a free variable or contains free variables, this call will define the <strong>set</strong> of matching events.160 Note that if any of the <code>Event</code>, <code>Object</code>, <code>Message</code>, and <code>Sender</code> arguments is a free variable or contains free variables, this call will define the <strong>set</strong> of matching events. 161 161 </p> 162 162 … … 174 174 175 175 <p> 176 The <code>monitoring</code> built-in protocol declares two public predicates, <a title="Consult reference manual" href="../refman/methods/before3.html"><code>before/3</code></a> and <a title="Consult reference manual" href="../refman/methods/after3.html"><code>after/3</code></a>, that are automatically called to handle <code>before</code> and <code>after</code> events. Any object that plays the role of monitor shoulddefine one or both of these event handler methods:176 The <code>monitoring</code> built-in protocol declares two public predicates, <a title="Consult reference manual" href="../refman/methods/before3.html"><code>before/3</code></a> and <a title="Consult reference manual" href="../refman/methods/after3.html"><code>after/3</code></a>, that are automatically called to handle <code>before</code> and <code>after</code> events. Any object that plays the role of monitor must define one or both of these event handler methods: 177 177 </p> 178 178 <pre>before(Object, Message, Sender) :- … … 184 184 The arguments in both methods are instantiated by the message sending mechanisms when a spied event occurs. For example, assume that we want to define a monitor called <code>tracer</code> that will track any message sent to an object by printing a describing text to the standard output. Its definition could be something like:</p> 185 185 <pre>:- object(tracer, 186 implements(monitoring)). 186 implements(monitoring)). % built-in protocol for event handler methods 187 187 188 188 before(Object, Message, Sender) :- … … 248 248 <div class="copyright"> 249 249 <span>Copyright © <a href="mailto:pmoura@logtalk.org">Paulo Moura</a> — <a href="http://logtalk.org">Logtalk.org</a></span><br/> 250 <span>Last updated on: October 20, 2008</span>250 <span>Last updated on: October 31, 2008</span> 251 251 </div> 252 252 <div class="navbottom"> -
trunk/manuals/userman/userman.header
r4549 r4550 36 36 <span>http://logtalk.org/</span> 37 37 </p> 38 <p class="date">Last updated on October 3 0, 2008</p>38 <p class="date">Last updated on October 31, 2008</p> 39 39 </div> 40 40
