jade.content.abs
Interface AbsObject

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

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_CONCEPT_SLOT_FUNCTION
           
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

static final int UNKNOWN
See Also:
Constant Field Values

ABS_PREDICATE

static final int ABS_PREDICATE
See Also:
Constant Field Values

ABS_CONCEPT

static final int ABS_CONCEPT
See Also:
Constant Field Values

ABS_AGENT_ACTION

static final int ABS_AGENT_ACTION
See Also:
Constant Field Values

ABS_PRIMITIVE

static final int ABS_PRIMITIVE
See Also:
Constant Field Values

ABS_AGGREGATE

static final int ABS_AGGREGATE
See Also:
Constant Field Values

ABS_IRE

static final int ABS_IRE
See Also:
Constant Field Values

ABS_VARIABLE

static final int ABS_VARIABLE
See Also:
Constant Field Values

ABS_CONTENT_ELEMENT_LIST

static final int ABS_CONTENT_ELEMENT_LIST
See Also:
Constant Field Values

ABS_CONCEPT_SLOT_FUNCTION

static final int ABS_CONCEPT_SLOT_FUNCTION
See Also:
Constant Field Values
Method Detail

getTypeName

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

getAbsObject

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

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

isGrounded

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

int getCount()
Gets the number of attributes.

Returns:
the number of attributes.

getAbsType

int getAbsType()


These are the official JADE API. For these API backward compatibility is guaranteed accross JADE versions