Mercurial > hg > Database > Alice
annotate src/main/java/alice/test/codesegment/api/TakeCodeSegment.java @ 419:aefbe41fcf12 dispose
change tab to space
author | sugi |
---|---|
date | Tue, 15 Jul 2014 16:00:22 +0900 |
parents | 8f71c3e6f11d |
children | 6e304a7a60e7 |
rev | line source |
---|---|
345 | 1 package alice.test.codesegment.api; |
2 | |
3 import alice.codesegment.CodeSegment; | |
4 import alice.datasegment.CommandType; | |
5 import alice.datasegment.Receiver; | |
6 | |
7 public class TakeCodeSegment extends CodeSegment { | |
419 | 8 |
9 Receiver ds1 = ids.create(CommandType.TAKE); | |
10 | |
11 public TakeCodeSegment(String key){ | |
12 this.ds1.setKey(key); | |
13 } | |
14 @Override | |
15 public void run() { | |
16 new TakeCodeSegment(ds1.key); | |
17 | |
18 } | |
345 | 19 } |