org.drools.smf
Interface SemanticModule

All Known Implementing Classes:
SimpleSemanticModule

public interface SemanticModule

Collection of entities forming a semantic module.

Author:
bob mcwhirter
See Also:
org.drools.spi

Field Summary
static SemanticModule[] EMPTY_ARRAY
          Empty SemanticModule array.
 
Method Summary
 void addApplicationDataFactory(String name, ApplicationDataFactory factory)
           
 void addImportEntryFactory(String name, ImportEntryFactory factory)
           
 ApplicationDataFactory getApplicationDataFactory(String name)
           
 Set getApplicationDataFactoryNames()
           
 ConditionFactory getConditionFactory(String name)
          Retrieve a semantic condition by name.
 Set getConditionFactoryNames()
          Retrieve the set of all condition names.
 ConsequenceFactory getConsequenceFactory(String name)
          Retrieve a semantic consequence by name.
 Set getConsequenceFactoryNames()
          Retrieve the set of all consequence names.
 DurationFactory getDurationFactory(String name)
           
 Set getDurationFactoryNames()
           
 ImportEntryFactory getImportEntryFactory(String name)
           
 Set getImportEntryFactoryNames()
           
 ObjectTypeFactory getObjectTypeFactory(String name)
          Retrieve a semantic object type by name.
 Set getObjectTypeFactoryNames()
          Retrieve the set of all object type names.
 RuleFactory getRuleFactory(String name)
           
 Set getRuleFactoryNames()
           
 String getUri()
          Retrieve the URI that identifies this semantic module.
 

Field Detail

EMPTY_ARRAY

public static final SemanticModule[] EMPTY_ARRAY
Empty SemanticModule array.

Method Detail

getUri

public String getUri()
Retrieve the URI that identifies this semantic module.

Returns:
The URI.

getRuleFactory

public RuleFactory getRuleFactory(String name)

getRuleFactoryNames

public Set getRuleFactoryNames()

getObjectTypeFactory

public ObjectTypeFactory getObjectTypeFactory(String name)
Retrieve a semantic object type by name.

Parameters:
name - the name.
Returns:
The object type implementation or null if none is bound to the name.

getObjectTypeFactoryNames

public Set getObjectTypeFactoryNames()
Retrieve the set of all object type names.

Returns:
The set of names.

getConditionFactory

public ConditionFactory getConditionFactory(String name)
Retrieve a semantic condition by name.

Parameters:
name - the name.
Returns:
The condition implementation or null if none is bound to the name.

getConditionFactoryNames

public Set getConditionFactoryNames()
Retrieve the set of all condition names.

Returns:
The set of names.

getConsequenceFactory

public ConsequenceFactory getConsequenceFactory(String name)
Retrieve a semantic consequence by name.

Parameters:
name - the name.
Returns:
The consequence implementation or null if none is bound to the name.

getConsequenceFactoryNames

public Set getConsequenceFactoryNames()
Retrieve the set of all consequence names.

Returns:
The set of names.

getDurationFactory

public DurationFactory getDurationFactory(String name)

getDurationFactoryNames

public Set getDurationFactoryNames()

addImportEntryFactory

public void addImportEntryFactory(String name,
                                  ImportEntryFactory factory)

getImportEntryFactory

public ImportEntryFactory getImportEntryFactory(String name)

getImportEntryFactoryNames

public Set getImportEntryFactoryNames()

addApplicationDataFactory

public void addApplicationDataFactory(String name,
                                      ApplicationDataFactory factory)

getApplicationDataFactory

public ApplicationDataFactory getApplicationDataFactory(String name)

getApplicationDataFactoryNames

public Set getApplicationDataFactoryNames()


Copyright © 2001-2004 The Codehaus. All Rights Reserved.