001: /*
002: * Created on Oct 27, 2003
003: *
004: * To change the template for this generated file go to
005: * Window>Preferences>Java>Code Generation>Code and Comments
006: */
007: package org.jlisa;
008:
009: import java.io.InputStream;
010: import java.io.PrintStream;
011: import java.util.List;
012:
013: import javax.rules.Handle;
014: import javax.rules.InvalidHandleException;
015: import javax.rules.InvalidRuleSessionException;
016: import javax.rules.ObjectFilter;
017: import javax.rules.RuleExecutionSetMetadata;
018: import javax.rules.StatefulRuleSession;
019:
020: import org.armedbear.lisp.ConditionThrowable;
021: import org.armedbear.lisp.Interpreter;
022:
023: /**
024: * @author beedlem
025: *
026: * To change the template for this generated type comment go to
027: * Window>Preferences>Java>Code Generation>Code and Comments
028: */
029: public class JLisa implements StatefulRuleSession {
030:
031: private static InputStream in = System.in;
032: private static PrintStream out = System.out;
033: private static PrintStream err = System.err;
034:
035: /**
036: * NOT IN JSR!!!!
037: */
038: void run() {
039: _instance.run();
040: }
041:
042: Interpreter _instance = Interpreter.createInstance(in, out,
043: "/eclipse/workspace/JLisa/src/org/jlisa");
044:
045: /**
046: *
047: */
048: public JLisa() {
049: super ();
050: // TODO Auto-generated constructor stub
051: }
052:
053: /* (non-Javadoc)
054: * @see javax.rules.StatefulRuleSession#containsObject(javax.rules.Handle)
055: */
056: public boolean containsObject(Handle arg0)
057: throws InvalidRuleSessionException, InvalidHandleException {
058: // TODO Auto-generated method stub
059: return false;
060: }
061:
062: /* (non-Javadoc)
063: * @see javax.rules.StatefulRuleSession#addObject(java.lang.Object)
064: */
065: public Handle addObject(Object arg0)
066: throws InvalidRuleSessionException {
067: // TODO Auto-generated method stub
068: return null;
069: }
070:
071: /* (non-Javadoc)
072: * @see javax.rules.StatefulRuleSession#addObjects(java.util.List)
073: */
074: public List addObjects(List arg0)
075: throws InvalidRuleSessionException {
076: // TODO Auto-generated method stub
077: return null;
078: }
079:
080: /* (non-Javadoc)
081: * @see javax.rules.StatefulRuleSession#updateObject(javax.rules.Handle, java.lang.Object)
082: */
083: public void updateObject(Handle arg0, Object arg1)
084: throws InvalidRuleSessionException, InvalidHandleException {
085: // TODO Auto-generated method stub
086:
087: }
088:
089: /* (non-Javadoc)
090: * @see javax.rules.StatefulRuleSession#removeObject(javax.rules.Handle)
091: */
092: public void removeObject(Handle arg0)
093: throws InvalidHandleException, InvalidRuleSessionException {
094: // TODO Auto-generated method stub
095:
096: }
097:
098: /* (non-Javadoc)
099: * @see javax.rules.StatefulRuleSession#getObjects()
100: */
101: public List getObjects() throws InvalidRuleSessionException {
102: // TODO Auto-generated method stub
103: return null;
104: }
105:
106: /* (non-Javadoc)
107: * @see javax.rules.StatefulRuleSession#getObjects(javax.rules.ObjectFilter)
108: */
109: public List getObjects(ObjectFilter arg0)
110: throws InvalidRuleSessionException {
111: // TODO Auto-generated method stub
112: return null;
113: }
114:
115: /* (non-Javadoc)
116: * @see javax.rules.StatefulRuleSession#executeRules()
117: */
118: public void executeRules() throws InvalidRuleSessionException {
119: try {
120: // TODO Auto-generated method stub
121: _instance.evaluate("(load \"load-lisa.lisp\")");
122: } catch (ConditionThrowable e) {
123: // TODO Auto-generated catch block
124: e.printStackTrace();
125: }
126:
127: }
128:
129: /* (non-Javadoc)
130: * @see javax.rules.StatefulRuleSession#reset()
131: */
132: public void reset() throws InvalidRuleSessionException {
133: // TODO Auto-generated method stub
134:
135: }
136:
137: /* (non-Javadoc)
138: * @see javax.rules.StatefulRuleSession#getObject(javax.rules.Handle)
139: */
140: public Object getObject(Handle arg0) throws InvalidHandleException,
141: InvalidRuleSessionException {
142: // TODO Auto-generated method stub
143: return null;
144: }
145:
146: /* (non-Javadoc)
147: * @see javax.rules.RuleSession#getRuleExecutionSetMetadata()
148: */
149: public RuleExecutionSetMetadata getRuleExecutionSetMetadata()
150: throws InvalidRuleSessionException {
151: // TODO Auto-generated method stub
152: return null;
153: }
154:
155: /* (non-Javadoc)
156: * @see javax.rules.RuleSession#release()
157: */
158: public void release() throws InvalidRuleSessionException {
159: // TODO Auto-generated method stub
160:
161: }
162:
163: /* (non-Javadoc)
164: * @see javax.rules.RuleSession#getType()
165: */
166: public int getType() throws InvalidRuleSessionException {
167: // TODO Auto-generated method stub
168: return 0;
169: }
170:
171: }
|