|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.drools.smf.SimpleSemanticModule
Simple implementation of a Semantic Module.
Constructor Summary | |
SimpleSemanticModule(java.lang.String uri)
Construct with a URI. |
Method Summary | |
void |
addCondition(java.lang.String name,
java.lang.Class condition)
Add a semantic condition. |
void |
addConsequence(java.lang.String name,
java.lang.Class consequence)
Add a semantic consequence. |
void |
addExtractor(java.lang.String name,
java.lang.Class extractor)
Add a semantic extractor. |
void |
addObjectType(java.lang.String name,
java.lang.Class objectType)
Add a semantic object type. |
java.lang.Class |
getCondition(java.lang.String name)
Retrieve a semantic condition by name. |
java.util.Set |
getConditionNames()
Retrieve the set of all condition names. |
java.lang.Class |
getConsequence(java.lang.String name)
Retrieve a semantic consequence by name. |
java.util.Set |
getConsequenceNames()
Retrieve the set of all object type names. |
java.lang.Class |
getExtractor(java.lang.String name)
Retrieve a semantic extractor by name. |
java.util.Set |
getExtractorNames()
Retrieve the set of all object type names. |
java.lang.Class |
getObjectType(java.lang.String name)
Retrieve a semantic object type by name. |
java.util.Set |
getObjectTypeNames()
Retrieve the set of all object type names. |
java.lang.String |
getUri()
Retrieve the URI that identifies this semantic module. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SimpleSemanticModule(java.lang.String uri)
uri
- The URI the identifies this semantic module.Method Detail |
public java.lang.String getUri()
getUri
in interface SemanticModule
public void addObjectType(java.lang.String name, java.lang.Class objectType) throws InvalidObjectTypeException
name
- The object type name.objectType
- The object type implementation.
InvalidObjectTypeException
- If a class that is not a
object type is added.public java.lang.Class getObjectType(java.lang.String name)
getObjectType
in interface SemanticModule
name
- the name.
null
if none is bound to the name.public java.util.Set getObjectTypeNames()
getObjectTypeNames
in interface SemanticModule
public void addCondition(java.lang.String name, java.lang.Class condition) throws InvalidConditionException
name
- The condition name.condition
- The condition implementation.
InvalidConditionException
- If a class that is not a
condition is added.public java.lang.Class getCondition(java.lang.String name)
getCondition
in interface SemanticModule
name
- the name.
null
if none is bound to the name.public java.util.Set getConditionNames()
getConditionNames
in interface SemanticModule
public void addExtractor(java.lang.String name, java.lang.Class extractor) throws InvalidExtractorException
name
- The extractor name.extractor
- The extractor implementation.
InvalidExtractorException
- If a class that is not a
extractor is added.public java.lang.Class getExtractor(java.lang.String name)
getExtractor
in interface SemanticModule
name
- the name.
null
if none is bound to the name.public java.util.Set getExtractorNames()
getExtractorNames
in interface SemanticModule
public void addConsequence(java.lang.String name, java.lang.Class consequence) throws InvalidConsequenceException
name
- The consequence name.consequence
- The consequence implementation.
InvalidConsequenceException
- If a class that is not a
consequence is added.public java.lang.Class getConsequence(java.lang.String name)
getConsequence
in interface SemanticModule
name
- the name.
null
if none is bound to the name.public java.util.Set getConsequenceNames()
getConsequenceNames
in interface SemanticModule
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |