Mercurial > hg > Database > Alice
view src/main/java/alice/test/codesegment/local/bitonicsort/SetInfo.java @ 345:8f71c3e6f11d
Change directory structure Maven standard
author | sugi |
---|---|
date | Wed, 16 Apr 2014 18:26:07 +0900 |
parents | |
children | aefbe41fcf12 |
line wrap: on
line source
package alice.test.codesegment.local.bitonicsort; import alice.codesegment.CodeSegment; public class SetInfo extends CodeSegment { private SortConfig conf; public static String[] range; public static String[] array; public static String[] count; public SetInfo(SortConfig conf) { this.conf = conf; } @Override public void run() { ods.put("sortconf", conf); ods.put("data", new DataList(conf.length)); // sortconf and datasegments should be passed directory. create_keys(); new MakeData(); new SetTask(); } private void create_keys() { range = new String[conf.length]; array = new String[conf.length]; count = new String[conf.length]; for(int i = 0 ; i < conf.length ; i++) { range[i] = "range" + i; array[i] = "array" + i; count[i] = "count" + i; } } }