public class AbsVariable extends AbsObjectImpl implements AbsTerm
Modifier and Type | Field and Description |
---|---|
private static Class |
absVariableClass |
private boolean |
isMeta |
ABS_AGENT_ACTION, ABS_AGGREGATE, ABS_CONCEPT, ABS_CONCEPT_SLOT_FUNCTION, ABS_CONTENT_ELEMENT_LIST, ABS_IRE, ABS_PREDICATE, ABS_PRIMITIVE, ABS_VARIABLE, UNKNOWN
Constructor and Description |
---|
AbsVariable()
Construct an Abstract descriptor to hold a variable
|
AbsVariable(String name,
String valueType)
Construct an AbsVariable with the given name and value type
|
Modifier and Type | Method and Description |
---|---|
int |
getAbsType() |
static Class |
getJavaClass() |
String |
getName()
Gets the name of this variable.
|
String |
getType()
Gets the value type of this variable.
|
boolean |
isGrounded()
Redefine the
isGrounded() method in order to
always return false . |
boolean |
isMetaTerm()
Return true if this object represents a meta term (i.e.
|
void |
setIsMetaTerm(boolean isMeta)
Sets the value of isMetaTerm, where the default is false.
|
void |
setName(String name)
Sets the name of this variable.
|
void |
setType(String valueType)
Sets the value type of this variable.
|
equals, getAbsObject, getCount, getNames, getTypeName, hashCode, set, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAbsObject, getCount, getNames, getTypeName
private boolean isMeta
private static Class absVariableClass
public AbsVariable()
public void setName(String name)
name
- The new name of this variable.public void setType(String valueType)
valueType
- The type of values that can be assigned to
this variable.public String getName()
public String getType()
public boolean isGrounded()
isGrounded()
method in order to
always return false
.isGrounded
in interface AbsObject
isGrounded
in class AbsObjectImpl
true
if the object is grounded.AbsObject.isGrounded()
public static Class getJavaClass()
public final boolean isMetaTerm()
public final void setIsMetaTerm(boolean isMeta)
public int getAbsType()
getAbsType
in interface AbsObject
getAbsType
in class AbsObjectImpl