Package jade.content.abs
Class AbsVariable
- java.lang.Object
-
- jade.content.abs.AbsObjectImpl
-
- jade.content.abs.AbsVariable
-
- All Implemented Interfaces:
AbsObject,AbsTerm,Term,Serializable,Serializable
public class AbsVariable extends AbsObjectImpl implements AbsTerm
An abstract descriptor that can hold a variable expression, i.e. an entity that is not known yet.- 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 AbsVariable()Construct an Abstract descriptor to hold a variableAbsVariable(String name, String valueType)Construct an AbsVariable with the given name and value type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetAbsType()static Class<?>getJavaClass()StringgetName()Gets the name of this variable.StringgetType()Gets the value type of this variable.booleanisGrounded()Redefine theisGrounded()method in order to always returnfalse.booleanisMetaTerm()Return true if this object represents a meta term (i.e.voidsetIsMetaTerm(boolean isMeta)Sets the value of isMetaTerm, where the default is false.voidsetName(String name)Sets the name of this variable.voidsetType(String valueType)Sets the value type of this variable.-
Methods inherited from class jade.content.abs.AbsObjectImpl
equals, getAbsObject, getAbsObject, getCount, getNames, getTypeName, getValues, hashCode, set, 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
-
-
-
-
Method Detail
-
setName
public void setName(String name)
Sets the name of this variable.- Parameters:
name- The new name of this variable.
-
setType
public void setType(String valueType)
Sets the value type of this variable.- Parameters:
valueType- The type of values that can be assigned to this variable.
-
getName
public String getName()
Gets the name of this variable.- Returns:
- The name of this variable.
-
getType
public String getType()
Gets the value type of this variable.- Returns:
- The type of values that can be assigned to this variable.
-
isGrounded
public boolean isGrounded()
Redefine theisGrounded()method in order to always returnfalse.- Specified by:
isGroundedin interfaceAbsObject- Overrides:
isGroundedin classAbsObjectImpl- Returns:
trueif the object is grounded.- See Also:
AbsObject.isGrounded()
-
getJavaClass
public static Class<?> getJavaClass()
-
isMetaTerm
public final boolean isMetaTerm()
Return true if this object represents a meta term (i.e. symbol ??x) rather than a concrete variable. This method is currently used only by the semantics framework.- Returns:
- true if this object represents a meta term
- Since:
- JADE3.4
-
setIsMetaTerm
public final void setIsMetaTerm(boolean isMeta)
Sets the value of isMetaTerm, where the default is false. This method is currently used only by the semantics framework.- Since:
- JADE3.4
-
getAbsType
public int getAbsType()
- Specified by:
getAbsTypein interfaceAbsObject- Overrides:
getAbsTypein classAbsObjectImpl
-
-