Annotation of OpenXM/src/OpenMath/ORG/openxm/tam/EngineProcess.java, Revision 1.1
1.1 ! tam 1: /**
! 2: * $OpenXM$
! 3: */
! 4: package ORG.openxm.tam;
! 5:
! 6: /**
! 7: * OpenXM $B%5!<%P$N7W;;%W%m%;%9$r5-=R$9$k%/%i%9(B.
! 8: */
! 9: public abstract class EngineProcess{
! 10: private OpenXMstream stream;
! 11:
! 12: public EngineProcess(OpenXMstream stream){
! 13: this.stream = stream;
! 14:
! 15: new Thread(){
! 16: public void run(){
! 17: readEvalLoop(getOpenXMstream());
! 18: }
! 19: }.start();
! 20: }
! 21:
! 22: private OpenXMstream getOpenXMstream(){
! 23: return stream;
! 24: }
! 25:
! 26: abstract private void readEvalLoop(OpenXMstream DataStream);
! 27:
! 28: /**
! 29: * main $B%a%=%C%I$N5-=RNc(B
! 30: final public static void main(String[] argv) throws java.io.IOException{
! 31: new EngineProcess(new OpenXMstream(System.in,System.out));
! 32: }
! 33: */
! 34: }
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>