Package | Description |
---|---|
casa.jade | |
jade.content | |
jade.content.abs | |
jade.content.onto | |
jade.content.onto.basic | |
jade.content.schema | |
jade.content.schema.facets |
Modifier and Type | Method and Description |
---|---|
private AbsContentElement |
ContentManager.decode(ACLMessage msg,
Codec codec,
Ontology onto)
Deprecated.
|
private AbsContentElement |
ContentManager.decode(Object buf,
Codec codec,
Ontology onto)
Deprecated.
|
private Object |
ContentManager.encode(AbsContentElement content,
Codec codec,
Ontology onto)
Deprecated.
|
private void |
ContentManager.encode(ACLMessage msg,
AbsContentElement content,
Codec codec,
Ontology onto)
Deprecated.
|
AbsContentElement |
ContentManager.extractAbsContent(ACLMessage msg)
Deprecated.
Translates the
:content slot of an
ACLMessage msg into an AbsContentElement
using the content language and ontology indicated in the
:language and :ontology fields of msg . |
AbsContentElement |
ContentManager.extractAbsContent(MLMessage msg)
Deprecated.
Translates the
:content slot of an
ACLMessage msg into an AbsContentElement
using the content language and ontology indicated in the
:language and :ontology fields of msg . |
ContentElement |
ContentManager.extractContent(ACLMessage msg)
Deprecated.
Translates the
:content slot of an
ACLMessage msg into a ContentElement
using the content language and ontology indicated in the
:language and :ontology fields of msg . |
void |
ContentManager.fillContent(ACLMessage msg,
AbsContentElement content)
Deprecated.
Fills the
:content slot of an
ACLMessage msg using the content language
and ontology indicated in the :language and
:ontology fields of msg . |
void |
ContentManager.fillContent(ACLMessage msg,
ContentElement content)
Deprecated.
Fills the
:content slot of an
ACLMessage msg using the content language
and ontology indicated in the :language and
:ontology fields of msg . |
AbsContentElement |
ContentManager.getAbs(String codecName,
String ontoName,
String exp)
Deprecated.
Translates the
:content slot of an
ACLMessage msg into an AbsContentElement
using the content language and ontology indicated in the
:language and :ontology fields of msg . |
Object |
ContentManager.makeExpressionString(String codecName,
String ontoName,
ContentElement content)
Deprecated.
|
private void |
ContentManager.validate(AbsContentElement content,
Ontology onto)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
private AbsContentElement |
ContentManager.decode(ACLMessage msg,
Codec codec,
Ontology onto) |
private void |
ContentManager.encode(ACLMessage msg,
AbsContentElement content,
Codec codec,
Ontology onto) |
AbsContentElement |
ContentManager.extractAbsContent(ACLMessage msg)
Translates the
:content slot of an
ACLMessage msg into an AbsContentElement
using the content language and ontology indicated in the
:language and :ontology fields of msg . |
ContentElement |
ContentManager.extractContent(ACLMessage msg)
Translates the
:content slot of an
ACLMessage msg into a ContentElement
using the content language and ontology indicated in the
:language and :ontology fields of msg . |
void |
ContentManager.fillContent(ACLMessage msg,
AbsContentElement content)
Fills the
:content slot of an
ACLMessage msg using the content language
and ontology indicated in the :language and
:ontology fields of msg . |
void |
ContentManager.fillContent(ACLMessage msg,
ContentElement content)
Fills the
:content slot of an
ACLMessage msg using the content language
and ontology indicated in the :language and
:ontology fields of msg . |
private void |
ContentManager.validate(AbsContentElement content,
Ontology onto) |
Modifier and Type | Method and Description |
---|---|
static AbsObject |
AbsHelper.createAbsTemplate(Class clazz,
Ontology onto)
Generate an AbsObject consistently with class.
|
static AbsObject |
AbsHelper.createAbsTemplate(ObjectSchema schema)
Generate an AbsObject consistently with schema.
|
static AbsObject |
AbsHelper.createAbsTemplate(ObjectSchema schema,
String prefix)
Generate an AbsObject consistently with schema.
|
private static AbsObject |
AbsHelper.createAbsTemplate(ObjectSchema schema,
String prefix,
AbsHelper.VarIndexWrapper viw) |
static AbsAgentAction |
AbsHelper.externaliseACLMessage(ACLMessage obj,
Ontology onto)
Converts an
ACLMessage into an
AbsAgentAction using
the specified ontology. |
static AbsContentElementList |
AbsHelper.externaliseContentElementList(ContentElementList obj,
Ontology onto)
Converts a
ContentElementList into an
AbsContentElementList using
the specified ontology. |
static AbsAggregate |
AbsHelper.externaliseIterator(Iterator obj,
Ontology onto,
String AggregateType)
Converts an
Iterator into a AbsAggregate using
the specified ontology. |
static AbsAggregate |
AbsHelper.externaliseList(List obj,
Ontology onto,
String AggregateType)
Converts a
List into a AbsAggregate using
the specified ontology. |
static AbsAggregate |
AbsHelper.externaliseSet(Set obj,
Ontology onto,
String AggregateType)
Converts a
Set into a AbsAggregate using
the specified ontology. |
static OntoACLMessage |
AbsHelper.internaliseACLMessage(AbsAgentAction absMsg,
Ontology onto)
Converts to an
AbsAgentAction representing an ACLMessage
into an OntoACLMessage using the specified ontology. |
static OntoAID |
AbsHelper.internaliseAID(AbsConcept aid)
Converts an
AbsConcept representing an AID
into an OntoAID |
static ContentElementList |
AbsHelper.internaliseContentElementList(AbsContentElementList l,
Ontology onto)
Converts to an
AbsContentElementList into a
ContentElementList using the
specified ontology. |
static Collection |
AbsHelper.internaliseJavaCollection(AbsAggregate aggregate,
Ontology onto)
Converts an
AbsAggregate into a List using the
specified ontology. |
static List |
AbsHelper.internaliseList(AbsAggregate aggregate,
Ontology onto)
Converts an
AbsAggregate into a List using the
specified ontology. |
static Set |
AbsHelper.internaliseSet(AbsAggregate aggregate,
Ontology onto)
Converts an
AbsAggregate into a Set using the
specified ontology. |
static void |
AbsHelper.setAttribute(AbsObject abs,
String attrName,
AbsObject attrValue)
Set an attribute in an abstract descriptor performing all
necessary type checks.
|
Modifier and Type | Class and Description |
---|---|
class |
BeanOntologyException
This class is used for reporting exceptions when adding beans to a
BeanOntology . |
class |
NotAnAggregate |
class |
NotASpecialType |
class |
UngroundedException
Thrown when working with an ungrounded abstract descriptor, i.e., a
descriptor containing variables.
|
class |
UnknownSchemaException
Thrown when the schema for the type of the entity to be translated
into/from an abstract descriptor is not defined in the ontology
used to perform the translation.
|
class |
UnknownSlotException |
Modifier and Type | Method and Description |
---|---|
void |
Ontology.add(ObjectSchema schema)
Adds a schema to this ontology
|
void |
Ontology.add(ObjectSchema schema,
Class javaClass)
Adds a schema to the ontology and associates it to the class
javaClass |
private void |
BeanOntologyBuilder.addTermSlotToConcept(ConceptSchema schema,
String slotName,
String schemaName,
SlotAccessData sad,
boolean skipClassChecking) |
private void |
BeanOntologyBuilder.addTermSlotToPredicate(PredicateSchema schema,
String slotName,
String schemaName,
SlotAccessData sad,
boolean skipClassChecking) |
Object |
ConceptSlotFunction.apply() |
Object |
ConceptSlotFunction.apply(Concept c) |
void |
ReflectiveIntrospector.checkClass(ObjectSchema schema,
Class javaClass,
Ontology onto)
Check the structure of a java class associated to an ontological element
to ensure that translations to/from abstract descriptors and java objects
(instances of that class) can be accomplished by this introspector.
|
void |
MicroIntrospector.checkClass(ObjectSchema schema,
Class javaClass,
Ontology onto)
Check the structure of a java class associated to an ontological element
to ensure that translations to/from abstract descriptors and java objects
(instances of that class) can be accomplished by this introspector.
|
void |
Introspector.checkClass(ObjectSchema schema,
Class javaClass,
Ontology onto)
Check the structure of a java class associated to an ontological element
to ensure that translations to/from abstract descriptors and java objects
(instances of that class) can be accomplished by this introspector.
|
void |
BeanIntrospector.checkClass(ObjectSchema schema,
Class javaClass,
Ontology onto) |
void |
BCReflectiveIntrospector.checkClass(ObjectSchema schema,
Class javaClass,
Ontology onto)
Check the structure of a java class associated to an ontological element
to ensure that translations to/from abstract descriptors and java objects
(instances of that class) can be accomplished by this introspector.
|
private Class |
BCReflectiveIntrospector.checkGetAndSet(String name,
Class c) |
private Class |
BCReflectiveIntrospector.checkGetAndSet2(String name,
Class c) |
static void |
Ontology.checkIsTerm(Object obj)
Check whether a given object is a valid term.
|
ConceptSlotFunction |
Ontology.createConceptSlotFunction(String slotName,
Concept c)
Create a ConceptSlotFunction for a given slot of a given Concept.
|
private ObjectSchema |
BasicOntology.createMsgSchema(String performative)
Note that we don't want to keep 22 different schemas for the 22
FIPA communicative acts --> We generate the schemas for communicative
acts on the fly as needed.
|
private static void |
OntologyUtils.dumpSchemas(Ontology ontology,
Iterator iter,
String prefix) |
static void |
OntologyUtils.exploreOntology(Ontology ontology) |
void |
Introspectable.externalise(AbsObject abs,
Ontology onto)
Externalise this object into the given abstract descriptor
|
private AbsAggregate |
CFReflectiveIntrospector.externaliseCollection(Collection c,
Ontology referenceOnto,
String aggregateType) |
protected void |
Ontology.externalize(Object obj,
AbsObject abs,
ObjectSchema schema,
Ontology globalOnto)
Externalize (obj --> abs) the slots defined in
schema and its super-schemas |
AbsAggregate |
ReflectiveIntrospector.externalizeAggregate(String slotName,
Object obj,
ObjectSchema schema,
Ontology referenceOnto) |
AbsAggregate |
MicroIntrospector.externalizeAggregate(String slotName,
Object obj,
ObjectSchema schema,
Ontology referenceOnto) |
AbsAggregate |
Introspector.externalizeAggregate(String slotName,
Object obj,
ObjectSchema schema,
Ontology referenceOnto) |
AbsAggregate |
CFReflectiveIntrospector.externalizeAggregate(String slotName,
Object obj,
ObjectSchema schema,
Ontology referenceOnto) |
AbsAggregate |
BeanIntrospector.externalizeAggregate(String slotName,
Object slotValue,
ObjectSchema schema,
Ontology referenceOnto) |
AbsAggregate |
BCReflectiveIntrospector.externalizeAggregate(String slotName,
Object obj,
ObjectSchema schema,
Ontology referenceOnto) |
static AbsObject |
Ontology.externalizeSlotValue(Object obj,
Introspector introspector,
Ontology referenceOnto) |
AbsObject |
ReflectiveIntrospector.externalizeSpecialType(Object obj,
ObjectSchema schema,
Class javaClass,
Ontology referenceOnto) |
private AbsObject |
Ontology.externalizeSpecialType(Object obj,
ObjectSchema schema,
Class javaClass,
Ontology globalOnto) |
AbsObject |
MicroIntrospector.externalizeSpecialType(Object obj,
ObjectSchema schema,
Class javaClass,
Ontology referenceOnto) |
AbsObject |
Introspector.externalizeSpecialType(Object obj,
ObjectSchema schema,
Class javaClass,
Ontology referenceOnto) |
AbsObject |
BeanIntrospector.externalizeSpecialType(Object obj,
ObjectSchema schema,
Class javaClass,
Ontology referenceOnto) |
void |
ConceptSlotFunction.fill(Concept c,
Object val) |
void |
ConceptSlotFunction.fill(Object val) |
private void |
BasicOntology.fillPrimitiveSchemas() |
protected Method |
ReflectiveIntrospector.findMethodCaseInsensitive(String name,
Class c) |
AbsObject |
Ontology.fromObject(Object obj)
Converts a Java object into a proper abstract descriptor.
|
protected AbsObject |
SerializableOntology.fromObject(Object obj,
Ontology globalOnto) |
protected AbsObject |
Ontology.fromObject(Object obj,
Ontology globalOnto)
Converts a Java object into a proper abstract descriptor.
|
protected AbsObject |
BasicOntology.fromObject(Object obj,
Ontology referenceOnto)
This method is redefined as BasicOntology does not use an
Introspector for performance reason
|
private Object |
BCReflectiveIntrospector.getAggregateSlotValue(String slotName,
Object obj) |
Class |
Ontology.getClassForElement(String name)
Retrieves the concrete class associated with element
name
in this ontology. |
private Object |
BCReflectiveIntrospector.getScalarSlotValue(String slotName,
Object obj) |
ObjectSchema |
Ontology.getSchema(Class clazz)
Retrieves the schema associated to a given class in this ontology.
|
ObjectSchema |
BasicOntology.getSchema(Class clazz)
Redefine the
getSchema() method to take into
account java primitives. |
ObjectSchema |
Ontology.getSchema(String name)
Retrieves the schema of element
name in this ontology. |
ObjectSchema |
BasicOntology.getSchema(String name)
Redefine the
getSchema() method to take into
account ACL performatives. |
Object |
Ontology.getSlotValue(String slotName,
Object obj)
Retrieve the value of slot
slotName from object obj |
Object |
ReflectiveIntrospector.getSlotValue(String slotName,
Object obj,
ObjectSchema schema) |
private Object |
Ontology.getSlotValue(String slotName,
Object obj,
ObjectSchema schema) |
Object |
MicroIntrospector.getSlotValue(String slotName,
Object obj,
ObjectSchema schema) |
Object |
Introspector.getSlotValue(String slotName,
Object obj,
ObjectSchema schema) |
Object |
BeanIntrospector.getSlotValue(String slotName,
Object obj,
ObjectSchema schema) |
Object |
BCReflectiveIntrospector.getSlotValue(String slotName,
Object obj,
ObjectSchema schema) |
void |
Introspectable.internalise(AbsObject abs,
Ontology onto)
Internalise this object from a given abstract descriptor
|
private Collection |
CFReflectiveIntrospector.internaliseCollection(AbsAggregate absAggregate,
Ontology referenceOnto) |
protected void |
Ontology.internalize(AbsObject abs,
Object obj,
ObjectSchema schema,
Ontology globalOnto)
Internalize (abs --> obj) the slots defined in
schema and its super-schemas |
Object |
ReflectiveIntrospector.internalizeAggregate(String slotName,
AbsAggregate abs,
ObjectSchema schema,
Ontology referenceOnto) |
Object |
MicroIntrospector.internalizeAggregate(String slotName,
AbsAggregate abs,
ObjectSchema schema,
Ontology referenceOnto) |
Object |
Introspector.internalizeAggregate(String slotName,
AbsAggregate abs,
ObjectSchema schema,
Ontology referenceOnto) |
Object |
CFReflectiveIntrospector.internalizeAggregate(String slotName,
AbsAggregate absAggregate,
ObjectSchema schema,
Ontology referenceOnto) |
Object |
BeanIntrospector.internalizeAggregate(String slotName,
AbsAggregate absAggregate,
ObjectSchema schema,
Ontology referenceOnto) |
Object |
BCReflectiveIntrospector.internalizeAggregate(String slotName,
AbsAggregate abs,
ObjectSchema schema,
Ontology referenceOnto) |
static Object |
Ontology.internalizeSlotValue(AbsObject abs,
Introspector introspector,
Ontology referenceOnto) |
Object |
ReflectiveIntrospector.internalizeSpecialType(AbsObject abs,
ObjectSchema schema,
Class javaClass,
Ontology referenceOnto) |
private Object |
Ontology.internalizeSpecialType(AbsObject abs,
ObjectSchema schema,
Class javaClass,
Ontology globalOnto) |
Object |
MicroIntrospector.internalizeSpecialType(AbsObject abs,
ObjectSchema schema,
Class javaClass,
Ontology referenceOnto) |
Object |
Introspector.internalizeSpecialType(AbsObject abs,
ObjectSchema schema,
Class javaClass,
Ontology referenceOnto) |
Object |
BeanIntrospector.internalizeSpecialType(AbsObject abs,
ObjectSchema schema,
Class javaClass,
Ontology referenceOnto) |
protected Object |
ReflectiveIntrospector.invokeAccessorMethod(Method method,
Object obj) |
private void |
BCReflectiveIntrospector.invokeAddMethod(Method method,
Object obj,
Object value) |
private Object |
BeanIntrospector.invokeGetterMethod(Method method,
Object obj) |
protected void |
ReflectiveIntrospector.invokeSetterMethod(Method method,
Object obj,
Object value) |
private void |
BeanIntrospector.invokeSetterMethod(Method method,
Object obj,
Object value,
Class clazz) |
void |
Ontology.setSlotValue(String slotName,
Object slotValue,
Object obj)
Set the value of slot
slotName as slotValue to object obj |
void |
ReflectiveIntrospector.setSlotValue(String slotName,
Object slotValue,
Object obj,
ObjectSchema schema) |
private void |
Ontology.setSlotValue(String slotName,
Object slotValue,
Object obj,
ObjectSchema schema) |
void |
MicroIntrospector.setSlotValue(String slotName,
Object slotValue,
Object obj,
ObjectSchema schema) |
void |
Introspector.setSlotValue(String slotName,
Object slotValue,
Object obj,
ObjectSchema schema) |
void |
BeanIntrospector.setSlotValue(String slotName,
Object slotValue,
Object obj,
ObjectSchema schema) |
void |
BCReflectiveIntrospector.setSlotValue(String slotName,
Object slotValue,
Object obj,
ObjectSchema schema) |
private TermSchema |
BeanOntologyBuilder.supplySchemaForClassFlat(Class clazz,
boolean skipClassChecking) |
private TermSchema |
BeanOntologyBuilder.supplySchemaForClassRecursive(Class clazz,
boolean skipClassChecking) |
Object |
Ontology.toObject(AbsObject abs)
Converts an abstract descriptor to a Java object of the proper class.
|
protected Object |
SerializableOntology.toObject(AbsObject abs,
String lcType,
Ontology globalOnto) |
protected Object |
Ontology.toObject(AbsObject abs,
String lcType,
Ontology globalOnto)
Converts an abstract descriptor to a Java object of the proper class.
|
protected Object |
BasicOntology.toObject(AbsObject abs,
String lcType,
Ontology referenceOnto)
This method is redefined as BasicOntology does not use an
Introspector for performance reason
|
Modifier and Type | Method and Description |
---|---|
void |
Action.externalise(AbsObject abs,
Ontology onto) |
void |
Action.internalise(AbsObject abs,
Ontology onto) |
Modifier and Type | Method and Description |
---|---|
void |
PredicateSchema.addFacet(String slotName,
Facet f)
Add a
Facet on a slot of this schema |
protected void |
ObjectSchemaImpl.addFacet(String slotName,
Facet f)
Add a
Facet on a slot of this schema |
protected abstract void |
ObjectSchema.addFacet(String slotName,
Facet f)
Add a
Facet on a slot of this schema |
void |
ConceptSchema.addFacet(String slotName,
Facet f)
Add a
Facet on a slot of this schema |
ObjectSchema |
ObjectSchemaImpl.getSchema(String name)
Retrieves the schema of a slot of this
Schema . |
abstract ObjectSchema |
ObjectSchema.getSchema(String name)
Retrieves the schema of a slot of this
Schema . |
boolean |
ObjectSchemaImpl.isMandatory(String name)
Indicate whether a slot of this schema is mandatory
|
abstract boolean |
ObjectSchema.isMandatory(String name)
Indicate whether a slot of this schema is mandatory
|
AbsObject |
VariableSchema.newInstance()
Creates an Abstract descriptor to hold a variable
|
AbsObject |
TermSchema.newInstance()
Creates an Abstract descriptor to hold a term of
the proper type.
|
AbsObject |
PrimitiveSchema.newInstance()
Creates an Abstract descriptor to hold a primitive of
the proper type.
|
AbsObject |
PredicateSchema.newInstance()
Creates an Abstract descriptor to hold a predicate of
the proper type.
|
AbsObject |
ObjectSchemaImpl.newInstance()
Creates an Abstract descriptor to hold an object compliant to
this
Schema . |
abstract AbsObject |
ObjectSchema.newInstance()
Creates an Abstract descriptor to hold an object compliant to
this
Schema . |
AbsObject |
IRESchema.newInstance()
Creates an Abstract descriptor to hold a ire of
the proper type.
|
AbsObject |
ContentElementSchema.newInstance()
Creates an Abstract descriptor to hold a content element of
the proper type.
|
AbsObject |
ContentElementListSchema.newInstance()
Creates an Abstract descriptor to hold a content element list
|
AbsObject |
ConceptSlotFunctionSchema.newInstance() |
AbsObject |
ConceptSchema.newInstance()
Creates an Abstract descriptor to hold a concept of
the proper type.
|
AbsObject |
AggregateSchema.newInstance()
Creates an Abstract descriptor to hold an aggregate of
the proper type.
|
AbsObject |
AgentActionSchema.newInstance()
Creates an Abstract descriptor to hold an agent action of
the proper type.
|
void |
VariableSchema.validate(AbsObject abs,
Ontology onto)
Check whether a given abstract descriptor complies with this
schema.
|
void |
PrimitiveSchema.validate(AbsObject abs,
Ontology onto)
Check whether a given abstract descriptor complies with this
schema.
|
void |
PredicateSchema.validate(AbsObject abs,
Ontology onto)
Check whether a given abstract descriptor complies with this
schema.
|
void |
ObjectSchemaImpl.validate(AbsObject abs,
Ontology onto)
Check whether a given abstract descriptor complies with this
schema.
|
abstract void |
ObjectSchema.validate(AbsObject abs,
Ontology onto)
Check whether a given abstract descriptor complies with this
schema.
|
void |
IRESchema.validate(AbsObject abs,
Ontology onto)
Check whether a given abstract descriptor complies with this
schema.
|
void |
Facet.validate(AbsObject value,
Ontology onto)
Check whether a given value for the slot this Facet applies
to is valid.
|
void |
ContentElementListSchema.validate(AbsObject abs,
Ontology onto)
Check whether a given abstract descriptor complies with this
schema.
|
void |
ConceptSchema.validate(AbsObject abs,
Ontology onto)
Check whether a given abstract descriptor complies with this
schema.
|
void |
AggregateSchema.validate(AbsObject abs,
Ontology onto)
Check whether a given abstract descriptor complies with this
schema.
|
void |
AgentActionSchema.validate(AbsObject abs,
Ontology onto)
Check whether a given abstract descriptor complies with this
schema.
|
private boolean |
ObjectSchemaImpl.validate(CaseInsensitiveString slotName,
AbsObject value,
Ontology onto)
Validate a given abstract descriptor as a value for a slot
defined in this schema
|
protected void |
ObjectSchemaImpl.validateSlots(AbsObject abs,
Ontology onto)
For each slot
- get the corresponding attribute value from the abstract descriptor
abs
- Check that it is not null if the slot is mandatory
- Check that its schema is compatible with the schema of the slot
- Check that it is a correct abstract descriptor by validating it
against its schema.
|
Modifier and Type | Method and Description |
---|---|
void |
TypedAggregateFacet.validate(AbsObject value,
Ontology onto)
Check whether a given value for the slot this Facet applies
to is valid.
|
void |
RegexFacet.validate(AbsObject value,
Ontology onto)
Check whether a given value for the slot this Facet applies
to is valid.
|
void |
PermittedValuesFacet.validate(AbsObject value,
Ontology onto)
Check whether a given value for the slot this Facet applies
to is valid.
|
void |
DocumentationFacet.validate(AbsObject value,
Ontology onto)
Check whether a given value for the slot this Facet applies
to is valid.
|
void |
DefaultValueFacet.validate(AbsObject value,
Ontology onto)
Check whether a given value for the slot this Facet applies
to is valid.
|
void |
CardinalityFacet.validate(AbsObject value,
Ontology onto)
Check that
the number of elements in an AbsAggregate is within
a given range
|