01: /**
02: * Copyright 2007 Jens Dietrich Licensed under the Apache License, Version 2.0 (the "License");
03: * you may not use this file except in compliance with the License.
04: * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
05: * Unless required by applicable law or agreed to in writing, software distributed under the
06: * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
07: * either express or implied. See the License for the specific language governing permissions
08: * and limitations under the License.
09: */package nz.org.take;
10:
11: /**
12: * Represents external fact stores.
13: * The compiler will generate a resourec iterator factory interface
14: * for these fact stores that can then be implemented.
15: * Typically, an implementation is based on a database or web service.
16: * @author <a href="http://www-ist.massey.ac.nz/JBDietrich/">Jens Dietrich</a>
17: */
18:
19: public class ExternalFactStore extends AbstractAnnotatable implements
20: KnowledgeElement {
21:
22: private String id = null;
23: private SimplePredicate predicate = null;
24:
25: public void accept(KnowledgeBaseVisitor visitor) {
26: visitor.visit(this );
27: visitor.endVisit(this );
28: }
29:
30: public String getId() {
31: return id;
32: }
33:
34: public void setId(String id) {
35: this .id = id;
36: }
37:
38: public SimplePredicate getPredicate() {
39: return predicate;
40: }
41:
42: public void setPredicate(SimplePredicate predicate) {
43: this.predicate = predicate;
44: }
45:
46: }
|