"Shuffle Europe" example

This example demonstrate an approach to implementation of movement and transformation of extended spatial objects - polygons. It also demonstrates how to use Closure programming language through ClojureTab for implementation of actions.

    Running "Shuffle Europe" example

1. Start run_protege.sh (Linux, Mac OS X) or run_protege.bat (Windows).

2. Open project Functional.pprj, go to "Drools" Tab and compile ontology. This should be done only once for this project.

3. Go to a "Clojure" Tab, select in a "Programs" list the "protege" and "fitpoints" programs and click a "Load" button. You should get a message "Loaded 2 programs from 2 selected". After that load a "Poly Moving" program using the same procedure. And only after that load the rest programs. This order of loading programs is mandatory because of dependencies between programs. These dependencies can be tracked through the "(:use ...)" statements in the namespaces of the programs ("CloNamespace" fields). Loading of programs must be done only once if you don't edit the programs, and every time when you have edited the programs. During the loading in a <DroolsTabScene_Home>/clojure folder are created .clj files for the loaded programs.

4. Return to the "Drools" Tab and create RuleBase and evaluate "Create DroTimer from RuNA" script.

5. Go to the "OpenMap" Tab and click "Play scenario" button (with a black triangle), select "Poly Moving Example" scenario and click OK.

6. Start timer and set time scale to 16:1. You should see like some Europe contries replace each other - "shuffle". To get movement and transformation smoother stop Timer and put the slider "Seconds on Timer Tick" on a lower value (min = 0.1). Start Timer again.

7. To get acquainted with the details of implementation of this example have a close look at the "Poly Moving Example" scenario and programs and functions on the Clojure Tab. Also helpful to download ClojureTab separately and become acquainted with it more closely.
    
If something goes wrong send me Windows/Linux/MacOSX console and "Drools" Tab console outputs and the problem description.

    Ru (mailto:sorokin@oogis.ru)