Package | Description |
---|---|
casa.jade | |
jade.content | |
jade.content.abs | |
jade.content.lang | |
jade.content.lang.sl | |
jade.content.onto | |
jade.content.onto.basic | |
jade.content.schema | |
jade.content.schema.facets |
Modifier and Type | Method and Description |
---|---|
private Ontology |
ContentManager.getMergedOntology(Codec c,
Ontology o)
Deprecated.
Merge the reference ontology with the inner ontology of the
content language
|
Ontology |
ContentManager.getOntology(ACLMessage msg)
Deprecated.
|
Ontology |
ContentManager.lookupOntology(String name)
Deprecated.
Retrieves a previously registered
Ontology
giving its name . |
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.
|
private Ontology |
ContentManager.getMergedOntology(Codec c,
Ontology o)
Deprecated.
Merge the reference ontology with the inner ontology of the
content language
|
void |
ContentManager.registerOntology(Ontology o)
Deprecated.
Registers an
Ontology with its default name (i.e. |
void |
ContentManager.registerOntology(Ontology o,
String name)
Deprecated.
Registers an
Ontology with a given name. |
private void |
ContentManager.validate(AbsContentElement content,
Ontology onto)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
private Ontology |
ContentManager.getMergedOntology(Codec c,
Ontology o)
Merge the reference ontology with the inner ontology of the
content language
|
Ontology |
ContentManager.getOntology(ACLMessage msg) |
Ontology |
ContentManager.lookupOntology(String name)
Retrieves a previously registered
Ontology
giving its name . |
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) |
private Ontology |
ContentManager.getMergedOntology(Codec c,
Ontology o)
Merge the reference ontology with the inner ontology of the
content language
|
void |
ContentManager.registerOntology(Ontology o)
Registers an
Ontology with its default name (i.e. |
void |
ContentManager.registerOntology(Ontology o,
String name)
Registers an
Ontology with a given name. |
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 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 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. |
Modifier and Type | Method and Description |
---|---|
Ontology |
Codec.getInnerOntology() |
Modifier and Type | Method and Description |
---|---|
abstract AbsContentElement |
ByteArrayCodec.decode(Ontology ontology,
byte[] content)
Decodes the content to an abstract description.
|
abstract AbsContentElement |
StringCodec.decode(Ontology ontology,
String content)
Decodes the content to an abstract description using a
given ontology.
|
abstract String |
StringCodec.encode(Ontology ontology,
AbsContentElement content)
Encodes a content into a string using a given ontology.
|
abstract byte[] |
ByteArrayCodec.encode(Ontology ontology,
AbsContentElement content)
Encodes a content into a byte array.
|
Modifier and Type | Class and Description |
---|---|
(package private) class |
SL0Ontology
Ontology containing schemas for the SL0 language operators.
|
(package private) class |
SL1Ontology
Ontology containing schemas for the SL1 language operators.
|
(package private) class |
SL2Ontology
Ontology containing schemas for the SL2 language operators.
|
class |
SLOntology
Ontology containing schemas for the full SL language operators.
|
Modifier and Type | Field and Description |
---|---|
(package private) Ontology |
SLParser.curOntology |
(package private) Ontology |
ExtendedSLParser.curOntology |
private Ontology |
SLCodec.domainOnto |
private static Ontology |
SLOntology.theInstance |
private static Ontology |
SL2Ontology.theInstance |
private static Ontology |
SL1Ontology.theInstance |
private static Ontology |
SL0Ontology.theInstance |
Modifier and Type | Method and Description |
---|---|
Ontology |
SLCodec.getInnerOntology() |
Ontology |
SimpleSLCodec.getInnerOntology() |
static Ontology |
SLOntology.getInstance() |
static Ontology |
SL2Ontology.getInstance() |
static Ontology |
SL1Ontology.getInstance() |
static Ontology |
SL0Ontology.getInstance() |
Modifier and Type | Method and Description |
---|---|
AbsContentElement |
SLCodec.decode(Ontology ontology,
String content)
Decodes the content to an abstract description.
|
AbsContentElement |
SimpleSLCodec.decode(Ontology ontology,
String content)
Decodes the content to an abstract description using a
given ontology.
|
AbsPredicate |
SLCodec.decodeFormula(Ontology ontology,
String formula)
Decodes the content to an abstract description, where the content is known to be a Well-formed Formula
|
AbsTerm |
SLCodec.decodeTerm(Ontology ontology,
String term)
Decodes the content to an abstract description, where the content is known to be a Term.
|
String |
SLCodec.encode(Ontology ontology,
AbsContentElement content)
Encodes a content into a String.
|
String |
SimpleSLCodec.encode(Ontology ontology,
AbsContentElement content)
Encodes a content into a string using a given ontology.
|
String |
SLCodec.encodeFormula(Ontology ontology,
AbsPredicate formula)
Encodes the content into a String, where the content is known to be a Well-formed Formula
|
private void |
SimpleSLCodec.encodeSlotsByName(AbsObject val,
String[] slotNames,
Ontology onto,
StringBuffer str)
Encode the slots of an abstract descriptor by name, i.e.
|
private void |
SimpleSLCodec.encodeSlotsByOrder(AbsObject val,
String[] slotNames,
Ontology onto,
StringBuffer str)
Encode the slots of an abstract descriptor by order, i.e.
|
String |
SLCodec.encodeTerm(Ontology ontology,
AbsTerm term)
Encodes the content into a String, where the content is known to be a Term.
|
private void |
SimpleSLCodec.fillAggregate(AbsAggregate abs,
SimpleSLTokenizer p,
Ontology o) |
private void |
SimpleSLCodec.fillSlotsByName(AbsConcept abs,
SimpleSLTokenizer p,
Ontology o) |
private void |
SimpleSLCodec.fillSlotsByOrder(AbsObject abs,
ObjectSchema s,
SimpleSLTokenizer p,
Ontology o) |
(package private) AbsContentElement |
SLParser.parse(Ontology o,
String content)
Deprecated.
since JADE 3.4 it is preferrable to use reinit() and then call directly the method corresponding to the production rule (e.g. Content())
|
(package private) AbsContentElement |
ExtendedSLParser.parse(Ontology o,
String content)
Deprecated.
since JADE 3.4 it is preferrable to use reinit() and then call directly the method corresponding to the production rule (e.g. Content())
|
private AbsObject |
SimpleSLCodec.parse(SimpleSLTokenizer p,
Ontology o) |
private AbsObject |
SimpleSLCodec.parseComplex(SimpleSLTokenizer p,
Ontology o) |
(package private) void |
SLParser.reinit(Ontology o,
String content)
Reinitialize the parser such as it is ready to parse a new expression.
|
(package private) void |
ExtendedSLParser.reinit(Ontology o,
String content)
Reinitialize the parser such as it is ready to parse a new expression.
|
private void |
SimpleSLCodec.stringify(AbsObject val,
Ontology onto,
StringBuffer str) |
private void |
SimpleSLCodec.stringifyAggregate(AbsAggregate val,
Ontology onto,
StringBuffer str) |
private void |
SimpleSLCodec.stringifyComplex(AbsObject val,
Ontology onto,
StringBuffer str) |
Constructor and Description |
---|
SL0Ontology(String name,
Ontology base,
Introspector intro)
Constructor
|
SL1Ontology(String name,
Ontology base,
Introspector intro)
Constructor
|
SL2Ontology(String name,
Ontology base,
Introspector intro)
Constructor
|
Modifier and Type | Class and Description |
---|---|
class |
BasicOntology
This class implements an ontology containing schemas for
Primitive types and SL0 operators i.e.
|
class |
BeanOntology
Extension of
Ontology that allows to build the
ontological elements adding directly the classes of the
corresponding JavaBeans. |
class |
SerializableOntology
This ontology allows dealing with Java Serializable objects as
if they were instances of ontological elements.
|
Modifier and Type | Field and Description |
---|---|
private Ontology[] |
Ontology.base |
private Ontology |
ConceptSlotFunction.onto |
private Ontology |
BeanOntologyBuilder.ontology |
Modifier and Type | Method and Description |
---|---|
private Ontology |
Ontology.getDefiningOntology(String lcName)
Retrieves the ontology actually containing the definition of a given schema.
|
static Ontology |
SerializableOntology.getInstance()
Returns the singleton instance of the
SerializableOntology . |
static Ontology |
BasicOntology.getInstance()
Returns the singleton instance of the
BasicOntology . |
Modifier and Type | Method and Description |
---|---|
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 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) |
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
|
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 |
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
|
Constructor and Description |
---|
BeanOntology(String name,
Ontology base)
Create an Ontology with the given
name that
extends the ontology base , which must have
BasicOntology in its hierarchy. |
BeanOntology(String name,
Ontology[] base)
Create an Ontology with the given
name that
extends the base set of ontologies. |
BeanOntologyBuilder(Ontology ontology) |
ConceptSlotFunction(String slotName,
Concept concept,
Ontology onto) |
Ontology(String name,
Ontology base)
Construct an Ontology object with a given
name
that extends a given ontology. |
Ontology(String name,
Ontology[] base,
Introspector introspector)
Construct an Ontology object with a given
name
that extends a given set of ontologies and that uses a given Introspector to
convert between Java objects and abstract descriptors. |
Ontology(String name,
Ontology base,
Introspector introspector)
Construct an Ontology object with a given
name
that extends a given ontology and that uses a given Introspector to
convert between Java objects and abstract descriptors. |
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 |
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
|