annotate src/fdl/old/test/metaTransfer/Ring/FDLServWithSend.java @ 114:3b877c9a44f5

gather old packages
author kazz
date Mon, 11 Oct 2010 14:29:37 +0900
parents src/fdl/test/metaTransfer/Ring/FDLServWithSend.java@0ea086f0e96f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
114
3b877c9a44f5 gather old packages
kazz
parents: 97
diff changeset
1 package fdl.old.test.metaTransfer.Ring;
53
629b6cfbd37f metaprotocol ring
axmo
parents:
diff changeset
2
629b6cfbd37f metaprotocol ring
axmo
parents:
diff changeset
3 import java.io.IOException;
629b6cfbd37f metaprotocol ring
axmo
parents:
diff changeset
4
629b6cfbd37f metaprotocol ring
axmo
parents:
diff changeset
5 import fdl.FDLindaServ;
629b6cfbd37f metaprotocol ring
axmo
parents:
diff changeset
6 import fdl.MetaLinda;
629b6cfbd37f metaprotocol ring
axmo
parents:
diff changeset
7
629b6cfbd37f metaprotocol ring
axmo
parents:
diff changeset
8 public class FDLServWithSend extends FDLindaServ {
629b6cfbd37f metaprotocol ring
axmo
parents:
diff changeset
9 int port1;
629b6cfbd37f metaprotocol ring
axmo
parents:
diff changeset
10 public FDLServWithSend(int port,int port1) throws IOException {
629b6cfbd37f metaprotocol ring
axmo
parents:
diff changeset
11 super(port);
629b6cfbd37f metaprotocol ring
axmo
parents:
diff changeset
12 this.port1 = port1;
629b6cfbd37f metaprotocol ring
axmo
parents:
diff changeset
13 }
629b6cfbd37f metaprotocol ring
axmo
parents:
diff changeset
14
629b6cfbd37f metaprotocol ring
axmo
parents:
diff changeset
15 @Override public void mainLoop() {
629b6cfbd37f metaprotocol ring
axmo
parents:
diff changeset
16 System.out.println("change mainloop");
97
0ea086f0e96f main loop modification, for easy meta engine addition.
one
parents: 66
diff changeset
17 MetaLinda ml = new MetaLinda(this.tupleSpace,this);
66
one
parents: 65
diff changeset
18 MetaProtocolEngine mpe = new MetaProtocolEngine(ml,"MetaEngine", port1, port1);
97
0ea086f0e96f main loop modification, for easy meta engine addition.
one
parents: 66
diff changeset
19 mpe.mainLoop(ml);
53
629b6cfbd37f metaprotocol ring
axmo
parents:
diff changeset
20 }
629b6cfbd37f metaprotocol ring
axmo
parents:
diff changeset
21
629b6cfbd37f metaprotocol ring
axmo
parents:
diff changeset
22 }