annotate src/jungle/test/bbs/codesegment/PutAnotherLogCodeSegment.java @ 40:7e94de2d6bc0

add PutAnotherLogCodeSegment, PutHostLogCodeSegment
author one
date Tue, 09 Jul 2013 17:32:06 +0900
parents
children 4419ac56cbfd
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
40
7e94de2d6bc0 add PutAnotherLogCodeSegment, PutHostLogCodeSegment
one
parents:
diff changeset
1 package jungle.test.bbs.codesegment;
7e94de2d6bc0 add PutAnotherLogCodeSegment, PutHostLogCodeSegment
one
parents:
diff changeset
2
7e94de2d6bc0 add PutAnotherLogCodeSegment, PutHostLogCodeSegment
one
parents:
diff changeset
3 import org.msgpack.type.Value;
7e94de2d6bc0 add PutAnotherLogCodeSegment, PutHostLogCodeSegment
one
parents:
diff changeset
4
7e94de2d6bc0 add PutAnotherLogCodeSegment, PutHostLogCodeSegment
one
parents:
diff changeset
5 import alice.codesegment.CodeSegment;
7e94de2d6bc0 add PutAnotherLogCodeSegment, PutHostLogCodeSegment
one
parents:
diff changeset
6 import alice.datasegment.CommandType;
7e94de2d6bc0 add PutAnotherLogCodeSegment, PutHostLogCodeSegment
one
parents:
diff changeset
7 import alice.datasegment.Receiver;
7e94de2d6bc0 add PutAnotherLogCodeSegment, PutHostLogCodeSegment
one
parents:
diff changeset
8
7e94de2d6bc0 add PutAnotherLogCodeSegment, PutHostLogCodeSegment
one
parents:
diff changeset
9 public class PutAnotherLogCodeSegment extends CodeSegment {
7e94de2d6bc0 add PutAnotherLogCodeSegment, PutHostLogCodeSegment
one
parents:
diff changeset
10
7e94de2d6bc0 add PutAnotherLogCodeSegment, PutHostLogCodeSegment
one
parents:
diff changeset
11 public Receiver arg1 = ids.create(CommandType.TAKE);
7e94de2d6bc0 add PutAnotherLogCodeSegment, PutHostLogCodeSegment
one
parents:
diff changeset
12
7e94de2d6bc0 add PutAnotherLogCodeSegment, PutHostLogCodeSegment
one
parents:
diff changeset
13 public void run() {
7e94de2d6bc0 add PutAnotherLogCodeSegment, PutHostLogCodeSegment
one
parents:
diff changeset
14 Value v = (Value)arg1.getVal();
7e94de2d6bc0 add PutAnotherLogCodeSegment, PutHostLogCodeSegment
one
parents:
diff changeset
15 ods.put("remote", "anotherLog", v);
7e94de2d6bc0 add PutAnotherLogCodeSegment, PutHostLogCodeSegment
one
parents:
diff changeset
16 PutAnotherLogCodeSegment cs = new PutAnotherLogCodeSegment();
7e94de2d6bc0 add PutAnotherLogCodeSegment, PutHostLogCodeSegment
one
parents:
diff changeset
17 cs.arg1.setKey("local", "log");
7e94de2d6bc0 add PutAnotherLogCodeSegment, PutHostLogCodeSegment
one
parents:
diff changeset
18
7e94de2d6bc0 add PutAnotherLogCodeSegment, PutHostLogCodeSegment
one
parents:
diff changeset
19 }
7e94de2d6bc0 add PutAnotherLogCodeSegment, PutHostLogCodeSegment
one
parents:
diff changeset
20
7e94de2d6bc0 add PutAnotherLogCodeSegment, PutHostLogCodeSegment
one
parents:
diff changeset
21 }