Mercurial > hg > Database > jungle-network
comparison src/alice/jungle/codesegment/HashLogUpdateCodeSegment.java @ 52:61b2de3f7730
add HashSetDataSegment and HashLogUpdateCodeSegment.
fix bugs
author | one |
---|---|
date | Sat, 13 Jul 2013 17:10:14 +0900 |
parents | |
children | ccfe9b5e8f11 |
comparison
equal
deleted
inserted
replaced
51:9e782b4eb06e | 52:61b2de3f7730 |
---|---|
1 package alice.jungle.codesegment; | |
2 | |
3 import alice.codesegment.CodeSegment; | |
4 import alice.datasegment.CommandType; | |
5 import alice.datasegment.Receiver; | |
6 import alice.jungle.datasegment.HashSetDataSegment; | |
7 | |
8 public class HashLogUpdateCodeSegment extends CodeSegment { | |
9 | |
10 Receiver hashLog = ids.create(CommandType.PEEK); | |
11 | |
12 String str; | |
13 | |
14 public HashLogUpdateCodeSegment(String _str) { | |
15 hashLog.setKey("hashLog"); | |
16 str = _str; | |
17 } | |
18 | |
19 public void run() { | |
20 System.out.println("HashLogUpdateCodeSegment"); | |
21 System.out.println("str : "+str); | |
22 HashSetDataSegment ds = hashLog.asClass(HashSetDataSegment.class); | |
23 ds.hash.add(str); | |
24 ods.put("hashLog", ds); | |
25 } | |
26 | |
27 } |