Source Code Cross Referenced for KnowledgeBase.java in  » Rule-Engine » Mandarax » org » mandarax » kernel » 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 » Mandarax » org.mandarax.kernel 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * Copyright (C) 1999-2004 <A href="http://www-ist.massey.ac.nz/JBDietrich" target="_top">Jens Dietrich</a>
003:         *
004:         * This library is free software; you can redistribute it and/or
005:         * modify it under the terms of the GNU Lesser General Public
006:         * License as published by the Free Software Foundation; either
007:         * version 2 of the License, or (at your option) any later version.
008:         *
009:         * This library is distributed in the hope that it will be useful,
010:         * but WITHOUT ANY WARRANTY; without even the implied warranty of
011:         * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
012:         * Lesser General Public License for more details.
013:         *
014:         * You should have received a copy of the GNU Lesser General Public
015:         * License along with this library; if not, write to the Free Software
016:         * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
017:         */
018:        package org.mandarax.kernel;
019:
020:        import java.util.Iterator;
021:        import java.util.List;
022:        import org.mandarax.kernel.validation.TestCase;
023:
024:        /**
025:         * Knowledge Base objects are containers managing knowledge represented
026:         * by clauses sets (this includes facts and rules).
027:         * <br/>
028:         * As from version 1.9 the knowledge base manages also a set of (named) queries.
029:         * This is consistent with <a href="www.ruleml.org">RuleML</a> where knowledge bases ("rule bases") also contain queries.
030:         * <br/>
031:         * New methods for adding/removing plugins to the knowledgebase are added since 3.3.1 (by Adrian Paschke).
032:         * <br/>
033:         * New methods for adding/removing test cases to the knowledgebase are added since 3.4 (by Jens Dietrich).
034:         * @see org.mandarax.kernel.Fact
035:         * @see org.mandarax.kernel.Rule
036:         * @see org.mandarax.kernel.ClauseSet
037:         * @see org.mandarax.kernel.validation.TestCase
038:         * @author <A href="http://www-ist.massey.ac.nz/JBDietrich" target="_top">Jens Dietrich</A>
039:         * @version 3.4 <7 March 05>
040:         * @since 1.0
041:         */
042:        public interface KnowledgeBase extends KnowledgeOwner,
043:                ClauseSetChangeListener {
044:
045:            /**
046:             * Add a plugin to knowledgebase
047:             * @parameter plugin a KnowledgeBase
048:             * @parameter id String - the URI of the plugin
049:             * @since 3.3.1 added by Adrian Paschke
050:             */
051:            void addPlugIn(KnowledgeBase plugin, String id);
052:
053:            /**
054:             * Add a plugin to knowledgebase
055:             * @parameter plugin a KnowledgeBase
056:             * @parameter id String - the URI of the plugin
057:             * @since 3.3.1 added by Adrian Paschke
058:             */
059:            void addPlugIn(List plugin, String id);
060:
061:            /**
062:             * Add a plugin to knowledgebase
063:             * @parameter plugin a KnowledgeBase
064:             * @parameter id String - the URI of the plugin
065:             * @since 3.3.1 added by Adrian Paschke
066:             */
067:            void addPlugIn(ClauseSet[] plugin, String id);
068:
069:            /**
070:             * Remove a plugin with the id from knowledgebase
071:             * @parameter id String - the plugin URI
072:             * @since 3.3.1 added by Adrian Paschke 
073:             */
074:            void removePlugIn(String id);
075:
076:            /**
077:             * Add a clause set.
078:             * @param c a clause set
079:             */
080:            void add(ClauseSet c);
081:
082:            /**
083:             * Add a knowledge base change listener.
084:             * @param l a listener
085:             */
086:            void addKnowledgeBaseChangeListener(KnowledgeBaseChangeListener l);
087:
088:            /**
089:             * Get a collection containing all clause sets.
090:             * @return a list containing all clause sets
091:             */
092:            java.util.List getClauseSets();
093:
094:            /**
095:             * Get a collection containing all clause sets that have the key.
096:             * @param the key object
097:             * @return a list containing all clause sets
098:             */
099:            java.util.List getClauseSets(Object key);
100:
101:            /**
102:             * Get the feature descriptions.
103:             * @return the feature descriptions
104:             */
105:            KnowledgeBaseFeatureDescriptions getFeatureDescriptions();
106:
107:            /**
108:             * Get the keys.
109:             * @return the list of keys
110:             */
111:            java.util.Collection getKeys();
112:
113:            /**
114:             * Remove a clause.
115:             * @return true if the object has been found (true) or not (false)
116:             * @param c org.mandarax.kernel.ClauseSet
117:             */
118:            public boolean remove(ClauseSet c);
119:
120:            /**
121:             * Remove all clauses.
122:             */
123:            public void removeAll();
124:
125:            /**
126:             * Remove a knowledge base change listener.
127:             * @param l a listener
128:             */
129:            void removeKnowledgeBaseChangeListener(KnowledgeBaseChangeListener l);
130:
131:            /**
132:             * Add a query.
133:             * @param q a query
134:             */
135:            void addQuery(Query q);
136:
137:            /**
138:             * Remove a query.
139:             * @param q a query
140:             * @return true if the object has been found (true) or not (false)
141:             */
142:            boolean removeQuery(Query q);
143:
144:            /**
145:             * Get a query by name or null if there is no query with this name.
146:             * @param queryName a query name
147:             * @return a query of null if there is no query registered with this name
148:             */
149:            Query getQuery(String queryName);
150:
151:            /**
152:             * Get an iterator for the names of all queries registered.
153:             * @return an iterator
154:             */
155:            Iterator queryNames();
156:
157:            /**
158:             * Get an iterator for all queries registered.
159:             * @return an iterator
160:             */
161:            Iterator queries();
162:
163:            /**
164:             * Get an iterator for all predicates contained (in any clause set with-) in the kb.
165:             * @return an iterator
166:             */
167:            Iterator predicates();
168:
169:            /**
170:             * Get a predicate by name.
171:             * Note that there might by more than one predicate in the kb with the same name.
172:             * In some cases, this makes sense (e.g. polymorphic predicates such as &lt for different
173:             * types), but should be avoided for "custom" predicates (such as SimplePredicates).
174:             * In this case, this method should return one predicate. In this case, applications can still use
175:             * predicates() in order to find all predicates with a particular name.
176:             * @return a predicate or null indicating that the kb does not contain a predicate with this name
177:             * @param name a predicate name
178:             */
179:            Predicate getPredicate(String name);
180:
181:            /**
182:             * Add a test case.
183:             * @param testCase a test case
184:             */
185:            void addTestCase(TestCase testCase);
186:
187:            /**
188:             * Remove a test case.
189:             * @param testCase a test case
190:             * @return true if the object has been found (true) or not (false)
191:             */
192:            boolean removeTestCase(TestCase testCase);
193:
194:            /**
195:             * Get an iterator for all test cases registered.
196:             * @return an iterator
197:             */
198:            Iterator testcases();
199:
200:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.