[Pfc-prolog-cvs] prolix/src/org/asturlinux/frade/prolix/ejb/sessionjb ProlixMainBean.java,1.13,1.14
Status: Beta
Brought to you by:
ivanfrade
From: <iva...@us...> - 2003-07-04 13:06:40
|
Update of /cvsroot/pfc-prolog/prolix/src/org/asturlinux/frade/prolix/ejb/sessionjb In directory sc8-pr-cvs1:/tmp/cvs-serv19750/src/org/asturlinux/frade/prolix/ejb/sessionjb Modified Files: ProlixMainBean.java Log Message: Moved hardcoded program and consult code from bean to client Index: ProlixMainBean.java =================================================================== RCS file: /cvsroot/pfc-prolog/prolix/src/org/asturlinux/frade/prolix/ejb/sessionjb/ProlixMainBean.java,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** ProlixMainBean.java 2 Jul 2003 19:33:06 -0000 1.13 --- ProlixMainBean.java 4 Jul 2003 13:06:37 -0000 1.14 *************** *** 47,52 **** { ! private String _program = "hermano(X,Y):=padre(X,Z),padre(Y,Z).padre(Felipe,JC).padre(Helena,JC)"; ! private String _consult = "hermano(X,Y)"; private PrologContextDummy prologCtx; --- 47,52 ---- { ! private String _program; ! private String _consult; private PrologContextDummy prologCtx; *************** *** 60,65 **** throws LexicalException, SyntaxException { ! //Don't needed in simulation ! //_program = program; try --- 60,64 ---- throws LexicalException, SyntaxException { ! _program = program; try *************** *** 94,97 **** --- 93,97 ---- * Some format operations to obtain a pretty output * FIXME Delete last "." + * FIXME What happend if "loadProgram" is not previously called? */ StringBuffer result = new StringBuffer(_program); *************** *** 115,120 **** throws LexicalException, SyntaxException, ProgramNotLoadedException { ! // Don't needed in simulation ! //_consult = consult; //FIXME Could be prologCtx == null? --- 115,119 ---- throws LexicalException, SyntaxException, ProgramNotLoadedException { ! _consult = consult; //FIXME Could be prologCtx == null? |