Mercurial > hg > Members > nobuyasu > jungle-network
view src/jungle/app/bbs/codesegment/HashLogUpdateCodeSegment.java @ 66:29127ac788a6
move some files
author | one |
---|---|
date | Tue, 20 Aug 2013 17:38:09 +0900 |
parents | src/jungle/test/bbs/codesegment/HashLogUpdateCodeSegment.java@16135d5e804f |
children |
line wrap: on
line source
package jungle.app.bbs.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(); ds.hash.add(str); ods.put("hashLog", ds); } }