114
|
1 package fdl.old.test.metaTransfer.Ring;
|
53
|
2
|
|
3 import java.io.IOException;
|
|
4
|
|
5 import fdl.FDLindaServ;
|
|
6 import fdl.MetaLinda;
|
|
7
|
|
8 public class FDLServWithSend extends FDLindaServ {
|
|
9 int port1;
|
|
10 public FDLServWithSend(int port,int port1) throws IOException {
|
|
11 super(port);
|
|
12 this.port1 = port1;
|
|
13 }
|
|
14
|
|
15 @Override public void mainLoop() {
|
|
16 System.out.println("change mainloop");
|
97
|
17 MetaLinda ml = new MetaLinda(this.tupleSpace,this);
|
66
|
18 MetaProtocolEngine mpe = new MetaProtocolEngine(ml,"MetaEngine", port1, port1);
|
97
|
19 mpe.mainLoop(ml);
|
53
|
20 }
|
|
21
|
|
22 }
|