view src/jungle/test/bbs/codesegment/HashLogUpdateCodeSegment.java @ 64:16135d5e804f

remove print debug info
author one
date Fri, 19 Jul 2013 11:16:48 +0900
parents 8a532ca5df80
children
line wrap: on
line source

package jungle.test.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);
	}
}