=================================================================== RCS file: /home/cvs/OpenXM/src/OpenMath/PolyCalc.java,v retrieving revision 1.6 retrieving revision 1.9 diff -u -p -r1.6 -r1.9 --- OpenXM/src/OpenMath/PolyCalc.java 1999/11/10 21:25:48 1.6 +++ OpenXM/src/OpenMath/PolyCalc.java 2000/03/16 12:28:42 1.9 @@ -1,5 +1,5 @@ /** - * $OpenXM: OpenXM/src/OpenMath/PolyCalc.java,v 1.5 1999/11/02 15:58:11 tam Exp $ + * $OpenXM: OpenXM/src/OpenMath/PolyCalc.java,v 1.8 2000/01/28 06:22:01 tam Exp $ */ import JP.ac.kobe_u.math.tam.OpenXM.*; @@ -146,10 +146,12 @@ class PolyCalc extends Applet implements ActionListene }else if(arg.equals("grobner base")){ try{ debug("poly A: "+ poly1.getText()); - oxm.sendCMO(new CMO_STRING("[[("+ poly1.getText() +") ("+ poly2.getText() +")] (x,y)] gb")); - oxm.sendSM(new SM(SM.SM_executeStringByLocalParser)); - oxm.sendSM(new SM(SM.SM_popString)); - }catch(java.io.IOException e){} + oxm.send(new CMO_STRING("[[("+ poly1.getText() +") ("+ poly2.getText() +")] (x,y)] gb")); + oxm.send(new SM(SM.SM_executeStringByLocalParser)); + oxm.send(new SM(SM.SM_popString)); + }catch(java.io.IOException e){ + }catch(MathcapViolation e){ + } } /* if ("first".equals(arg)) { @@ -171,16 +173,22 @@ class PolyCalc extends Applet implements ActionListene +"("+ ControlPort +","+ DataPort +")\n"); try{ + /* + Runtime r = Runtime.getRuntime(); + + r.exec("ox -ox ox_sm1"); + */ oxm = new OpenXM(host,ControlPort,DataPort); textarea.append("Connected.\n"); - oxm.sendCMO(new CMO_STRING("(cohom.sm1) run ;\n")); - oxm.sendSM(new SM(SM.SM_executeStringByLocalParser)); + oxm.send(new CMO_STRING("(cohom.sm1) run ;\n")); + oxm.send(new SM(SM.SM_executeStringByLocalParser)); thread = new Thread(this); thread.start(); }catch(java.io.IOException e){ textarea.append("failed.\n"); stop(); + }catch(MathcapViolation e){ } }