view src/jungle/test/codesegment/practice/TestPutAttributeCodeSegment.java @ 17:c767e7af4d88

add TestPutAttributeCodeSegmnet and StartJungleCodeSegment
author one
date Fri, 28 Jun 2013 12:36:07 +0900
parents
children 2f1132767af2
line wrap: on
line source

package jungle.test.codesegment.practice;

import org.msgpack.type.Value;

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

public class TestPutAttributeCodeSegment extends CodeSegment {

	Receiver arg1 = ids.create(CommandType.TAKE);
	
	public TestPutAttributeCodeSegment() {
		arg1.setKey("log");
	}
	
	
	public void run() {
		System.out.println("type = " + arg1.type);
		System.out.println("index = " + arg1.index);
		System.out.println("data = " + arg1.getVal());
		System.out.println(((Value)arg1.getVal()).getType());

		
		
		
		
	}

}