Java Doc for AbstractRuleBase.java in  » Rule-Engine » drolls-Rule-Engine » org » drools » common » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Rule Engine » drolls Rule Engine » org.drools.common 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.drools.common.AbstractRuleBase

All known Subclasses:   org.drools.reteoo.ReteooRuleBase,
AbstractRuleBase
abstract public class AbstractRuleBase implements InternalRuleBase,Externalizable(Code)
Implementation of RuleBase.
author:
   bob mcwhirter
author:
   Mark Proctor
version:
   $Id: RuleBaseImpl.java,v 1.5 2005/08/14 22:44:12 mproctor Exp $

Inner Class :public static class ReloadPackageCompilationData implements RuleBaseAction
Inner Class :public static interface RuleBaseAction extends Serializable

Field Summary
protected  MapagendaGroupRuleTotals
    
protected transient  MapBackedClassLoaderclassLoader
    
protected  RuleBaseConfigurationconfig
    
protected  FactHandleFactoryfactHandleFactory
     The fact handle factory.
protected  Mapglobals
    
protected  Stringid
    
protected transient  CompositePackageClassLoaderpackageClassLoader
    
protected  Mappkgs
    
protected  Mapprocesses
    
protected transient  ObjectHashSetstatefulSessions
    
protected  intworkingMemoryCounter
    

Constructor Summary
public  AbstractRuleBase()
     Default constructor - for Externalizable.
public  AbstractRuleBase(String id, RuleBaseConfiguration config, FactHandleFactory factHandleFactory)
     Construct.

Method Summary
public  voidaddClass(String className, byte[] bytes)
    
public synchronized  voidaddPackage(Package newPkg)
     Add a Package to the network.
public synchronized  voidaddProcess(Process process)
    
protected synchronized  voidaddRule(Rule rule)
    
protected synchronized  voidaddStatefulSession(StatefulSession statefulSession)
    
public synchronized  voiddisposeStatefulSession(StatefulSession statefulSession)
    
public  voiddoReadExternal(ObjectInput stream, Object[] objects)
     Handles the read serialization of the Package.
public  voiddoWriteExternal(ObjectOutput stream, Object[] objects)
     Handles the write serialization of the Package.
public  voidexecuteQueuedActions()
    
public  MapgetAgendaGroupRuleTotals()
    
public  CompositePackageClassLoadergetCompositePackageClassLoader()
    
public  RuleBaseConfigurationgetConfiguration()
    
public  FactHandleFactorygetFactHandleFactory()
    
public  MapgetGlobals()
    
public  StringgetId()
    
public  MapBackedClassLoadergetMapBackedClassLoader()
    
public  PackagegetPackage(String name)
    
public  Package[]getPackages()
    
public  MapgetPackagesMap()
    
public  ProcessgetProcess(String id)
    
public  Process[]getProcesses()
    
public  StatefulSession[]getStatefulSessions()
    
public  InternalWorkingMemory[]getWorkingMemories()
    
public  FactHandleFactorynewFactHandleFactory()
    
public  StatefulSessionnewStatefulSession()
    
abstract public  StatefulSessionnewStatefulSession(boolean keepReference)
    
public  StatefulSessionnewStatefulSession(InputStream stream)
    
public  StatefulSessionnewStatefulSession(InputStream stream, boolean keepReference)
    
public synchronized  intnextWorkingMemoryCounter()
    
public  voidremoveFunction(String packageName, String functionName)
    
public synchronized  voidremovePackage(String packageName)
    
public synchronized  voidremoveProcess(String id)
    
public  voidremoveRule(String packageName, String ruleName)
    
abstract protected  voidremoveRule(Rule rule)
    

Field Detail
agendaGroupRuleTotals
protected Map agendaGroupRuleTotals(Code)



classLoader
protected transient MapBackedClassLoader classLoader(Code)



config
protected RuleBaseConfiguration config(Code)



factHandleFactory
protected FactHandleFactory factHandleFactory(Code)
The fact handle factory.



globals
protected Map globals(Code)



id
protected String id(Code)



packageClassLoader
protected transient CompositePackageClassLoader packageClassLoader(Code)



pkgs
protected Map pkgs(Code)



processes
protected Map processes(Code)



statefulSessions
protected transient ObjectHashSet statefulSessions(Code)
WeakHashMap to keep references of WorkingMemories but allow them to be garbage collected



