Mercurial > hg > Members > nobuyasu > jungle-network
comparison src/alice/jungle/codesegment/HashLogUpdateCodeSegment.java @ 56:ccfe9b5e8f11
bug LogUpdateCodeSegment
author | one |
---|---|
date | Sun, 14 Jul 2013 21:26:49 +0900 |
parents | 61b2de3f7730 |
children | 4851344e120e |
comparison
equal
deleted
inserted
replaced
55:25edf76b65dc | 56:ccfe9b5e8f11 |
---|---|
6 import alice.jungle.datasegment.HashSetDataSegment; | 6 import alice.jungle.datasegment.HashSetDataSegment; |
7 | 7 |
8 public class HashLogUpdateCodeSegment extends CodeSegment { | 8 public class HashLogUpdateCodeSegment extends CodeSegment { |
9 | 9 |
10 Receiver hashLog = ids.create(CommandType.PEEK); | 10 Receiver hashLog = ids.create(CommandType.PEEK); |
11 Receiver logString = ids.create(CommandType.TAKE); | |
11 | 12 |
12 String str; | 13 public HashLogUpdateCodeSegment() { |
13 | |
14 public HashLogUpdateCodeSegment(String _str) { | |
15 hashLog.setKey("hashLog"); | 14 hashLog.setKey("hashLog"); |
16 str = _str; | 15 logString.setKey("logString"); |
17 } | 16 } |
18 | 17 |
19 public void run() { | 18 public void run() { |
20 System.out.println("HashLogUpdateCodeSegment"); | |
21 System.out.println("str : "+str); | |
22 HashSetDataSegment ds = hashLog.asClass(HashSetDataSegment.class); | 19 HashSetDataSegment ds = hashLog.asClass(HashSetDataSegment.class); |
20 String str = logString.asString(); | |
21 System.out.println("HashLogUpdateCodeSegment : "+ str); | |
23 ds.hash.add(str); | 22 ds.hash.add(str); |
24 ods.put("hashLog", ds); | 23 ods.put("hashLog", ds); |
25 } | 24 } |
26 | 25 |
27 } | 26 } |