annotate src/alice/test/codesegment/api/TakeCodeSegment.java @ 128:9db7fcf98ee9 working

add ApiTest take
author sugi
date Mon, 06 Aug 2012 17:35:45 +0900
parents
children f151dea22b2c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
128
9db7fcf98ee9 add ApiTest take
sugi
parents:
diff changeset
1 package alice.test.codesegment.api;
9db7fcf98ee9 add ApiTest take
sugi
parents:
diff changeset
2
9db7fcf98ee9 add ApiTest take
sugi
parents:
diff changeset
3 import alice.codesegment.CodeSegment;
9db7fcf98ee9 add ApiTest take
sugi
parents:
diff changeset
4 import alice.datasegment.CommandType;
9db7fcf98ee9 add ApiTest take
sugi
parents:
diff changeset
5 import alice.datasegment.Receiver;
9db7fcf98ee9 add ApiTest take
sugi
parents:
diff changeset
6
9db7fcf98ee9 add ApiTest take
sugi
parents:
diff changeset
7 public class TakeCodeSegment extends CodeSegment {
9db7fcf98ee9 add ApiTest take
sugi
parents:
diff changeset
8
9db7fcf98ee9 add ApiTest take
sugi
parents:
diff changeset
9 Receiver ds1 = ids.create(CommandType.TAKE);
9db7fcf98ee9 add ApiTest take
sugi
parents:
diff changeset
10
9db7fcf98ee9 add ApiTest take
sugi
parents:
diff changeset
11 public TakeCodeSegment(){
9db7fcf98ee9 add ApiTest take
sugi
parents:
diff changeset
12 this.ds1.setKey("num");
9db7fcf98ee9 add ApiTest take
sugi
parents:
diff changeset
13 }
9db7fcf98ee9 add ApiTest take
sugi
parents:
diff changeset
14 @Override
9db7fcf98ee9 add ApiTest take
sugi
parents:
diff changeset
15 public void run() {
9db7fcf98ee9 add ApiTest take
sugi
parents:
diff changeset
16 new TakeCodeSegment();
9db7fcf98ee9 add ApiTest take
sugi
parents:
diff changeset
17
9db7fcf98ee9 add ApiTest take
sugi
parents:
diff changeset
18 }
9db7fcf98ee9 add ApiTest take
sugi
parents:
diff changeset
19 }