9fe4d26c59
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1539 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
202 lines
11 KiB
HTML
202 lines
11 KiB
HTML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
|
|
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
|
|
|
|
<head>
|
|
<meta http-equiv="content-type" content="application/xml+xhtml; charset=utf-8" />
|
|
<title>Logtalk: Glossary</title>
|
|
<link rel="stylesheet" href="screen.css" type="text/css" media="screen"/>
|
|
<link rel="stylesheet" href="print.css" type="text/css" media="print"/>
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div class="top-left">Logtalk documentation</div>
|
|
<div class="top-right">Glossary</div>
|
|
<div class="bottom-left"><span class="page"/></div>
|
|
<div class="bottom-right"><span class="page"/></div>
|
|
<div class="navtop"><a href="index.html">contents</a></div>
|
|
|
|
<h1>Glossary</h1>
|
|
|
|
<dl>
|
|
|
|
<dt class="glossary"><strong>ancestor</strong><a id="ancestor"></a></dt>
|
|
<dd>A class or parent that contributes (via inheritance) to the definition of an object. For class-based hierarchies, the ancestors of an object are its class(es) and all the superclasses of its class(es). For prototype-based hierarchies, the ancestors of an object are its parent(s) and the ancestors of its parent(s).</dd>
|
|
|
|
<dt class="glossary"><strong>category</strong><a id="category"></a></dt>
|
|
<dd>A set of predicates directives and clauses that can be imported by any object.</dd>
|
|
|
|
<dt class="glossary"><strong>class</strong><a id="class"></a></dt>
|
|
<dd>An object that defines the common predicates of a set of objects (its instances).</dd>
|
|
|
|
<dd><dl>
|
|
|
|
<dt class="glossary"><strong>abstract class</strong><a id="abstractclass"></a></dt>
|
|
<dd>A class that cannot be instantiated. Usually used to store common predicates that are inherited by other classes.</dd>
|
|
|
|
<dt class="glossary"><strong>metaclass</strong><a id="metaclass"></a></dt>
|
|
<dd>The class of a class, when we see it as an object. Metaclass instances are themselves classes. In a reflexive system any metaclass is also an object.</dd>
|
|
|
|
<dt class="glossary"><strong>subclass</strong><a id="subclass"></a></dt>
|
|
<dd>A class that is a specialization, direct or indirectly, of another class.</dd>
|
|
|
|
<dt class="glossary"><strong>superclass</strong><a id="superclass"></a></dt>
|
|
<dd>A class from which another class is a specialization (directly or indirectly via another class).</dd>
|
|
|
|
</dl></dd>
|
|
|
|
<dt class="glossary"><strong>directive</strong><a id="directive"></a></dt>
|
|
<dd>A Prolog term that affects the interpretation of Prolog code. Directives are represented using the <code>:-/1</code> prefix operator.</dd>
|
|
|
|
<dd><dl>
|
|
|
|
<dt class="glossary"><strong>entity directive</strong><a id="entity_directive"></a></dt>
|
|
<dd>A directive that affects how Logtalk entities (objects, protocols, or categories) are used or compiled.</dd>
|
|
|
|
<dt class="glossary"><strong>predicate directive</strong><a id="predicate_directive"></a></dt>
|
|
<dd>A directive that affects how predicates are called or compiled.</dd>
|
|
|
|
<dt class="glossary"><strong>source file directive</strong><a id="source_file_directive"></a></dt>
|
|
<dd>A directive that affects how a source file is compiled.</dd>
|
|
|
|
</dl></dd>
|
|
|
|
<dt class="glossary"><strong>encapsulation</strong><a id="encapsulation"></a></dt>
|
|
<dd>The hiding of an object implementation. This promotes software reuse by isolating users from implementation details.</dd>
|
|
|
|
<dt class="glossary"><strong>entity</strong><a id="entity"></a></dt>
|
|
<dd>Generic name for Logtalk compilation units: objects, categories, and protocols.</dd>
|
|
|
|
<dt class="glossary"><strong>event</strong><a id="event"></a></dt>
|
|
<dd>The sending of a message to an object. An event can be expressed as an ordered tuple: <code>(Event, Object, Message, Sender)</code>. Logtalk distinguish between the sending of a message - <code>before</code> event - and the return of control to the sender - <code>after</code> event.</dd>
|
|
|
|
<dt class="glossary"><strong>grammar rule</strong><a id="grammar_rule"></a></dt>
|
|
<dd>An alternative notation for predicates used to parse or generate sentences on some language. This notation hides the arguments used to pass the lists of tokens being processed, thus simplifying the representation of grammars. Grammar rules are represented using the infix operator <code>-->/2</code> instead of the operator used on predicate clauses (<code>:-/2</code>).</dd>
|
|
|
|
<dd><dl>
|
|
|
|
<dt class="glossary"><strong>grammar rule non-terminal</strong><a id="non_terminal"></a></dt>
|
|
<dd>A syntactic category of words of phrases. A non-terminal is identified by its name and number of arguments using the notation <code><name>//<nargs></code>.</dd>
|
|
|
|
<dt class="glossary"><strong>grammar rule terminal</strong><a id="terminal"></a></dt>
|
|
<dd>A word or a basic symbol of a language.</dd>
|
|
|
|
</dl></dd>
|
|
|
|
<dt class="glossary"><strong>identity</strong><a id="identity"></a></dt>
|
|
<dd>Property of an entity that distinguish it from every other entity. In Logtalk an entity identity can be an atom or a compound term. All Logtalk entities (objects, protocols, and categories) share the same name space.</dd>
|
|
|
|
<dt class="glossary"><strong>inheritance</strong><a id="inheritance"></a></dt>
|
|
<dd>An object inherits predicate directives and clauses from other objects that it extends or specializes. If an object extends other object then we have a prototype-based inheritance. If an object specializes or instantiates another object we have a class-based inheritance.</dd>
|
|
|
|
<dd><dl>
|
|
|
|
<dt class="glossary"><strong>private inheritance</strong><a id="private_inheritance"></a></dt>
|
|
<dd>All public and protected predicates are inherited as private predicates.</dd>
|
|
|
|
<dt class="glossary"><strong>protected inheritance</strong><a id="protected_inheritance"></a></dt>
|
|
<dd>All public predicates are inherited as protected. No change for protected or private predicates.</dd>
|
|
|
|
<dt class="glossary"><strong>public inheritance</strong><a id="public_inheritance"></a></dt>
|
|
<dd>All inherited predicates maintain the declared scope.</dd>
|
|
|
|
</dl></dd>
|
|
|
|
<dt class="glossary"><strong>instance</strong><a id="instance"></a></dt>
|
|
<dd>The same as object. This term is used when we want to emphasize that an object characteristics are defined by another object (its class).</dd>
|
|
|
|
<dt class="glossary"><strong>instantiation</strong><a id="instantiation"></a></dt>
|
|
<dd>The process of creating a new class instance. In Logtalk does not necessarily implies dynamic creation of an object at runtime; an instance may also be defined as a static object in a source file.</dd>
|
|
|
|
<dt class="glossary"><strong>library</strong><a id="library"></a></dt>
|
|
<dd>A directory containing source files. The directory name is used as the library name.</dd>
|
|
|
|
<dt class="glossary"><strong>message</strong><a id="message"></a></dt>
|
|
<dd>A request for a service, sent to an object. In more logical terms, a message can be seen as a request for proof construction using an object's predicates.</dd>
|
|
|
|
<dt class="glossary"><strong>metainterpreter</strong><a id="metainterpreter"></a></dt>
|
|
<dd>A program capable of running other programs written in the same language.</dd>
|
|
|
|
<dt class="glossary"><strong>method</strong><a id="method"></a></dt>
|
|
<dd>Set of predicate clauses used to answer a message sent to an object. Logtalk uses dynamic binding to find which method to run to answer a message.</dd>
|
|
|
|
<dt class="glossary"><strong>monitor</strong><a id="monitor"></a></dt>
|
|
<dd>Any object that is notified when a spied event occurs. The spied events can be set by the monitor itself or by any other object.</dd>
|
|
|
|
<dt class="glossary"><strong>object</strong><a id="object"></a></dt>
|
|
<dd>An entity characterized by an identity and a set of predicate directives and clauses. In Logtalk objects can be either static or dynamic, like any other Prolog code.</dd>
|
|
|
|
<dd><dl>
|
|
|
|
<dt class="glossary"><strong>parametric object</strong><a id="parametric"></a></dt>
|
|
<dd>An object whose name is a compound term containing free variables that can be used to parameterize the object predicates.</dd>
|
|
|
|
</dl></dd>
|
|
|
|
|
|
<dt class="glossary"><strong>parent</strong><a id="parent"></a></dt>
|
|
<dd>An object that is extended by another object.</dd>
|
|
|
|
<dt class="glossary"><strong>predicate</strong><a id="predicate"></a></dt>
|
|
<dd>Predicates describe what is true about the application domain. A predicate is identified by its name and number of arguments using the notation <code><name>/<nargs></code>.</dd>
|
|
|
|
<dd><dl>
|
|
|
|
<dt class="glossary"><strong>local predicate</strong><a id="local_predicate"></a></dt>
|
|
<dd>A predicate that is defined in an object (or in a category) but that is not listed in a scope directive. These predicates behave like private predicates but are invisible to the reflection methods.</dd>
|
|
|
|
<dt class="glossary"><strong>metapredicate</strong><a id="metapredicate"></a></dt>
|
|
<dd>A predicate where one of its arguments will be called as a goal. For instance, <code>findall/3</code> and <code>call/1</code> are Prolog built-ins metapredicates.</dd>
|
|
|
|
<dt class="glossary"><strong>private predicate</strong><a id="private_predicate"></a></dt>
|
|
<dd>A predicate that can only be called from the object that contains the scope directive.</dd>
|
|
|
|
<dt class="glossary"><strong>protected predicate</strong><a id="protected_predicate"></a></dt>
|
|
<dd>A predicate that can only be called from the object containing the scope directive or from an object that inherits the predicate.</dd>
|
|
|
|
<dt class="glossary"><strong>public predicate</strong><a id="public_predicate"></a></dt>
|
|
<dd>A predicate that can be called from any object.</dd>
|
|
|
|
<dt class="glossary"><strong>visible predicate</strong><a id="visible_predicate"></a></dt>
|
|
<dd>A predicate that is declared for an object, a built-in method, or a Prolog or Logtalk built-in predicate.</dd>
|
|
|
|
</dl></dd>
|
|
|
|
<dt class="glossary"><strong>profiler</strong><a id="profiler"></a></dt>
|
|
<dd>A program that collects data about other program performance.</dd>
|
|
|
|
<dt class="glossary"><strong>protocol</strong><a id="protocol"></a></dt>
|
|
<dd>A set of predicates directives that can be implemented by an object or a category (or extended by another protocol).</dd>
|
|
|
|
<dt class="glossary"><strong>prototype</strong><a id="protocol"></a></dt>
|
|
<dd>A self-describing object that may extend or be extended by other objects.</dd>
|
|
|
|
<dt class="glossary"><strong>self</strong><a id="self"></a></dt>
|
|
<dd>The original object that received the message under processing.</dd>
|
|
|
|
<dt class="glossary"><strong>sender</strong><a id="sender"></a></dt>
|
|
<dd>An object that sends a message to other object.</dd>
|
|
|
|
<dt class="glossary"><strong>specialization</strong><a id="specialization"></a></dt>
|
|
<dd>A class is specialized by constructing a new class that inherit its predicates and possibly add new ones.</dd>
|
|
|
|
<dt class="glossary"><strong>this</strong><a id="this"></a></dt>
|
|
<dd>The object that contains the predicate clause under execution.</dd>
|
|
|
|
</dl>
|
|
|
|
<div class="footer">
|
|
<div class="navbottom"> </div>
|
|
<div class="copyright">Copyright © <a href="mailto:pmoura@logtalk.org">Paulo Moura</a> — <a href="http://www.logtalk.org">Logtalk.org</a></div>
|
|
<div class="footnote">
|
|
<span class="validators"><a href="http://validator.w3.org/check/referer">XHTML</a> + <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a></span>
|
|
<span class="date">Last updated on: November 16, 2005</span>
|
|
</div>
|
|
</div>
|
|
|
|
</body>
|
|
</html>
|