Mercurial > hg > Database > jungle-network
view src/alice/jungle/codesegment/HashLogUpdateCodeSegment.java @ 58:4851344e120e
fix bug LogUpdateCodeSegment and ChildLogCheckCodeSegment
author | one |
---|---|
date | Mon, 15 Jul 2013 10:13:34 +0900 |
parents | ccfe9b5e8f11 |
children |
line wrap: on
line source
package alice.jungle.codesegment; import alice.codesegment.CodeSegment; import alice.datasegment.CommandType; import alice.datasegment.Receiver; import alice.jungle.datasegment.HashSetDataSegment; public class HashLogUpdateCodeSegment extends CodeSegment { Receiver hashLog = ids.create(CommandType.PEEK); Receiver logString = ids.create(CommandType.TAKE); public HashLogUpdateCodeSegment() { hashLog.setKey("hashLog"); logString.setKey("logString"); } public void run() { HashSetDataSegment ds = hashLog.asClass(HashSetDataSegment.class); String str = logString.asString(); System.out.println("HashLogUpdateCodeSegment : "+ str); ds.hash.add(str); ods.put("hashLog", ds); } }