Mercurial > hg > Members > tatsuki > Alice
view src/alice/test/codesegment/local/TestCodeSegment.java @ 192:a8b0d44bbe68 working
not use value object in bitonic
author | e095732 |
---|---|
date | Thu, 07 Mar 2013 22:20:54 +0900 |
parents | a85ff8dc16c1 |
children | caee170e6cfa |
line wrap: on
line source
package alice.test.codesegment.local; import alice.codesegment.CodeSegment; import alice.datasegment.CommandType; import alice.datasegment.Receiver; import alice.test.codesegment.local.bitonicsort.DataList; public class TestCodeSegment extends CodeSegment { static int count = 0; // create input datasegment arg1 Receiver arg1 = ids.create(CommandType.PEEK); public TestCodeSegment(){ arg1.setKey("key1"); } public TestCodeSegment(int index){ arg1.setKey("key1",index); } @Override public void run() { if(count > 0){ System.out.println(System.currentTimeMillis() - StartCodeSegment.t); System.exit(1); } DataList list = (DataList)arg1.obj; System.out.println("ssss"+list.table); //System.out.println(arg1.val); //ods.update("key1",arg1.asInteger()+1); new TestCodeSegment(); //new TestCodeSegment(arg1.index); count++; // DataSegment.get("local").update //ods.update("local", "key1", arg1.index); } }