annotate src/alice/test/topology/aquarium/fx/OtherNode.java @ 18:4e5507afb41f

"MAXSIZE" change automatically
author e095732
date Mon, 04 Feb 2013 01:23:24 +0900
parents e027d228c455
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
6f44308ee519 aquarium with javafx
YU
parents:
diff changeset
1 package alice.test.topology.aquarium.fx;
6f44308ee519 aquarium with javafx
YU
parents:
diff changeset
2
6f44308ee519 aquarium with javafx
YU
parents:
diff changeset
3 import alice.codesegment.CodeSegment;
13
5f9709c253f7 add width
e095732
parents: 10
diff changeset
4 import alice.datasegment.CommandType;
5f9709c253f7 add width
e095732
parents: 10
diff changeset
5 import alice.datasegment.Receiver;
0
6f44308ee519 aquarium with javafx
YU
parents:
diff changeset
6
6f44308ee519 aquarium with javafx
YU
parents:
diff changeset
7 public class OtherNode extends CodeSegment{
13
5f9709c253f7 add width
e095732
parents: 10
diff changeset
8
5f9709c253f7 add width
e095732
parents: 10
diff changeset
9 private Receiver data1 = ids.create(CommandType.PEEK);
5f9709c253f7 add width
e095732
parents: 10
diff changeset
10 private Receiver data2 = ids.create(CommandType.PEEK);
5f9709c253f7 add width
e095732
parents: 10
diff changeset
11
5f9709c253f7 add width
e095732
parents: 10
diff changeset
12 public OtherNode(){
5f9709c253f7 add width
e095732
parents: 10
diff changeset
13 data1.setKey("width");
5f9709c253f7 add width
e095732
parents: 10
diff changeset
14 data2.setKey("mynum");
5f9709c253f7 add width
e095732
parents: 10
diff changeset
15 }
0
6f44308ee519 aquarium with javafx
YU
parents:
diff changeset
16
6f44308ee519 aquarium with javafx
YU
parents:
diff changeset
17 @Override
6f44308ee519 aquarium with javafx
YU
parents:
diff changeset
18 public void run() {
6f44308ee519 aquarium with javafx
YU
parents:
diff changeset
19 ods.put("local", "list", new RoutingTable("parent"));
6f44308ee519 aquarium with javafx
YU
parents:
diff changeset
20 new RegistRoutingTable();
18
4e5507afb41f "MAXSIZE" change automatically
e095732
parents: 14
diff changeset
21 ods.put("local", "MAXSIZE", 800);
0
6f44308ee519 aquarium with javafx
YU
parents:
diff changeset
22 ods.put("parent", "member", "ADD_MEM");
18
4e5507afb41f "MAXSIZE" change automatically
e095732
parents: 14
diff changeset
23 ods.put("parent", "CHILD", "ADD");
13
5f9709c253f7 add width
e095732
parents: 10
diff changeset
24 int startX = data1.asInteger() * data2.asInteger();
5f9709c253f7 add width
e095732
parents: 10
diff changeset
25 ods.put("local", "startX", startX);
18
4e5507afb41f "MAXSIZE" change automatically
e095732
parents: 14
diff changeset
26 new SendMessage();
4e5507afb41f "MAXSIZE" change automatically
e095732
parents: 14
diff changeset
27 new Share("MAXSIZE");
10
bf24d5200770 executable
e095732
parents: 1
diff changeset
28 Aquarium aqua = new Aquarium();
bf24d5200770 executable
e095732
parents: 1
diff changeset
29 aqua.run();
0
6f44308ee519 aquarium with javafx
YU
parents:
diff changeset
30 }
6f44308ee519 aquarium with javafx
YU
parents:
diff changeset
31
6f44308ee519 aquarium with javafx
YU
parents:
diff changeset
32 }