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
Next revision
Previous revision
crime:examples [2007/03/13 22:57]
stijnm Updated
crime:examples [2007/03/29 23:06] (current)
stijnm Updated
Line 5: Line 5:
 The IN/OUT Board is a classic context-aware application proposed by [Dey et al.] during their seminal work on the context toolkit. The IN/OUT Board implemented using CRIME is used to visualise the current location of a user. The said location is expected to be published as a fact to allow applications to adapt their behaviour accordingly. When users are out of reach, the application keeps a record of when the user was last seen by the system. The IN/OUT Board is a classic context-aware application proposed by [Dey et al.] during their seminal work on the context toolkit. The IN/OUT Board implemented using CRIME is used to visualise the current location of a user. The said location is expected to be published as a fact to allow applications to adapt their behaviour accordingly. When users are out of reach, the application keeps a record of when the user was last seen by the system.
  
-<note warning>**Deploying the application. (available soon)** \\ +==== Deploying the application ==== 
-The CRIME distribution contains a script file inout.sh which launches the IN/OUT Board application which internally starts a CRIME engine. The CRIME engine will evaluate the rules specified below. </note>+ 
 +The CRIME distribution contains a script file ''server.sh'', which starts a host-level CRIME Fact Space. It is important to start this server prior to running any CRIME application. After all, it is only through the mediation of the host-level Fact Space that different CRIME applications discover one another both locally and remotely. To start the IN/OUT Board, run the included script file ''inout.sh''. The CRIME engine will evaluate the rules specified below. 
 + 
 +<code> 
 +cd crime-1.0.0/ 
 +./server.sh & 
 +./inout.sh 
 +</code>
  
 ==== The Rules ==== ==== The Rules ====
Line 24: Line 31:
 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.1173823054.txt.gz · Last modified: 2007/03/29 22:24 (external edit)