|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--jade.content.schema.ObjectSchema
|
+--jade.content.schema.ObjectSchemaImpl
|
+--jade.content.schema.TermSchema
|
+--jade.content.schema.ConceptSchema
|
+--jade.content.schema.AgentActionSchema
The class to be used to define schemas of agent actions in an ontology. Note that an AgentActionSchema should also be a ConceptSchema, but this inheritance relation is cut as Java does not support multiple inheritance. As a consequence in practice it will not be possible to define e.g. a ConceptSchema with a slot whose value must be instances of a certain type of agent-action even if in theory this should be possible as a ConceptSchema can have slots of type term and an agent-action is a concept and therefore a term.
| Field Summary | |
static java.lang.String |
BASE_NAME
|
| Fields inherited from class jade.content.schema.ObjectSchema |
baseSchema, MANDATORY, OPTIONAL, UNLIMITED |
| Constructor Summary | |
AgentActionSchema(java.lang.String typeName)
Creates an AgentActionSchema with a given type-name. |
|
| Method Summary | |
void |
add(java.lang.String name,
PredicateSchema slotSchema)
Add a mandatory slot of type PredicateSchema to this schema. |
void |
add(java.lang.String name,
PredicateSchema slotSchema,
int optionality)
Add a slot of type PredicateSchema to this schema. |
protected boolean |
descendsFrom(ObjectSchema s)
Return true if - s is the base schema for the XXXSchema class this schema is an instance of (e.g. |
static ObjectSchema |
getBaseSchema()
Retrieve the generic base schema for all agent actions. |
AbsObject |
newInstance()
Creates an Abstract descriptor to hold an agent action of the proper type. |
void |
validate(AbsObject abs,
Ontology onto)
Check whether a given abstract descriptor complies with this schema. |
| Methods inherited from class jade.content.schema.ConceptSchema |
add, add, add, add, addFacet, addSuperSchema |
| Methods inherited from class jade.content.schema.TermSchema |
add, add, add, add, addSuperSchema, containsSlot, equals, getFacets, getNames, getSchema, getTypeName, isCompatibleWith, isMandatory, toString, validateSlots |
| Methods inherited from class jade.content.schema.ObjectSchema |
getEncodingByOrder, setEncodingByOrder |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final java.lang.String BASE_NAME
| Constructor Detail |
public AgentActionSchema(java.lang.String typeName)
AgentActionSchema with a given type-name.
typeName - The name of this AgentActionSchema.| Method Detail |
public static ObjectSchema getBaseSchema()
public void add(java.lang.String name,
PredicateSchema slotSchema)
name - The name of the slot.slotSchema - The schema of the slot.
public void add(java.lang.String name,
PredicateSchema slotSchema,
int optionality)
name - The name of the slot.slotSchema - The schema of the slot.optionality - The optionality, i.e. OPTIONAL
or MANDATORY
public AbsObject newInstance()
throws OntologyException
newInstance in class ConceptSchemaOntologyException
public void validate(AbsObject abs,
Ontology onto)
throws OntologyException
validate in class ConceptSchemaabs - The abstract descriptor to be checked
OntologyException - If the abstract descriptor does not
complies with this schemaprotected boolean descendsFrom(ObjectSchema s)
descendsFrom in class ConceptSchema
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||