comparison src/alice/test/codesegment/RemoteStartCodeSegment.java @ 18:72dd27d952b0

change InputDataSegment API
author kazz <kazz@cr.ie.u-ryukyu.ac.jp>
date Sun, 15 Jan 2012 16:03:11 +0900
parents e3f1b21718b0
children e7867328a2fb
comparison
equal deleted inserted replaced
17:bb075e103cd3 18:72dd27d952b0
4 import org.msgpack.type.ValueFactory; 4 import org.msgpack.type.ValueFactory;
5 5
6 import alice.codesegment.CodeSegment; 6 import alice.codesegment.CodeSegment;
7 7
8 public class RemoteStartCodeSegment extends CodeSegment { 8 public class RemoteStartCodeSegment extends CodeSegment {
9 9
10 @Override 10 @Override
11 public void run() { 11 public void run() {
12 CodeSegment cs = new RemoteIncrement(); 12 RemoteIncrement cs = new RemoteIncrement();
13 cs.ids.take("num", "remote", "num"); 13 cs.num.setKey("remote", "num");
14 cs.ids.execute(); 14 cs.ids.execute();
15 15
16 Value num = ValueFactory.createIntegerValue(0); 16 Value num = ValueFactory.createIntegerValue(0);
17 ods.put("local", "num", num); 17 ods.put("local", "num", num);
18 } 18 }