All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface jtelos.NamedObject

public interface NamedObject
This is a common superinterface for individuals, attributes and primitive literals in Telos. The first two types are represented in Java by the subinterface Proposition and the latter are represented in Java by the abstract class PrimitiveLiteral.

See Also:
Proposition, PrimitiveLiteral

Method Index

 o telosName()
The internal Telos name of the object.
 o toString()
Returns telosName();

Methods

 o telosName
 public abstract String telosName()
The internal Telos name of the object. This is part of the object's declaration, whether this is done lexically (by an input file) or other means (say directly through the API itself). Some implementations may also have an internal identifier (like jtelos' TelosID integer).

The string returned by this method indicates a unique identifier for the object within the context of a particular KB. Thus objects with the same name (and potentially different definitions) may exist in different KB's.

For non-primitive individuals, this name is simply the one that appears in the input file. For Telos String literals, it is the content of the string, within double quotation marks. For Telos Integer and Real literals, it is the string representation of the number (not surrounded by quotation marks).

For attributes and attribute classes, the name is composed of:

  1. The Telos name of the attribute's declarer, followed by
  2. a ".", followed by
  3. the labels of its categories (each separated by a comma), followed by
  4. a ".", followed by
  5. the label of the attribute itself, followed by
  6. a ":", followed by
  7. The Telos name of the attribute's target.

For instance, examine the following declarations:

   SimpleClass MySimpleClass
       WITH
           myAttrCat1, myAttrCat2
               myAttribute : MySimpleClass
   END

The attribute myAttribute can be uniquely identified in a KB by the string:

"MySimpleClass.myAttrCat1,myAttrCat2.myAttribute:MySimpleClass"

 o toString
 public abstract String toString()
Returns telosName();

Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index