view src/jungle/test/bbs/codesegment/PutAnotherLogCodeSegment.java @ 40:7e94de2d6bc0

add PutAnotherLogCodeSegment, PutHostLogCodeSegment
author one
date Tue, 09 Jul 2013 17:32:06 +0900
parents
children 4419ac56cbfd
line wrap: on
line source

package jungle.test.bbs.codesegment;

import org.msgpack.type.Value;

import alice.codesegment.CodeSegment;
import alice.datasegment.CommandType;
import alice.datasegment.Receiver;

public class PutAnotherLogCodeSegment extends CodeSegment {
	
	public Receiver arg1 = ids.create(CommandType.TAKE);
	
	public void run() {
		Value v = (Value)arg1.getVal();
		ods.put("remote", "anotherLog", v);
		PutAnotherLogCodeSegment cs = new PutAnotherLogCodeSegment();
		cs.arg1.setKey("local", "log");		
		
	}

}