User Tools

Site Tools


crime:examples

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
crime:examples [2007/03/13 22:57]
stijnm Updated
crime:examples [2007/03/29 22:24]
stijnm *Cosmetic
Line 24: Line 24:
 As described in the original paper by [Dey et al.], variations in the functionality of the IN/OUT Board can be conceived where some versions may also display the last known whereabouts of a particular user on the screen. This can be achieved using the ''history'' fact which is published when the SetBoard action is deactived. When using the rule given below, the appearance of such a fact will trigger the HistoryBoard action which updates the GUI with the required information. As described in the original paper by [Dey et al.], variations in the functionality of the IN/OUT Board can be conceived where some versions may also display the last known whereabouts of a particular user on the screen. This can be achieved using the ''history'' fact which is published when the SetBoard action is deactived. When using the rule given below, the appearance of such a fact will trigger the HistoryBoard action which updates the GUI with the required information.
 <code>  <code>
-:edu.vub.crime.examples.board.HistoryBoard(?name, ?room, ?phone, ?time) :-+:edu.vub.crime.examples.board.HistoryBoard( 
 +    ?name, ?room, ?phone, ?time) :-
  history(?name, ?room, ?phone, ?time).  history(?name, ?room, ?phone, ?time).
 </code> </code>
  
 <note>**Action Names** \\ <note>**Action Names** \\
-At present, action names in the examples are always fully qualified. The distribution of CRIME does however allow one to  +In the code snippets given abovethe action names are fully qualified. The distribution of CRIME does however allow one to  
-specify the scope of these rules as follows: ''%package edu.vub.crime.examples.board''. If this construct is used, the action classes can be referred to without full qualification.+specify the scope of these rules as follows: ''%package edu.vub.crime.examples.board''. If this construct is used, the action classes can be referred to without full qualification. In the remaining examples, we will use the latter syntax
 </note> </note>
crime/examples.txt · Last modified: 2007/03/29 23:06 by stijnm