freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

疾病診斷小型專家系統(tǒng)人工智能課程設(shè)計報告-文庫吧

2025-06-09 15:13 本頁面


【正文】 private JTextArea jta 。 private JLabel jl。 private Problem problem。 private Action l = new Action()。 class Action implements ActionListener{ public void actionPerformed(ActionEvent e) { if(YES.equals(())){ if(null!=()){ ().setIstrue(true)。 } }else if(NO.equals(())){ (aaa)。 if(null!=()){ (aaa)。 ().setIstrue(true)。 } } ()。 problem=initProblem()。 if(problem==null){ ArrayListFact facts=()。 String result=。 for(int i=0,n=1。i()。i++){ String des = (i).getDescribe()。 if(!null.equals(des)){ result+=i+1+.+des+\n。 n++。 } } (推理結(jié)果如下: )。 (result)。 (false)。 (false)。 return。 } 10 } } } package 專家系統(tǒng) _V2。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 public class Execution { public boolean init(){ try { (())。 } catch (ParserConfigurationException e) { ()。 } catch (SAXException e) { (())。 } catch (IOException e) { ()。 } catch (NullPointerException e){ (找不到相應(yīng)的 xml文件,請檢查 xml文件名是否符合規(guī)范 )。 } return false。 } 11 private void initXML(String file) throws ParserConfigurationException, SAXException, IOException{ DocumentBuilderFactory dbf = ()。 DocumentBuilder builder = ()。 Document doc=null。 try{ doc = (new File(file))。 }catch(Exception e){ (())。 } Element root = ()。 // 獲取根元素 expert_name=(name)。 //取得名字 //獲取事實 fact NodeList allfacts = (facts)。 NodeList onefacts = ((Element)(0)).getElementsByTagName(fact)。 for(int i=0。i()。i++){ Element onefact = (Element)(i)。 Fact fact = new Fact()。 try{ ((name).item(0).getFirstChild().getNodeValue())。 ((describe).item(0).getFirstChild().getNodeValue())。 }catch(NullPointerException e){ (fact 中缺少相應(yīng)標(biāo)簽 )。 } ((), fact)。 } //獲取推理 reasoning NodeList allreasonings = (reasonings)。 NodeList onereasonings = ((Element)(0)).getElementsByTagName(reasoning)。 for(int i=0。i()。i++){ Element onereasoning = (Element)(i)。 Reasoning reasoning = new Reasoning()。 NodeList reasons = (reason)。 if(()==0){ (reasoning 中不可以缺少 reason 標(biāo)簽 )。 } for(int j=0。j()。j++){ 12 String name=(j).getFirstChild().getNodeValue()。 if((name)!=null){ ().add((name))。 }else{ (reason 標(biāo)簽內(nèi)容不正確,沒有對應(yīng)事實 )。 } } NodeList results = (result)。 if(()==0){ (reasoning 中不可以缺少 result 標(biāo)簽 )。 } for(int j=0。j()。j++){ String name=(j).getFirstChild().getNodeValue()。 if((name)!=null){ ().add((name))。 }else{ (result 標(biāo)簽內(nèi)容不正確,沒有對應(yīng)事實 )。 } } (reasoning)。 } //獲取問題 problem NodeList allproblems = (problems)。 NodeList oneproblems = ((Element)(0)).getElementsByTagName(problem)。
點擊復(fù)制文檔內(nèi)容
研究報告相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1