| 1 | ================================================================= |
|---|
| 2 | Logtalk - Object oriented extension to Prolog |
|---|
| 3 | Release 2.9.0 |
|---|
| 4 | |
|---|
| 5 | Copyright (c) 1998-2001 Paulo Moura. All Rights Reserved. |
|---|
| 6 | ================================================================= |
|---|
| 7 | |
|---|
| 8 | This folder contains several examples of Logtalk programs. Most of |
|---|
| 9 | these examples need objects, protocols and categories that are |
|---|
| 10 | defined in the Logtalk standard library or in other examples, so |
|---|
| 11 | you should load them first (see the NOTES file inside each example |
|---|
| 12 | folder). |
|---|
| 13 | |
|---|
| 14 | Some examples may redefine objects already loaded from other examples. |
|---|
| 15 | You may want to restart Logtalk after trying each example. |
|---|
| 16 | |
|---|
| 17 | Some of the examples code have been adopted from public available |
|---|
| 18 | Prolog code and from known Prolog text books and are copyrighted by |
|---|
| 19 | the respective authors. |
|---|
| 20 | |
|---|
| 21 | These are programming examples, meaning that you should look at the |
|---|
| 22 | source files to fully understand them. |
|---|
| 23 | |
|---|
| 24 | All examples are formatted using four spaces tabs. |
|---|
| 25 | |
|---|
| 26 | |
|---|
| 27 | Here is a short description of each included example: |
|---|
| 28 | |
|---|
| 29 | birds |
|---|
| 30 | bird identification expert system |
|---|
| 31 | example adopted from the Adventure in Prolog Amzi! book |
|---|
| 32 | |
|---|
| 33 | bricks |
|---|
| 34 | example of representation and handling of relations using events |
|---|
| 35 | |
|---|
| 36 | classvars |
|---|
| 37 | example of implementation of class variables (as found in Smalltalk) |
|---|
| 38 | |
|---|
| 39 | errors |
|---|
| 40 | example showing the Logtalk compiler warning and error reporting |
|---|
| 41 | |
|---|
| 42 | inheritance |
|---|
| 43 | examples of public, protected and private inheritance with both |
|---|
| 44 | prototypes and classes/instances |
|---|
| 45 | |
|---|
| 46 | instmethods |
|---|
| 47 | example of instance defined methods |
|---|
| 48 | |
|---|
| 49 | lo |
|---|
| 50 | examples adopted from the Francis G. McCabe L&O system |
|---|
| 51 | |
|---|
| 52 | lpa |
|---|
| 53 | examples adopted from the LPA Prolog++ system |
|---|
| 54 | |
|---|
| 55 | metapredicates |
|---|
| 56 | example of using metapredicates in Logtalk objects |
|---|
| 57 | |
|---|
| 58 | mi |
|---|
| 59 | multi-inheritance examples |
|---|
| 60 | |
|---|
| 61 | miscellaneous |
|---|
| 62 | unsorted examples |
|---|
| 63 | |
|---|
| 64 | parametric |
|---|
| 65 | simple example of parametric objects |
|---|
| 66 | |
|---|
| 67 | poem |
|---|
| 68 | examples adopted from the Ben Staveley-Taylor POEM system |
|---|
| 69 | |
|---|
| 70 | points |
|---|
| 71 | example adopted from SICStus Objects documentation |
|---|
| 72 | |
|---|
| 73 | polygons |
|---|
| 74 | example of representation and handling of relations using events |
|---|
| 75 | |
|---|
| 76 | profiling |
|---|
| 77 | examples of using of events and monitors to implement profilers |
|---|
| 78 | |
|---|
| 79 | reflection |
|---|
| 80 | example of a simple class-based reflective system |
|---|
| 81 | |
|---|
| 82 | relations |
|---|
| 83 | objects implementing predicates for dealing with relations and |
|---|
| 84 | constrained relations between objects |
|---|
| 85 | |
|---|
| 86 | roots |
|---|
| 87 | objects, protocols and categories needed by most of the other examples |
|---|
| 88 | |
|---|
| 89 | searching |
|---|
| 90 | state-space searching frame work |
|---|
| 91 | example adopted from Ivan Bratko's "Prolog Programming for Artificial |
|---|
| 92 | Intelligence" book |
|---|
| 93 | |
|---|
| 94 | sicstus |
|---|
| 95 | examples adopted from SICStus Objects documentation |
|---|
| 96 | |
|---|
| 97 | symdiff |
|---|
| 98 | example of using parametric objects to implement symbolic expression |
|---|
| 99 | differentiation and simplification |
|---|
| 100 | |
|---|
| 101 | viewpoints |
|---|
| 102 | example on how to implement property and value sharing with prototypes |
|---|