Java Doc for QueueingRulesContainer.java in  » Rule-Engine » hammurapi-rules » biz » hammurapi » rules » 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 » hammurapi rules » biz.hammurapi.rules 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


biz.hammurapi.rules.RulesContainerBase
   biz.hammurapi.rules.QueueingRulesContainer

QueueingRulesContainer
public class QueueingRulesContainer extends RulesContainerBase (Code)
This rules container uses QueuingDispatcher and negation semantics for remove(). It can also leverage worker (thread pool) provided in worker-ref attribute for multithreaded inference. This container also uses loop detection.
author:
   Pavel Vlasov



Constructor Summary
public  QueueingRulesContainer()
    

Method Summary
public  voidadd(Object obj)
     Adds object to handle manager and dispatches to rules.
protected  booleancheckLoop(Object object)
     Checks recent conclusions and derivation depth to discard conclusions which came through dispatching too many times or conclusions with too big depth.
public  voidconfigure(Node configNode, Context context)
    
public  voidexecuteRules()
     Invokes dispatcher's join() to wait until all jobs are finished.
protected  CollectiongetObjectActions(Object obj)
     Returns actions performed when object was added to the database.
protected  NegatornewNegator(Object obj)
     Instantiates new negator.
protected  voidonDiscardedConclusion(Conclusion conclusion)
     Conclusions discarded because their derivation depth is too big are passed to this method. The method does nothing.
protected  voidonDispatchException(DispatchException exception)
     Consumes DispatchException.
public  voidremove(Object obj)
     Removes object from handle manager and recent facts.
public  voidreset()
    
public  voidstart()
    
public  voidstop()
    


Constructor Detail
QueueingRulesContainer
public QueueingRulesContainer()(Code)




Method Detail
add
public void add(Object obj)(Code)
Adds object to handle manager and dispatches to rules. If the object is instance of Negator the it is presented to collection manager.



checkLoop
protected boolean checkLoop(Object object)(Code)
Checks recent conclusions and derivation depth to discard conclusions which came through dispatching too many times or conclusions with too big depth.
Parameters:
  object - true if there is no loop



configure
public void configure(Node configNode, Context context) throws ConfigurationException(Code)



executeRules
public void executeRules()(Code)
Invokes dispatcher's join() to wait until all jobs are finished.



getObjectActions
protected Collection getObjectActions(Object obj)(Code)
Returns actions performed when object was added to the database. This method must be overriden by subclasses which implement ActionTracer.
Parameters:
  obj -



newNegator
protected Negator newNegator(Object obj)(Code)
Instantiates new negator.
Parameters:
  obj -



onDiscardedConclusion
protected void onDiscardedConclusion(Conclusion conclusion)(Code)
Conclusions discarded because their derivation depth is too big are passed to this method. The method does nothing. Override as needed.
Parameters:
  conclusion -



onDispatchException
protected void onDispatchException(DispatchException exception)(Code)
Consumes DispatchException. This implementation just prints stack trace. Override if needed.
Parameters:
  exception -



remove
public void remove(Object obj)(Code)
Removes object from handle manager and recent facts. Then creates a negator, negates facts in collection manager and then dispatches the object to remove methods. Subclasses implementing ActionTracing undo actions instead of using a negator.



reset
public void reset()(Code)



start
public void start() throws ConfigurationException(Code)



stop
public void stop() throws ConfigurationException(Code)



Methods inherited from biz.hammurapi.rules.RulesContainerBase
protected String getComponentName(Node node)(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.