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.Modifier and Type | Field and Description |
---|---|
private Concept |
concept |
private Ontology |
onto |
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 |
---|
ConceptSlotFunction(String slotName,
Concept concept,
Ontology onto) |
Modifier and Type | Method and Description |
---|---|
Object |
apply() |
Object |
apply(Concept c) |
void |
fill(Concept c,
Object val) |
void |
fill(Object val) |
AbsObject |
getAbsObject(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.
|
String[] |
getNames() |
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 String getSlotName()
public Concept getConcept()
public AbsObject getAbsObject(String name)
AbsObjectImpl
getAbsObject
in interface AbsObject
getAbsObject
in class AbsObjectImpl
name
- The name of the attribute.AbsObject.getAbsObject(String)
public 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 Object apply() throws OntologyException
OntologyException
public Object apply(Concept c) throws OntologyException
OntologyException
public void fill(Object val) throws OntologyException
OntologyException
public void fill(Concept c, Object val) throws OntologyException
OntologyException