Package jade.content.abs
Class AbsConcept
- java.lang.Object
-
- jade.content.abs.AbsObjectImpl
-
- jade.content.abs.AbsPrimitiveSlotsHolder
-
- jade.content.abs.AbsConcept
-
- All Implemented Interfaces:
AbsObject,AbsTerm,Concept,Term,Serializable,Serializable
- Direct Known Subclasses:
AbsAgentAction,AbsAggregate,AbsConceptSlotFunction
public class AbsConcept extends AbsPrimitiveSlotsHolder implements AbsTerm, Concept
An abstract descriptor that can hold a concept expression.- Author:
- Federico Bergenti - Universita` di Parma
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface jade.content.abs.AbsObject
ABS_AGENT_ACTION, ABS_AGGREGATE, ABS_CONCEPT, ABS_CONCEPT_SLOT_FUNCTION, ABS_CONTENT_ELEMENT_LIST, ABS_IRE, ABS_PREDICATE, ABS_PRIMITIVE, ABS_REFERENCE, ABS_VARIABLE, UNKNOWN
-
-
Constructor Summary
Constructors Constructor Description AbsConcept(String typeName)Construct an Abstract descriptor to hold a concept of the proper type (e.g.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AbsTermgetAbsTerm(String name)Gets the value of an attribute of the concept held by this abstract descriptor.intgetAbsType()static ClassgetJavaClass()voidset(String name, AbsTerm value)Sets an attribute of the concept 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, set
-
Methods inherited from class jade.content.abs.AbsObjectImpl
equals, getAbsObject, getAbsObject, getCount, getNames, getTypeName, getValues, hashCode, isGrounded, 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
-
AbsConcept
public AbsConcept(String typeName)
Construct an Abstract descriptor to hold a concept of the proper type (e.g. PERSON, ADDRESS...).- Parameters:
typeName- The name of the type of the concept held by this abstract descriptor.
-
-
Method Detail
-
set
public void set(String name, AbsTerm value)
Sets an attribute of the concept held by this abstract descriptor.- Parameters:
name- The name of the attribute to be set.value- The new value of the attribute.
-
getAbsTerm
public AbsTerm getAbsTerm(String name)
Gets the value of an attribute of the concept held by this abstract descriptor.- Parameters:
name- The name of the attribute.- Returns:
- value The value of the attribute.
-
getJavaClass
public static Class getJavaClass()
-
getAbsType
public int getAbsType()
- Specified by:
getAbsTypein interfaceAbsObject- Overrides:
getAbsTypein classAbsObjectImpl
-
-