Knowledge API Legacy5 Adapter 6.0.0.Beta5

org.drools
Interface KBaseUnit


public interface KBaseUnit

This class wraps the definition of a named KnowledgeBase defined in a KnowledgeJar allowing to instance it and create new StatefulKnowledgeSession from it


Method Summary
 KnowledgeBuilderErrors getErrors()
          Return the errors that occurred during the build process of the KnowledgeBase wrapped by this KBaseUnit
 String getKBaseName()
          Return the name of the KnowledgeBase wrapped by this KBaseUnit
 KnowledgeBase getKnowledgeBase()
          Lazily create and return the KnowledgeBase wrapped by this KBaseUnit
 boolean hasErrors()
          If errors occurred during the build process they are added here
 StatefulKnowledgeSession newStatefulKnowledegSession(String ksessionName)
          Instance a new StatefulKnowledgeSession identified by the gievn name from the KnowledgeBase wrapped by this KBaseUnit
 StatelessKnowledgeSession newStatelessKnowledegSession(String ksessionName)
          Instance a new StatelessKnowledgeSession identified by the gievn name from the KnowledgeBase wrapped by this KBaseUnit
 

Method Detail

getKBaseName

String getKBaseName()
Return the name of the KnowledgeBase wrapped by this KBaseUnit

Returns:

getKnowledgeBase

KnowledgeBase getKnowledgeBase()
Lazily create and return the KnowledgeBase wrapped by this KBaseUnit

Returns:
The KnowledgeBase

hasErrors

boolean hasErrors()
If errors occurred during the build process they are added here

Returns:

getErrors

KnowledgeBuilderErrors getErrors()
Return the errors that occurred during the build process of the KnowledgeBase wrapped by this KBaseUnit

Returns:

newStatefulKnowledegSession

StatefulKnowledgeSession newStatefulKnowledegSession(String ksessionName)
Instance a new StatefulKnowledgeSession identified by the gievn name from the KnowledgeBase wrapped by this KBaseUnit

Parameters:
kSessionName - The name of the StatefulKnowledgeSession
Returns:
The StatefulKnowledgeSession

newStatelessKnowledegSession

StatelessKnowledgeSession newStatelessKnowledegSession(String ksessionName)
Instance a new StatelessKnowledgeSession identified by the gievn name from the KnowledgeBase wrapped by this KBaseUnit

Parameters:
kSessionName - The name of the StatelessKnowledgeSession
Returns:
The StatelessKnowledgeSession

Knowledge API Legacy5 Adapter 6.0.0.Beta5

Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.