public void updateData(){
		Time currentTime = Simulator.getWorld().getCurrentTime();
		String currentHour = String.valueOf(currentTime.getHour());
		Time unitTime = Conf.UnitTime;
		DistributionBoard dBoad = ems.getdBoad();
		PowerMeter pmBuy = dBoad.getBuyMeter();
		PowerMeter pmSell = dBoad.getSellMeter();

		//電力の販売量と購入量
		amountElec.addValue(pmBuy.getMeter().getWat(), "Consume", currentTime.toStringEng());
		amountElec.addValue(pmSell.getMeter().getWat(), "Provide", currentTime.toStringEng());

		//金額の販売量と購入量
		Money currnetBuyMoney = ems.getCurrnetBuyMoney();
		Money currentSellMoney = ems.getCurrentSellMoney();
		amountMoney.addValue(currnetBuyMoney.getAmount(),"Buy",currentTime.toStringEng());
		amountMoney.addValue(currentSellMoney.getAmount(),"Sell",currentTime.toStringEng());

		//１時間あたりの消費・供給電力
		if(currentTime.getHour()>0&&currentTime.getHour()!=currentTime.add(unitTime).getHour()){
			int productionPerHour = Simulator.getWorld().getWeather().getProdcution().getWat()*(3600/unitTime.getAllSecond());
			int providePerHour = ems.getSellElecMap().get(currentTime.getHour()).getWat();
			providePerHour-=ems.getSellElecMap().get(currentTime.getHour()-1).getWat();

			int useProductionElec = productionPerHour-providePerHour;

			int consumePerHour = ems.getBuyElecMap().get(currentTime.getHour()).getWat();
			consumePerHour-=ems.getBuyElecMap().get(currentTime.getHour()-1).getWat();
			consumePerHour+=useProductionElec;

			amountElecPerHour.addValue(consumePerHour,"Consume" , currentHour);
			amountElecPerHour.addValue(productionPerHour,"Provide" , currentHour);
		}

		//１時間あたりの購入・売却金額
		if(currentTime.getHour()>0&&currentTime.getHour()!=currentTime.add(unitTime).getHour()){
			Money moneyBuy = ems.getBuyMoneyMap().get(currentTime.getHour());
			moneyBuy=moneyBuy.sub(ems.getBuyMoneyMap().get(currentTime.getHour()-1));

			Money moneySell = ems.getSellMoneyMap().get(currentTime.getHour());
			moneySell = moneySell.sub(ems.getSellMoneyMap().get(currentTime.getHour()-1));
			amountMoneyperHour.addValue(moneyBuy.getAmount(),"buy" , currentHour);
			amountMoneyperHour.addValue(moneySell.getAmount(),"sell" , currentHour);
		}

		//出力用のデータ
		Money currnetBuyMoneyOP = ems.getCurrnetBuyMoney();
		try {
			Money beforeBuyMoneyOP = new Money(Integer.parseInt(beforeData.readLine()));
			//現在の電気料金
			forOutPut.addValue(currnetBuyMoneyOP.getAmount(),"Now",currentTime.toStringEng());
			//過去の電気料金
			forOutPut.addValue(beforeBuyMoneyOP.getAmount(),"Before",currentTime.toStringEng());
			//目標の電気料金
			forOutPut.addValue(beforeBuyMoneyOP.getAmount()*0.85,"Dest",currentTime.toStringEng());
		} catch (NumberFormatException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}

		//出力用のデータ2
		try {
			int beforeBuy = Integer.parseInt(beforeData2.readLine());
			//現在の電気料金
			forOutPut2.addValue(pmBuy.getMeter().getWat(),"Now",currentTime.toStringEng());
			//過去の電気料金
			forOutPut2.addValue(beforeBuy,"Before",currentTime.toStringEng());
			//目標の電気料金
			forOutPut2.addValue(beforeBuy*0.85,"Dest",currentTime.toStringEng());
		} catch (NumberFormatException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}