|
Revision 365, 0.5 KB
(checked in by pmoura, 6 years ago)
|
|
Changed "authors" key in info/1 directive to "author".
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
| Line | |
|---|
| 1 | |
|---|
| 2 | :- protocol(proto_hierarchyp, |
|---|
| 3 | extends(hierarchyp)). |
|---|
| 4 | |
|---|
| 5 | |
|---|
| 6 | :- info([ |
|---|
| 7 | version is 1.0, |
|---|
| 8 | author is 'Paulo Moura', |
|---|
| 9 | date is 2000/7/24, |
|---|
| 10 | comment is 'Prototype hierarchy protocol.']). |
|---|
| 11 | |
|---|
| 12 | |
|---|
| 13 | :- public(parent/1). |
|---|
| 14 | |
|---|
| 15 | :- mode(parent(?object), zero_or_more). |
|---|
| 16 | |
|---|
| 17 | :- info(parent/1, [ |
|---|
| 18 | comment is 'Returns, by backtracking, all object parents.', |
|---|
| 19 | argnames is ['Parent']]). |
|---|
| 20 | |
|---|
| 21 | |
|---|
| 22 | :- public(parents/1). |
|---|
| 23 | |
|---|
| 24 | :- mode(parents(-list), one). |
|---|
| 25 | |
|---|
| 26 | :- info(parents/1, [ |
|---|
| 27 | comment is 'List of all object parents.', |
|---|
| 28 | argnames is ['Parents']]). |
|---|
| 29 | |
|---|
| 30 | |
|---|
| 31 | :- end_protocol. |
|---|