Java Doc for ReteooRuleBase.java in  » Rule-Engine » drolls-Rule-Engine » org » drools » reteoo » 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.reteoo 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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

ReteooRuleBase
public class ReteooRuleBase extends AbstractRuleBase (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 InitialFactHandleDummyObject implements Serializable


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

Method Summary
protected synchronized  voidaddRule(Rule rule)
    
public  voidassertObject(FactHandle handle, Object object, PropagationContext context, InternalWorkingMemory workingMemory)
     Assert a fact object.
public  RetegetRete()
     Retrieve the Rete-OO network for this RuleBase.
public  ReteooBuildergetReteooBuilder()
    
public synchronized  StatefulSessionnewStatefulSession(boolean keepReference)
    
public  StatelessSessionnewStatelessSession()
    
public  voidreadExternal(ObjectInput stream)
     Handles the read serialization of the Package.
protected synchronized  voidremoveRule(Rule rule)
    
public  voidretractObject(FactHandle handle, PropagationContext context, ReteooWorkingMemory workingMemory)
     Retract a fact object.
public  voidwriteExternal(ObjectOutput stream)
     Handles the write serialization of the Package.


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



ReteooRuleBase
public ReteooRuleBase(String id)(Code)
Construct.
Parameters:
  rete - The rete network.



ReteooRuleBase
public ReteooRuleBase(String id, FactHandleFactory factHandleFactory)(Code)

Parameters:
  factHandleFactory -



ReteooRuleBase
public ReteooRuleBase(String id, RuleBaseConfiguration config)(Code)



ReteooRuleBase
public ReteooRuleBase(RuleBaseConfiguration config)(Code)

Parameters:
  config -



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




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



assertObject
public void assertObject(FactHandle handle, Object object, PropagationContext context, InternalWorkingMemory workingMemory) throws FactException(Code)
Assert a fact object.
Parameters:
  handle - The handle.
Parameters:
  object - The fact.
Parameters:
  workingMemory - The working-memory.
throws:
  FactException - If an error occurs while performing the assertion.



getRete
public Rete getRete()(Code)
Retrieve the Rete-OO network for this RuleBase. The RETE-OO network.



getReteooBuilder
public ReteooBuilder getReteooBuilder()(Code)



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

See Also:   RuleBase



newStatelessSession
public StatelessSession newStatelessSession()(Code)



readExternal
public void readExternal(ObjectInput stream) 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.



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



retractObject
public void retractObject(FactHandle handle, PropagationContext context, ReteooWorkingMemory workingMemory) throws FactException(Code)
Retract a fact object.
Parameters:
  handle - The handle.
Parameters:
  workingMemory - The working-memory.
throws:
  FactException - If an error occurs while performing the retraction.



writeExternal
public void writeExternal(ObjectOutput stream) 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.



Fields inherited from org.drools.common.AbstractRuleBase
protected Map agendaGroupRuleTotals(Code)(Java Doc)
protected transient MapBackedClassLoader classLoader(Code)(Java Doc)
protected RuleBaseConfiguration config(Code)(Java Doc)
protected FactHandleFactory factHandleFactory(Code)(Java Doc)
protected Map globals(Code)(Java Doc)
protected String id(Code)(Java Doc)
protected transient CompositePackageClassLoader packageClassLoader(Code)(Java Doc)
protected Map pkgs(Code)(Java Doc)
protected Map processes(Code)(Java Doc)
protected transient ObjectHashSet statefulSessions(Code)(Java Doc)
protected int workingMemoryCounter(Code)(Java Doc)

Methods inherited from org.drools.common.AbstractRuleBase
public void addClass(String className, byte[] bytes)(Code)(Java Doc)
public synchronized void addPackage(Package newPkg) throws PackageIntegrationException(Code)(Java Doc)
public synchronized void addProcess(Process process)(Code)(Java Doc)
protected synchronized void addRule(Rule rule) throws InvalidPatternException(Code)(Java Doc)
protected synchronized void addStatefulSession(StatefulSession statefulSession)(Code)(Java Doc)
public synchronized void disposeStatefulSession(StatefulSession statefulSession)(Code)(Java Doc)
public void doReadExternal(ObjectInput stream, Object[] objects) throws IOException, ClassNotFoundException(Code)(Java Doc)
public void doWriteExternal(ObjectOutput stream, Object[] objects) throws IOException(Code)(Java Doc)
public void executeQueuedActions()(Code)(Java Doc)
public Map getAgendaGroupRuleTotals()(Code)(Java Doc)
public CompositePackageClassLoader getCompositePackageClassLoader()(Code)(Java Doc)
public RuleBaseConfiguration getConfiguration()(Code)(Java Doc)
public FactHandleFactory getFactHandleFactory()(Code)(Java Doc)
public Map getGlobals()(Code)(Java Doc)
public String getId()(Code)(Java Doc)
public MapBackedClassLoader getMapBackedClassLoader()(Code)(Java Doc)
public Package getPackage(String name)(Code)(Java Doc)
public Package[] getPackages()(Code)(Java Doc)
public Map getPackagesMap()(Code)(Java Doc)
public Process getProcess(String id)(Code)(Java Doc)
public Process[] getProcesses()(Code)(Java Doc)
public StatefulSession[] getStatefulSessions()(Code)(Java Doc)
public InternalWorkingMemory[] getWorkingMemories()(Code)(Java Doc)
public FactHandleFactory newFactHandleFactory()(Code)(Java Doc)
public StatefulSession newStatefulSession()(Code)(Java Doc)
abstract public StatefulSession newStatefulSession(boolean keepReference)(Code)(Java Doc)
public StatefulSession newStatefulSession(InputStream stream) throws IOException, ClassNotFoundException(Code)(Java Doc)
public StatefulSession newStatefulSession(InputStream stream, boolean keepReference) throws IOException, ClassNotFoundException(Code)(Java Doc)
public synchronized int nextWorkingMemoryCounter()(Code)(Java Doc)
public void removeFunction(String packageName, String functionName)(Code)(Java Doc)
public synchronized void removePackage(String packageName)(Code)(Java Doc)
public synchronized void removeProcess(String id)(Code)(Java Doc)
public void removeRule(String packageName, String ruleName)(Code)(Java Doc)
abstract protected void removeRule(Rule rule)(Code)(Java Doc)

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.