=================================================================== RCS file: /home/cvs/OpenXM/src/OpenMath/PolyCalc.java,v retrieving revision 1.11 retrieving revision 1.13 diff -u -p -r1.11 -r1.13 --- OpenXM/src/OpenMath/PolyCalc.java 2000/10/11 08:32:13 1.11 +++ OpenXM/src/OpenMath/PolyCalc.java 2005/07/17 02:48:21 1.13 @@ -1,8 +1,16 @@ /** - * $OpenXM: OpenXM/src/OpenMath/PolyCalc.java,v 1.10 2000/04/02 19:24:40 tam Exp $ + * $OpenXM: OpenXM/src/OpenMath/PolyCalc.java,v 1.12 2000/10/11 09:34:06 ohara Exp $ */ -import JP.ac.kobe_u.math.tam.OpenXM.*; +/* + How to try. + ox -ox ox_sm1 + java PolyCalc + Input two polynomials in x and y and Press the grobner base button. + Actions for other buttons have not yet been implemented. + */ + +import ORG.openxm.tam.*; import java.applet.*; import java.awt.event.*; import java.awt.*; @@ -121,7 +129,7 @@ class PolyCalc extends Applet implements ActionListene while(true){ OXmessage tmp = oxm.receive(); - textarea.append("=> "+ tmp +"\n"); + textarea.append("=> "+ tmp.getBody() +"\n"); Thread.yield(); } }catch(java.io.IOException e){} @@ -170,7 +178,7 @@ class PolyCalc extends Applet implements ActionListene */ oxm = new OpenXM(host,ControlPort,DataPort); textarea.append("Connected.\n"); - oxm.send(new CMO_STRING("(cohom.sm1) run ;\n")); + oxm.send(new CMO_STRING("[(parse) (cohom.sm1) pushfile] extension ;\n")); oxm.send(new SM(SM.SM_executeStringByLocalParser)); thread = new Thread(this);