| 
					
				 | 
			
			
				@@ -310,6 +310,8 @@ public class TemplateGenerator2 { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         dataModel.put("fireInteractionPath", "/home/disaster/fire/Fire.interaction"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         //midPath 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         dataModel.put("monitorPath", BPATH + "/" + aid + "/" + jid + "/monitor.in"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        dataModel.put("peakin", BPATH + "/" + aid + "/" + jid + "/monitor.in"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         //midPath 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         dataModel.put("midPath", BPATH + "/" + aid + "/" + jid + "/fire" + "/mid"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         //outPath 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -368,11 +370,14 @@ public class TemplateGenerator2 { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         // 设置模板所在目录 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         cfg.setClassForTemplateLoading(TemplateGenerator2.class, "/templates"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         // 获取模板对象 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        Template template = cfg.getTemplate("fireRunsh.ftl"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        Template template = cfg.getTemplate("fire2Runsh.ftl"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         // 定义数据模型(Map) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         Map<String, Object> dataModel = new HashMap<>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         //几何文件路径 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         dataModel.put("firecontrolPath", BPATH + "/" + aid + "/" + jid + "/fire" + "/Fire.control"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //几何文件路径 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        dataModel.put("fireEscapeControlPath", BPATH + "/" + aid + "/" + jid + "/" + "/fire" + "/FireEscape.control"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         // 将数据模型传入模板进行处理 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         StringWriter writer = new StringWriter(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         template.process(dataModel, writer); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -448,6 +453,30 @@ public class TemplateGenerator2 { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         fileWriter.close(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public static void createFireEsccapeControl(Integer aid, Integer jid) throws IOException, TemplateException { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        Configuration cfg = new Configuration(Configuration.VERSION_2_3_0); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        // 设置模板所在目录 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        cfg.setClassForTemplateLoading(TemplateGenerator2.class, "/templates"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        // 获取模板对象 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        Template template = cfg.getTemplate("fire2EscapeControl.ftl"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        // 定义数据模型(Map) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        Map<String, Object> dataModel = new HashMap<>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //几何文件路径 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        dataModel.put("geoFilePath", BPATH + "/" + aid + "/" + jid + "/Geometry"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        dataModel.put("midPath", BPATH + "/" + aid + "/" + jid + "/water" + "/mid"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+         dataModel.put("outPath", BPATH + "/" + aid + "/" + jid + "/water" + "/out"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        // 将数据模型传入模板进行处理 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        StringWriter writer = new StringWriter(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        template.process(dataModel, writer); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        mkDirs(aid, jid, "/fire"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        FileWriter fileWriter = new FileWriter(BPATH + "/" + aid + "/" + jid + "/" + "/fire" + "/FireEscape.control"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        fileWriter.write(writer.toString()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        fileWriter.close(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public static void main(String[] args) throws Exception { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 //        TemplateGenerator.createWaterRunsh(5); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 |