public class ConceptSlotFunction extends AbsConceptSlotFunction
Person
with a slot name
and a slot age
,
it is possible to create expressions such asuseConceptSlotsAsFunctions
method of the Ontology
class.ABS_AGENT_ACTION, ABS_AGGREGATE, ABS_CONCEPT, ABS_CONCEPT_SLOT_FUNCTION, ABS_CONTENT_ELEMENT_LIST, ABS_IRE, ABS_PREDICATE, ABS_PRIMITIVE, ABS_VARIABLE, UNKNOWN
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
apply() |
java.lang.Object |
apply(Concept c) |
void |
fill(Concept c,
java.lang.Object val) |
void |
fill(java.lang.Object val) |
AbsObject |
getAbsObject(java.lang.String name)
Gets the value of an attribute of the object held by this
abstract descriptor.
|
Concept |
getConcept() |
int |
getCount()
Gets the number of attributes.
|
java.lang.String[] |
getNames() |
java.lang.String |
getSlotName() |
boolean |
isGrounded()
Tests if the object is grounded, i.e., if no one of its attributes
is associated with a variable
|
getAbsType
getAbsTerm, getJavaClass, set
getBoolean, getByteSequence, getDate, getDouble, getFloat, getInteger, getLong, getString, set, set, set, set, set, set, set, set, set
equals, getTypeName, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getTypeName
public java.lang.String getSlotName()
public Concept getConcept()
public AbsObject getAbsObject(java.lang.String name)
AbsObjectImpl
getAbsObject
in interface AbsObject
getAbsObject
in class AbsObjectImpl
name
- The name of the attribute.AbsObject.getAbsObject(String)
public java.lang.String[] getNames()
getNames
in interface AbsObject
getNames
in class AbsObjectImpl
AbsObject.getNames()
public boolean isGrounded()
AbsObjectImpl
isGrounded
in interface AbsObject
isGrounded
in class AbsObjectImpl
true
if the object is grounded.AbsObject.isGrounded()
public int getCount()
AbsObjectImpl
getCount
in interface AbsObject
getCount
in class AbsObjectImpl
AbsObject.getCount()
public java.lang.Object apply() throws OntologyException
OntologyException
public java.lang.Object apply(Concept c) throws OntologyException
OntologyException
public void fill(java.lang.Object val) throws OntologyException
OntologyException
public void fill(Concept c, java.lang.Object val) throws OntologyException
OntologyException