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