|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--jade.content.abs.AbsObjectImpl
|
+--jade.content.abs.AbsPrimitiveSlotsHolder
|
+--jade.content.abs.AbsConcept
An abstract descriptor that can hold a concept expression.
| Constructor Summary | |
AbsConcept(java.lang.String typeName)
Construct an Abstract descriptor to hold a concept of the proper type (e.g. |
|
| 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. |
AbsTerm |
getAbsTerm(java.lang.String name)
Gets the value of an attribute of the concept held by this abstract descriptor. |
boolean |
getBoolean(java.lang.String name)
Utility method that allows getting the value of attributes of type boolean directly as a boolean
i.e. |
byte[] |
getByteSequence(java.lang.String name)
Utility method that allows getting the value of attributes of type byte[] directly as a byte[]
i.e. |
int |
getCount()
Gets the number of attributes. |
java.util.Date |
getDate(java.lang.String name)
Utility method that allows getting the value of attributes of type Date directly as a Date
i.e. |
double |
getDouble(java.lang.String name)
Utility method that allows getting the value of attributes of type double directly as a double
i.e. |
float |
getFloat(java.lang.String name)
Utility method that allows getting the value of attributes of type float directly as a float
i.e. |
int |
getInteger(java.lang.String name)
Utility method that allows getting the value of attributes of type int directly as an int
i.e. |
static java.lang.Class |
getJavaClass()
|
long |
getLong(java.lang.String name)
Utility method that allows getting the value of attributes of type long directly as a long
i.e. |
java.lang.String[] |
getNames()
|
java.lang.String |
getString(java.lang.String name)
Utility method that allows getting the value of attributes of type String directly as a String
i.e. |
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. |
void |
set(java.lang.String name,
AbsTerm value)
Sets an attribute of the concept held by this abstract descriptor. |
void |
set(java.lang.String name,
boolean value)
Utility method that allows setting attributes of type boolean without the need of wrapping the new value
into an AbsPrimitive. |
void |
set(java.lang.String name,
byte[] value)
Utility method that allows setting attributes of type byte[] without the need of wrapping the new value
into an AbsPrimitive. |
void |
set(java.lang.String name,
java.util.Date value)
Utility method that allows setting attributes of type Date without the need of wrapping the new value
into an AbsPrimitive. |
void |
set(java.lang.String name,
double value)
Utility method that allows setting attributes of type double without the need of wrapping the new value
into an AbsPrimitive. |
void |
set(java.lang.String name,
float value)
Utility method that allows setting attributes of type float without the need of wrapping the new value
into an AbsPrimitive. |
void |
set(java.lang.String name,
int value)
Utility method that allows setting attributes of type int without the need of wrapping the new value
into an AbsPrimitive. |
void |
set(java.lang.String name,
long value)
Utility method that allows setting attributes of type long without the need of wrapping the new value
into an AbsPrimitive. |
void |
set(java.lang.String name,
java.lang.String value)
Utility method that allows setting attributes of type String without the need of wrapping the new value
into an AbsPrimitive. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface jade.content.abs.AbsObject |
getAbsObject, getCount, getNames, getTypeName, isGrounded |
| Constructor Detail |
public AbsConcept(java.lang.String typeName)
typeName - The name of the type of the concept held by
this abstract descriptor.| Method Detail |
public void set(java.lang.String name,
AbsTerm value)
name - The name of the attribute to be set.value - The new value of the attribute.public AbsTerm getAbsTerm(java.lang.String name)
name - The name of the attribute.
public static java.lang.Class getJavaClass()
public void set(java.lang.String name,
java.lang.String value)
String without the need of wrapping the new value
into an AbsPrimitive.
name - The name of the attribute to be set.value - The new value of the attribute.
public void set(java.lang.String name,
boolean value)
boolean without the need of wrapping the new value
into an AbsPrimitive.
name - The name of the attribute to be set.value - The new value of the attribute.
public void set(java.lang.String name,
int value)
int without the need of wrapping the new value
into an AbsPrimitive.
name - The name of the attribute to be set.value - The new value of the attribute.
public void set(java.lang.String name,
long value)
long without the need of wrapping the new value
into an AbsPrimitive.
name - The name of the attribute to be set.value - The new value of the attribute.
public void set(java.lang.String name,
float value)
float without the need of wrapping the new value
into an AbsPrimitive.
name - The name of the attribute to be set.value - The new value of the attribute.
public void set(java.lang.String name,
double value)
double without the need of wrapping the new value
into an AbsPrimitive.
name - The name of the attribute to be set.value - The new value of the attribute.
public void set(java.lang.String name,
java.util.Date value)
Date without the need of wrapping the new value
into an AbsPrimitive.
name - The name of the attribute to be set.value - The new value of the attribute.
public void set(java.lang.String name,
byte[] value)
byte[] without the need of wrapping the new value
into an AbsPrimitive.
name - The name of the attribute to be set.value - The new value of the attribute.public java.lang.String getString(java.lang.String name)
String directly as a String
i.e. not wrapped into an AbsPrimitive/code>.
- Parameters:
name - The name of the attribute to be retrieved.
public boolean getBoolean(java.lang.String name)
boolean directly as a boolean
i.e. not wrapped into an AbsPrimitive/code>.
- Parameters:
name - The name of the attribute to be retrieved.
public int getInteger(java.lang.String name)
int directly as an int
i.e. not wrapped into an AbsPrimitive/code>.
- Parameters:
name - The name of the attribute to be retrieved.
public long getLong(java.lang.String name)
long directly as a long
i.e. not wrapped into an AbsPrimitive/code>.
- Parameters:
name - The name of the attribute to be retrieved.
public float getFloat(java.lang.String name)
float directly as a float
i.e. not wrapped into an AbsPrimitive/code>.
- Parameters:
name - The name of the attribute to be retrieved.
public double getDouble(java.lang.String name)
double directly as a double
i.e. not wrapped into an AbsPrimitive/code>.
- Parameters:
name - The name of the attribute to be retrieved.
public java.util.Date getDate(java.lang.String name)
Date directly as a Date
i.e. not wrapped into an AbsPrimitive/code>.
- Parameters:
name - The name of the attribute to be retrieved.
public byte[] getByteSequence(java.lang.String name)
byte[] directly as a byte[]
i.e. not wrapped into an AbsPrimitive/code>.
- Parameters:
name - The name of the attribute to be retrieved.
public java.lang.String getTypeName()
getTypeName in interface AbsObjectAbsObject.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 AbsObjectname - The name of the attribute.
AbsObject.getAbsObject(String)public java.lang.String[] getNames()
getNames in interface AbsObjectAbsObject.getNames()public boolean isGrounded()
isGrounded in interface AbsObjecttrue if the object is grounded.AbsObject.isGrounded()public int getCount()
getCount in interface AbsObjectAbsObject.getCount()public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||