public Simulator() throws InterruptedException{
		GUIManager.simulator=this;
		phase=Phase.INIT;
		Thread simulatorThread = new Thread(new Runnable() {

			@Override
			public void run() {
				Log.finer("maked Simulation Instance.");
				setting();
				int periodTime = Conf.CountPeriod;//１秒で何回
				long start,end,sub,sleepTime;
				while(true){
					start=System.currentTimeMillis();
					select();
					end=System.currentTimeMillis();
					sub=end-start;//selectの実行時間
					sleepTime=1000/periodTime-sub;
					try {
						Thread.sleep((sleepTime>=0?sleepTime:0));
					} catch (InterruptedException e) {
						e.printStackTrace();
					}
				}
			}
		});
		simulatorThread.start();
		Log.finer("end of Simulation Instance.");
	}