annotate src/main/java/alice/test/topology/fish/GetStartX.java @ 393:38021fceabef draft multicast

test commit
author tatsuki
date Tue, 17 Jun 2014 17:39:47 +0900
parents 8f71c3e6f11d
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
345
8f71c3e6f11d Change directory structure Maven standard
sugi
parents:
diff changeset
1 package alice.test.topology.fish;
8f71c3e6f11d Change directory structure Maven standard
sugi
parents:
diff changeset
2
8f71c3e6f11d Change directory structure Maven standard
sugi
parents:
diff changeset
3 import alice.codesegment.CodeSegment;
8f71c3e6f11d Change directory structure Maven standard
sugi
parents:
diff changeset
4 import alice.datasegment.CommandType;
8f71c3e6f11d Change directory structure Maven standard
sugi
parents:
diff changeset
5 import alice.datasegment.Receiver;
8f71c3e6f11d Change directory structure Maven standard
sugi
parents:
diff changeset
6
8f71c3e6f11d Change directory structure Maven standard
sugi
parents:
diff changeset
7 public class GetStartX extends CodeSegment {
8f71c3e6f11d Change directory structure Maven standard
sugi
parents:
diff changeset
8
8f71c3e6f11d Change directory structure Maven standard
sugi
parents:
diff changeset
9 public Receiver startX = ids.create(CommandType.PEEK);
8f71c3e6f11d Change directory structure Maven standard
sugi
parents:
diff changeset
10
8f71c3e6f11d Change directory structure Maven standard
sugi
parents:
diff changeset
11 @Override
8f71c3e6f11d Change directory structure Maven standard
sugi
parents:
diff changeset
12 public void run() {
8f71c3e6f11d Change directory structure Maven standard
sugi
parents:
diff changeset
13 int startX = this.startX.asInteger();
8f71c3e6f11d Change directory structure Maven standard
sugi
parents:
diff changeset
14
8f71c3e6f11d Change directory structure Maven standard
sugi
parents:
diff changeset
15 System.out.println("GetStartX: " + startX);
8f71c3e6f11d Change directory structure Maven standard
sugi
parents:
diff changeset
16
8f71c3e6f11d Change directory structure Maven standard
sugi
parents:
diff changeset
17 GetStartX cs = new GetStartX();
8f71c3e6f11d Change directory structure Maven standard
sugi
parents:
diff changeset
18 cs.startX.setKey("local", "startX", this.startX.index);
8f71c3e6f11d Change directory structure Maven standard
sugi
parents:
diff changeset
19 }
8f71c3e6f11d Change directory structure Maven standard
sugi
parents:
diff changeset
20
8f71c3e6f11d Change directory structure Maven standard
sugi
parents:
diff changeset
21 }