Mercurial > hg > Database > Alice
comparison src/alice/test/codesegment/RemoteStartCodeSegment.java @ 14:e3f1b21718b0
implements RemoteDataSegment
author | kazz <kazz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 15 Jan 2012 00:56:25 +0900 |
parents | |
children | 72dd27d952b0 |
comparison
equal
deleted
inserted
replaced
13:30f97d776a3e | 14:e3f1b21718b0 |
---|---|
1 package alice.test.codesegment; | |
2 | |
3 import org.msgpack.type.Value; | |
4 import org.msgpack.type.ValueFactory; | |
5 | |
6 import alice.codesegment.CodeSegment; | |
7 | |
8 public class RemoteStartCodeSegment extends CodeSegment { | |
9 | |
10 @Override | |
11 public void run() { | |
12 CodeSegment cs = new RemoteIncrement(); | |
13 cs.ids.take("num", "remote", "num"); | |
14 cs.ids.execute(); | |
15 | |
16 Value num = ValueFactory.createIntegerValue(0); | |
17 ods.put("local", "num", num); | |
18 } | |
19 | |
20 } |