annotate src/test/java/alice/daemon/ReceiveString.java @ 508:b7d02ea79850 dispose

change multicast Data Segment API
author sugi
date Sun, 04 Jan 2015 13:51:01 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
508
b7d02ea79850 change multicast Data Segment API
sugi
parents:
diff changeset
1 package alice.daemon;
b7d02ea79850 change multicast Data Segment API
sugi
parents:
diff changeset
2
b7d02ea79850 change multicast Data Segment API
sugi
parents:
diff changeset
3 import alice.codesegment.CodeSegment;
b7d02ea79850 change multicast Data Segment API
sugi
parents:
diff changeset
4 import alice.datasegment.CommandType;
b7d02ea79850 change multicast Data Segment API
sugi
parents:
diff changeset
5 import alice.datasegment.Receiver;
b7d02ea79850 change multicast Data Segment API
sugi
parents:
diff changeset
6
b7d02ea79850 change multicast Data Segment API
sugi
parents:
diff changeset
7 public class ReceiveString extends CodeSegment {
b7d02ea79850 change multicast Data Segment API
sugi
parents:
diff changeset
8
b7d02ea79850 change multicast Data Segment API
sugi
parents:
diff changeset
9 public Receiver str = ids.create(CommandType.TAKE);
b7d02ea79850 change multicast Data Segment API
sugi
parents:
diff changeset
10
b7d02ea79850 change multicast Data Segment API
sugi
parents:
diff changeset
11 @Override
b7d02ea79850 change multicast Data Segment API
sugi
parents:
diff changeset
12 public void run() {
b7d02ea79850 change multicast Data Segment API
sugi
parents:
diff changeset
13 System.out.println(str.asString());
b7d02ea79850 change multicast Data Segment API
sugi
parents:
diff changeset
14 System.exit(0);
b7d02ea79850 change multicast Data Segment API
sugi
parents:
diff changeset
15 }
b7d02ea79850 change multicast Data Segment API
sugi
parents:
diff changeset
16
b7d02ea79850 change multicast Data Segment API
sugi
parents:
diff changeset
17 }