view src/fdl/test/metaTransfer/FDLServWithSend.java @ 97:0ea086f0e96f fuchita

main loop modification, for easy meta engine addition. add comments.
author one
date Wed, 26 May 2010 10:49:50 +0900
parents 82a292aa41ad
children
line wrap: on
line source

package fdl.test.metaTransfer;

import java.io.IOException;

import fdl.FDLindaServ;
import fdl.MetaLinda;


public class FDLServWithSend extends FDLindaServ {
	int port1;
	public FDLServWithSend(int port,int port1) throws IOException {
		super(port);
		this.port1 = port1;
	}

	@Override public void mainLoop() {
		System.out.println("change mainloop");
		MetaLinda ml = new MetaLinda(this.tupleSpace,this);
		MetaProtocolEngine mpe = new MetaProtocolEngine(ml,"MetaEngine", port1);
		mpe.mainLoop(ml);
	}

}