comparison src/main/java/christie/test/StartTest.java @ 2:bacdcb5e6dcf

change StartCodeGear static
author Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
date Tue, 12 Dec 2017 16:48:30 +0900
parents 3ea61d0bfc34
children e3bb0eea73f2
comparison
equal deleted inserted replaced
1:3ea61d0bfc34 2:bacdcb5e6dcf
1 package christie.test; 1 package christie.test;
2 2
3 import christie.codegear.CodeGearManager;
4 import christie.codegear.StartCodeGear; 3 import christie.codegear.StartCodeGear;
5 import christie.datagear.StringData; 4 import christie.datagear.StringData;
6 5
7 import java.util.concurrent.ThreadPoolExecutor;
8
9 public class StartTest implements StartCodeGear{ 6 public class StartTest implements StartCodeGear{
10 public static void main(String args[]){ 7 public static void main(String args[]){
11 StartTest start = new StartTest();
12 TestCodeGear test = new TestCodeGear(); 8 TestCodeGear test = new TestCodeGear();
13 CodeGearManager cgm = start.createCodeGearManager(start.createThreadPool()); 9 test.start(StartCodeGear.createCGM("first"));
14 test.setKey(cgm); 10 test.put("hoge", new StringData("hogehogehoge"));
15 test.odg.initODG(cgm, test);
16 test.odg.put("hoge", new StringData("hogehogehoge"));
17 } 11 }
18 } 12 }