jade.content.abs
Class AbsPredicate

java.lang.Object
  |
  +--jade.content.abs.AbsObjectImpl
        |
        +--jade.content.abs.AbsPrimitiveSlotsHolder
              |
              +--jade.content.abs.AbsPredicate

public class AbsPredicate
extends jade.content.abs.AbsPrimitiveSlotsHolder
implements AbsContentElement, Predicate

Author:
Paola Turci, Federico Bergenti - Universita` di Parma
See Also:
Serialized Form

Constructor Summary
AbsPredicate(java.lang.String typeName)
          Construct an Abstract descriptor to hold a predicate of the proper type (e.g.
 
Method Summary
 AbsTerm getAbsTerm(java.lang.String name)
          Gets the value (casted as an AbsTerm) of an attribute of the predicate held by this abstract descriptor.
static java.lang.Class getJavaClass()
           
 void set(java.lang.String name, AbsObject value)
          Sets an attribute of the predicate held by this abstract descriptor.
 
Methods inherited from class jade.content.abs.AbsPrimitiveSlotsHolder
getBoolean, getByteSequence, getDate, getDouble, getFloat, getInteger, getLong, getString, set, set, set, set, set, set, set, set
 
Methods inherited from class jade.content.abs.AbsObjectImpl
equals, getAbsObject, getCount, getNames, getTypeName, hashCode, isGrounded, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbsPredicate

public AbsPredicate(java.lang.String typeName)
Construct an Abstract descriptor to hold a predicate of the proper type (e.g. FATHER_OF, WORKS_FOR...).
Parameters:
typeName - The name of the type of the predicate held by this abstract descriptor.
Method Detail

set

public void set(java.lang.String name,
                AbsObject value)
Sets an attribute of the predicate held by this abstract descriptor.
Overrides:
set in class AbsObjectImpl
Parameters:
name - The name of the attribute to be set.
value - The new value of the attribute.

getAbsTerm

public AbsTerm getAbsTerm(java.lang.String name)
Gets the value (casted as an AbsTerm) of an attribute of the predicate held by this abstract descriptor. This method is here mainly for backward compatibility.
Parameters:
name - The name of the attribute.
Returns:
value The value of the attribute.

getJavaClass

public static java.lang.Class getJavaClass()