|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jade.content.abs.AbsObjectImpl
Base class for all non-primitive abstract descriptor classes. This class is not intended to be used by programmers.
Field Summary |
Fields inherited from interface jade.content.abs.AbsObject |
ABS_AGENT_ACTION, ABS_AGGREGATE, ABS_CONCEPT, ABS_CONTENT_ELEMENT_LIST, ABS_IRE, ABS_PREDICATE, ABS_PRIMITIVE, ABS_VARIABLE, UNKNOWN |
Constructor Summary | |
protected |
AbsObjectImpl(java.lang.String typeName)
Construct an Abstract descriptor to hold an object of the proper type. |
Method Summary | |
boolean |
equals(java.lang.Object obj)
Returns true if the attribute is equal to this abstract descriptor, based on the contents of both descriptors. |
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()
|
int |
hashCode()
Returns an integer hashcode calculated from the contents of this abstract descriptor |
boolean |
isGrounded()
Tests if the object is grounded, i.e., if no one of its attributes is associated with a variable |
protected void |
set(java.lang.String name,
AbsObject value)
Sets an attribute of the object held by this abstract descriptor. |
java.lang.String |
toString()
This method is here just for debugging. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
protected AbsObjectImpl(java.lang.String typeName)
typeName
- The name of the type of the object held by this
abstract descriptor.Method Detail |
public java.lang.String getTypeName()
getTypeName
in interface AbsObject
AbsObject.getTypeName()
protected void set(java.lang.String name, AbsObject value)
name
- The name of the attribute to be set.value
- The new value of the attribute. If value
is null the current mapping with name
(if any) is
removed.public AbsObject getAbsObject(java.lang.String name)
getAbsObject
in interface AbsObject
name
- The name of the attribute.
AbsObject.getAbsObject(String)
public java.lang.String[] getNames()
getNames
in interface AbsObject
AbsObject.getNames()
public boolean isGrounded()
isGrounded
in interface AbsObject
true
if the object is grounded.AbsObject.isGrounded()
public int getCount()
getCount
in interface AbsObject
AbsObject.getCount()
public java.lang.String toString()
toString
in class java.lang.Object
StringCodec.encode(AbsContentElement content)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int getAbsType()
getAbsType
in interface AbsObject
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |