root/tags/lgt2212/examples/NOTES

Revision 1540, 4.2 KB (checked in by pmoura, 4 years ago)

Updated release number to 2.21.2.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1=================================================================
2Logtalk - Object oriented extension to Prolog
3Release 2.21.2
4
5Copyright (c) 1998-2004 Paulo Moura.  All Rights Reserved.
6=================================================================
7
8
9This folder contains several examples of Logtalk programs. A brief
10description of each example is included below.
11
12Each example folder contains a NOTES file and a loader helper file which
13may be used to load all the example entities. In addition, most examples
14contain a SCRIPT file with sample queries for your to try.
15
16Most of these examples need objects, protocols, and categories which are
17defined in the Logtalk standard library or in other examples, so you
18should load them first (see the NOTES files inside the library folder and
19the NOTES file inside each example folder).
20
21Some examples may redefine objects already loaded from other examples.
22You may want to restart Logtalk after trying each example.
23
24Some of the examples code have been adopted from public available Prolog
25code and from known Prolog text books and are copyrighted by the respective
26authors.
27
28These are programming examples, meaning that you should study the source
29files to fully understand them.
30
31All examples are formatted using four spaces tabs.
32
33By default, compiling an example generates a .xml documenting file for each
34compiled entity (object, category, or protocol). See the xml folder for
35instructions on how to browse the .xml files for on-line reading or how to
36convert the files to a print-ready format such as PDF.
37
38
39Here is a short description of each included example:
40
41aliases
42    example of using the alias/3 predicate directive to provide alternative
43    names to inherited predicates in order to improve readability
44
45birds
46    bird identification expert system
47    example adopted from the Adventure in Prolog Amzi! book
48
49bricks
50    example of representation and handling of relations using events
51
52classvars
53    example of implementation of class variables (as found in Smalltalk)
54
55dcgs
56    examples of using DCG rules inside objects and categories
57
58diamonds
59    examples of problems and solutions for the "diamond problem"
60    (multi-inheritance conflicts and ambiguities)
61
62dynpred
63    example of using some of the built-in database handling methods
64
65engines
66    example of category composition (importation of categories by other
67    categories) using car engines
68
69errors
70    example showing the Logtalk compiler warning and error reporting
71
72inheritance
73    examples of public, protected and private inheritance with both
74    prototypes and classes/instances
75
76instmethods
77    example of instance defined methods
78
79lo
80    examples adopted from the Francis G. McCabe L&O system
81
82logic
83    example of a translator of logic propositions to clauses in conjunctive
84    normal form
85
86lpa
87    examples adopted from the LPA Prolog++ system
88
89metapredicates
90    example of using metapredicates in Logtalk objects
91
92metainterpreters
93    some examples of simple metainterpreters
94
95mi
96    multi-inheritance examples
97
98miscellaneous
99    unsorted examples
100
101msglog
102    example of using events and monitors for recording, replaying, and
103    printing user messages
104
105operators
106    example of using operators local to objects and categories
107
108parametric
109    simple example of parametric objects
110
111poem
112    examples adopted from the Ben Staveley-Taylor POEM system
113
114points
115    example adopted from SICStus Objects documentation
116
117polygons
118    example of representation and handling of relations using events
119
120profiling
121    examples of using of events and monitors to implement profilers
122
123puzzles
124    several examples of logical puzzles
125
126reflection
127    example of a simple class-based reflective system
128
129relations
130    objects implementing predicates for dealing with relations and
131    constrained relations between objects
132
133roots
134    objects, protocols and categories needed by most of the other examples
135
136searching
137    state-space searching framework
138    example adopted from Ivan Bratko's "Prolog Programming for Artificial
139    Intelligence" book
140
141shapes
142    geometric shapes implemented as both a prototype hierarchy and a class
143    hierarchy
144
145sicstus
146    examples adopted from SICStus Objects documentation
147
148symdiff
149    example of using parametric objects to implement symbolic expression
150    differentiation and simplification
151
152viewpoints
153    example on how to implement property and value sharing with prototypes
Note: See TracBrowser for help on using the browser.