workingMemoryCounter
protected int workingMemoryCounter(Code)




Constructor Detail
AbstractRuleBase
public AbstractRuleBase()(Code)
Default constructor - for Externalizable. This should never be used by a user, as it will result in an invalid state for the instance.



AbstractRuleBase
public AbstractRuleBase(String id, RuleBaseConfiguration config, FactHandleFactory factHandleFactory)(Code)
Construct.
Parameters:
  rete - The rete network.




Method Detail
addClass
public void addClass(String className, byte[] bytes)(Code)



addPackage
public synchronized void addPackage(Package newPkg) throws PackageIntegrationException(Code)
Add a Package to the network. Iterates through the Package adding Each individual Rule to the network. Before update network each referenced WorkingMemory is locked.
Parameters:
  pkg - The package to add.
throws:
  PackageIntegrationException -
throws:
  RuleIntegrationException - if an error prevents complete construction of the network forthe Rule.
throws:
  FactException -
throws:
  InvalidPatternException -



addProcess
public synchronized void addProcess(Process process)(Code)



addRule
protected synchronized void addRule(Rule rule) throws InvalidPatternException(Code)



addStatefulSession
protected synchronized void addStatefulSession(StatefulSession statefulSession)(Code)



disposeStatefulSession
public synchronized void disposeStatefulSession(StatefulSession statefulSession)(Code)



doReadExternal
public void doReadExternal(ObjectInput stream, Object[] objects) throws IOException, ClassNotFoundException(Code)
Handles the read serialization of the Package. Patterns in Rules may reference generated data which cannot be serialized by default methods. The Package uses PackageCompilationData to hold a reference to the generated bytecode; which must be restored before any Rules. A custom ObjectInputStream, able to resolve classes against the bytecode in the PackageCompilationData, is used to restore the Rules.



doWriteExternal
public void doWriteExternal(ObjectOutput stream, Object[] objects) throws IOException(Code)
Handles the write serialization of the Package. Patterns in Rules may reference generated data which cannot be serialized by default methods. The Package uses PackageCompilationData to hold a reference to the generated bytecode. The generated bytecode must be restored before any Rules.



executeQueuedActions
public void executeQueuedActions()(Code)



getAgendaGroupRuleTotals
public Map getAgendaGroupRuleTotals()(Code)



getCompositePackageClassLoader
public CompositePackageClassLoader getCompositePackageClassLoader()(Code)



getConfiguration
public RuleBaseConfiguration getConfiguration()(Code)



getFactHandleFactory
public FactHandleFactory getFactHandleFactory()(Code)

See Also:   RuleBase



getGlobals
public Map getGlobals()(Code)



getId
public String getId()(Code)
the id



getMapBackedClassLoader
public MapBackedClassLoader getMapBackedClassLoader()(Code)



getPackage
public Package getPackage(String name)(Code)



getPackages
public Package[] getPackages()(Code)



getPackagesMap
public Map getPackagesMap()(Code)



getProcess
public Process getProcess(String id)(Code)



getProcesses
public Process[] getProcesses()(Code)



getStatefulSessions
public StatefulSession[] getStatefulSessions()(Code)



getWorkingMemories
public InternalWorkingMemory[] getWorkingMemories()(Code)



newFactHandleFactory
public FactHandleFactory newFactHandleFactory()(Code)



newStatefulSession
public StatefulSession newStatefulSession()(Code)

See Also:   RuleBase



newStatefulSession
abstract public StatefulSession newStatefulSession(boolean keepReference)(Code)

See Also:   RuleBase



newStatefulSession
public StatefulSession newStatefulSession(InputStream stream) throws IOException, ClassNotFoundException(Code)



newStatefulSession
public StatefulSession newStatefulSession(InputStream stream, boolean keepReference) throws IOException, ClassNotFoundException(Code)



nextWorkingMemoryCounter
public synchronized int nextWorkingMemoryCounter()(Code)



removeFunction
public void removeFunction(String packageName, String functionName)(Code)



removePackage
public synchronized void removePackage(String packageName)(Code)



removeProcess
public synchronized void removeProcess(String id)(Code)



removeRule
public void removeRule(String packageName, String ruleName)(Code)



removeRule
abstract protected void removeRule(Rule rule)(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.