|
Revision 4662, 1.3 KB
(checked in by pmoura, 6 days ago)
|
|
Updated copyright notice.
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
| Line | |
|---|
| 1 | ================================================================ |
|---|
| 2 | Logtalk - Open source object-oriented logic programming language |
|---|
| 3 | Release 2.35.0 |
|---|
| 4 | |
|---|
| 5 | Copyright (c) 1998-2009 Paulo Moura. All Rights Reserved. |
|---|
| 6 | Logtalk is free software. You can redistribute it and/or modify |
|---|
| 7 | it under the terms of the "Artistic License 2.0" as published by |
|---|
| 8 | The Perl Foundation. Consult the "LICENSE.txt" file for details. |
|---|
| 9 | ================================================================ |
|---|
| 10 | |
|---|
| 11 | |
|---|
| 12 | To load this example and for sample queries, please see the SCRIPT.txt file. |
|---|
| 13 | |
|---|
| 14 | You will also need to load the following files in the library directory: |
|---|
| 15 | events_loader, types_loader, metapredicates_loader, and hierarchies_loader. |
|---|
| 16 | Alternatively, you may load the library all_loader file to load all library |
|---|
| 17 | entities. |
|---|
| 18 | |
|---|
| 19 | This folder contains an example of representation and handling of |
|---|
| 20 | relations using events. We have instances of class brick and a binary |
|---|
| 21 | brick_stack relation between the bricks. Every time we move a brick, we |
|---|
| 22 | want the bricks on top of it to move along. If we break the stack by |
|---|
| 23 | moving a middle brick, we want to automatically destroy the |
|---|
| 24 | corresponding relation tuple. |
|---|
| 25 | |
|---|
| 26 | It's instructive to use the event debugger in the Logtalk library (loader |
|---|
| 27 | file debugging_loader.lgt) to better understand this example. Set spy points |
|---|
| 28 | in all brick instances and then activate the debugger. |
|---|