jade.content.abs
Interface AbsObject

All Superinterfaces:
Serializable, java.io.Serializable
All Known Subinterfaces:
AbsContentElement, AbsTerm
All Known Implementing Classes:
AbsAgentAction, AbsConcept, AbsContentElementList, AbsIRE, AbsObjectImpl, AbsPredicate, AbsPrimitive, AbsVariable

public interface AbsObject
extends Serializable

The common ancestor of all abstract descriptors

Author:
Federico Bergenti - Universita` di Parma, Giovanni Caire - TILAB

Field Summary
static int ABS_AGENT_ACTION
           
static int ABS_AGGREGATE
           
static int ABS_CONCEPT
           
static int ABS_CONTENT_ELEMENT_LIST
           
static int ABS_IRE
           
static int ABS_PREDICATE
           
static int ABS_PRIMITIVE
           
static int ABS_VARIABLE
           
static int UNKNOWN
           
 
Method Summary
 AbsObject getAbsObject(java.lang.String name)
          Gets the value of an attribute of the object held by this abstract descriptor.
 int getAbsType()
           
 int getCount()
          Gets the number of attributes.
 java.lang.String[] getNames()
           
 java.lang.String getTypeName()
           
 boolean isGrounded()
          Tests if the object is grounded, i.e., if no one of its attributes is associated with a variable
 

Field Detail

UNKNOWN

public static final int UNKNOWN
See Also:
Constant Field Values

ABS_PREDICATE

public static final int ABS_PREDICATE
See Also:
Constant Field Values

ABS_CONCEPT

public static final int ABS_CONCEPT
See Also:
Constant Field Values

ABS_AGENT_ACTION

public static final int ABS_AGENT_ACTION
See Also:
Constant Field Values

ABS_PRIMITIVE

public static final int ABS_PRIMITIVE
See Also:
Constant Field Values

ABS_AGGREGATE

public static final int ABS_AGGREGATE
See Also:
Constant Field Values

ABS_IRE

public static final int ABS_IRE
See Also:
Constant Field Values

ABS_VARIABLE

public static final int ABS_VARIABLE
See Also:
Constant Field Values

ABS_CONTENT_ELEMENT_LIST

public static final int ABS_CONTENT_ELEMENT_LIST
See Also:
Constant Field Values
Method Detail

getTypeName

public java.lang.String getTypeName()
Returns:
The name of the type of the object held by this abstract descriptor.

getAbsObject

public AbsObject getAbsObject(java.lang.String name)
Gets the value of an attribute of the object held by this abstract descriptor.

Parameters:
name - The name of the attribute.
Returns:
value The value of the attribute.

getNames

public java.lang.String[] getNames()
Returns:
the name of all attributes.

isGrounded

public boolean isGrounded()
Tests if the object is grounded, i.e., if no one of its attributes is associated with a variable

Returns:
true if the object is grounded.

getCount

public int getCount()
Gets the number of attributes.

Returns:
the number of attributes.

getAbsType

public int getAbsType()


JADE