105
|
1 package alice.codesegment.remote;
|
39
|
2
|
|
3 import alice.codesegment.CodeSegment;
|
|
4 import alice.datasegment.CommandType;
|
|
5 import alice.datasegment.Receiver;
|
|
6
|
|
7 public class ClientCodeSegment extends CodeSegment {
|
|
8
|
|
9 Receiver arg1 = ids.create(CommandType.TAKE);
|
|
10
|
|
11 public void run() {
|
|
12 System.out.println("--ClientCodeSegment--");
|
40
|
13 System.out.println("from : " + arg1.from);
|
|
14 System.out.println("index : "+ arg1.index);
|
39
|
15 int num = arg1.asInteger();
|
|
16 System.out.println("num : "+num);
|
|
17 num++;
|
|
18 ods.put("remote", "num", num);
|
|
19 System.exit(0);
|
40
|
20
|
39
|
21 }
|
|
22
|
|
23 }
|