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 HostCodeSegment extends CodeSegment {
|
|
8
|
|
9 Receiver arg1 = ids.create(CommandType.TAKE);
|
|
10
|
|
11 public void run() {
|
|
12 System.out.println("--HostCodeSegment--");
|
40
|
13 System.out.println("index : "+ arg1.index);
|
|
14 System.out.println("from : "+ arg1.from);
|
39
|
15 int num = arg1.asInteger();
|
|
16 System.out.println("num : "+ num);
|
|
17 num++;
|
|
18 ods.put("local", "num", num);
|
|
19 System.exit(0);
|
|
20 /*
|
|
21 HostCodeSegment cs = new HostCodeSegment();
|
|
22 cs.arg1.setKey("local","num");
|
|
23 */
|
|
24 }
|
|
25 }
|