亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? usedcar.clp

?? 介紹ANTLR使用的JAVA程序例子
?? CLP
?? 第 1 頁 / 共 4 頁
字號:



         (defrule starter
              ?init <- (initial-fact)
         =>
              (retract ?init)
              (printout t "  " crlf)
              (printout t "  " crlf)
              (printout t "  " crlf)
              (printout t "  " crlf)
              (printout t "              ")
              (printout t "      W E L C O M E   T O   I A J S" crlf)
              (printout t "  " crlf)
              (printout t " This Intelligent Automobile Judgement ")
              (printout t "System will help the unknowledgable used ")
              (printout t "  " crlf)
              (printout t "auto buyer make a sound decision ")
              (printout t " in the purchase of a used car." crlf)
              (printout t "  " crlf)
              (printout t "You, the purchaser, will be asked a series")
              (printout t " of yes/no questions about the auto in" crlf)
              (printout t "question. You will also be asked to perform")
              (printout t " some simple tests. At the end of the " crlf)
              (printout t "program a list of possible trouble areas ")
              (printout t "and a recommendation on the purchase" crlf)
              (printout t "  " crlf)
              (printout t " of the car will be made." crlf)
              (printout t "  " crlf)
              (printout t "This system assumes that the buyer wants a")
              (printout t " dependable driving car not in need of "crlf)
              (printout t "major repairs. " crlf)
              (printout t "  " crlf)
              (printout t "  " crlf)
              (printout t " Hit <cr> to begin our consulting" crlf)
              (printout t "  " crlf)
              (printout t "  " crlf)
              (printout t "  " crlf)
              (bind ?answer (readline))
              (assert (screen 2)))



         (defrule first-scrn
              ?scrn <- (screen 2)
         =>
              (retract ?scrn)
              (bind ?count 0)
              (while (<= ?count 25)
                 (printout t " " crlf)
                 (bind ?count (+ ?count 1)))
              (printout t "              ")
              (printout t " I will take you through 3 test phases" crlf)
              (printout t " " crlf)
              (printout t "              ")
              (printout t "          1. VISUAL INSPECTION" crlf)
              (printout t " " crlf)








              (printout t "              ")
              (printout t "          2. ENGINE RUNNING" crlf)
              (printout t " " crlf)
              (printout t "              ")
              (printout t "          3. ROAD TEST" crlf)
              (printout t " " crlf)
              (printout t "              ")
              (printout t "To begin the visual, hit <cr> " crlf)
              (printout t " " crlf)
              (printout t " " crlf)
              (printout t " " crlf)
              (printout t " " crlf)
              (printout t " " crlf)
              (printout t " " crlf)
              (printout t " " crlf)
              (bind ?answer (readline))
              (assert (start visual)))


         (defrule visual1
              ?start <- (start visual)
         =>
              (retract ?start)
              (bind ?count 0)
              (while (<= ?count 20)
                 (printout t " " crlf)
                 (bind ?count (+ ?count 1)))
              (printout t " The first thing to do is find the types of")
              (printout t " options on the car. Please answer" crlf)
              (printout t " " crlf)
              (printout t "yes or no to the following questions. If")
              (printout t " you don't know the answer, ask the " crlf)
              (printout t " " crlf)
              (printout t "seller" crlf)
              (printout t " " crlf)
              (printout t " " crlf)
              (assert (find options)))

         (defrule option1
              ?opt <- (find options)
         =>
              (retract ?opt)
              (printout t "Does the car have AIR CONDITIONING?" crlf)
              (printout t " " crlf)
              (bind ?air (read))
              (printout t " " crlf)
              (printout t "How about POWER STEERING? " crlf)
              (printout t " " crlf)
              (bind ?psteer (read))
              (printout t " " crlf)
              (printout t "Are the brakes POWER ASSISTED?" crlf)
              (printout t " " crlf)
              (bind ?pbrake (read))
              (printout t " " crlf)








              (printout t "Does it have an AUTOMATIC TRANSMISSION?")
              (printout t " " crlf)
              (printout t " " crlf)
              (bind ?auto (read))
              (printout t " " crlf)
              (printout t "How many cylinder engine?" crlf)
              (printout t " " crlf)
              (bind ?cyl (read))
              (printout t " " crlf)
              (printout t "Is it a REAR WHEEL DRIVE car?" crlf)
              (printout t " " crlf)
              (bind ?rwd (read))
              (printout t " " crlf)
              (printout t "What YEAR model is the car?" crlf)
              (printout t " " crlf)
              (bind ?year (read))
              (printout t " " crlf)
              (printout t "Does the car have gauges in the dash?" crlf)
              (printout t " " crlf)
              (bind ?dash (read))
              (printout t " " crlf)
              (printout t " " crlf)
              (printout t " " crlf)
              (printout t "               ")
              (printout t "Thanks for the info. " crlf)
              (printout t " " crlf)
              (printout t "            ")
              (printout t "Let's look at the car now." crlf)
              (assert (options airc ?air))
              (assert (options powers ?psteer))
              (assert (options powerb ?pbrake))
              (assert (options tran ?auto))
              (assert (options eng ?cyl))
              (assert (options drive ?rwd))
              (assert (options yr ?year))
              (assert (options dhgages ?dash))
              (assert (inspect the outside)))


         ;  USER INTERFACE TO RULES  vis outside of car


         (defrule vis1
              (inspect the outside)
         =>
              (printout t " " crlf)
              (printout t "Does the car seem to sit level?" crlf)
              (printout t " " crlf)
              (bind ?level (read))
              (assert (lvl ?level)))



         (defrule vis2








              (inspect the outside)
         =>
              (printout t " " crlf)
              (printout t "Do windows and doors fit correctly?" crlf)
              (printout t " " crlf)
              (bind ?wdfit (read))
              (assert (fit ?wdfit)))


         (defrule vis3
              (inspect the outside)
         =>
              (printout t " " crlf)
              (printout t "Is the trunk clean and neat?" crlf)
              (printout t " " crlf)
              (bind ?trnk (read))
              (assert (trk ?trnk)))


         (defrule vis4
              (inspect the outside)
         =>
              (printout t " " crlf)
              (printout t "Is there minor dents in the body?" crlf)
              (printout t " " crlf)
              (bind ?dent (read))
              (assert (dnt ?dent)))


         (defrule vis5
              (inspect the outside)
         =>
              (printout t " " crlf)
              (printout t "When looking down the car do the")
              (printout t " panels line up?" crlf)
              (printout t " " crlf)
              (bind ?pnls (read))
              (assert (pnl ?pnls)))


         (defrule vis6
              (inspect the outside)
         =>
              (printout t " " crlf)
              (printout t "Is there obvious rust on the body?" crlf)
              (printout t " " crlf)
              (bind ?rust (read))
              (assert (rst ?rust)))



         (defrule vis6-5
              (inspect the outside)
         =>








              (printout t " " crlf)
              (printout t "Is the pressure good in all tires?" crlf)
              (printout t " " crlf)
              (bind ?tire (read))
              (assert (tir ?tire)))


         ;RULES ABOUT CAR
         ;---------------------------------------------------------

         (defrule vis7
              ?rusty <- (rst ?rust)
              (test (eq ?rust yes))
         =>
              (assert (CAR HAS BODY RUST))
              (retract ?rusty))



         (defrule vis7-5
              (declare (salience -200))
              ?rusty <- (rst ?rust)
              (test (eq ?rust no))
         =>
              (retract ?rusty))



         (defrule vis8
              ?panel <- (pnl ?pnls)
              (test (eq ?pnls no))
         =>
              (assert (MAY HAVE FRAME DAMAGE))
              (retract ?panel))


         (defrule vis8-5
              (declare (salience -200))
              ?panel <- (pnl ?pnls)
              (test (eq ?pnls yes))
         =>
              (retract ?panel))



         (defrule vis9
              ?dents <- (dnt ?dent)
              (test (eq ?dent yes))
         =>
              (assert (PARKING LOT DAMAGE))
              (retract ?dents))











         (defrule vis10
              ?trunk <- (trk ?truk)
              (test (eq ?truk yes))
         =>
              (assert (WELL CARED FOR))
              (retract ?trunk))



         (defrule vis11
              ?doors <- (fit ?wdfit)
              (test (eq ?wdfit no))
         =>
              (assert (EVIDENCE OF MAJOR ACCIDENT))
              (retract ?doors))


         (defrule vis12
              ?even <- (lvl ?level)
              (test (eq ?level no))
         =>
              (assert (POSSIBLE SUSPENSION PROBLEMS))
              (assert (POSSIBLE BENT FRAME))
              (retract ?even))



         (defrule vis13
              ?tires <- (tir ?tire)
              (test (eq ?tire no))
         =>
              (assert (UNEVEN TIRE PRESSURE))
              (retract ?tires))


         ;---------------------------------------------------------

         ;USER INTERFACE engine compartment

         (defrule vis14
              (inspect the outside)
         =>
              (printout t " " crlf)
              (printout t "Do the engine belts show any wear?" crlf)
              (printout t " " crlf)
              (bind ?belt (read))
              (assert (blt ?belt)))


         (defrule vis15
              (inspect the outside)
         =>
              (printout t " " crlf)
              (printout t "Do the hoses show any wear?" crlf)








              (printout t " " crlf)
              (bind ?hose (read))
              (assert (hos ?hose)))


         (defrule vis16
              (inspect the outside)
         =>
              (printout t " " crlf)
              (printout t "Is there a smell of gasoline?     " crlf)
              (printout t " " crlf)
              (bind ?gaso (read))
              (assert (gas ?gaso)))


         (defrule vis17
              (inspect the outside)
         =>
              (printout t " " crlf)
              (printout t "Is the radiator fluid clean, green ")
              (printout t "and full" crlf)
              (printout t " " crlf)
              (bind ?radr (read))
              (assert (rad ?radr)))


         (defrule vis18
              (inspect the outside)
              (options tran yes)
         =>
              (printout t " " crlf)
              (printout t "Does the transmission fluid look or ")
              (printout t "smell burnt" crlf)
              (printout t " " crlf)
              (bind ?trany (read))
              (assert (tny ?trany)))


         (defrule vis19
              (inspect the outside)
              (options tran yes)
         =>
              (printout t " " crlf)
              (printout t "Is the transmission full of fluid?" crlf)
              (printout t " " crlf)
              (bind ?tranf (read))
              (assert (tnf ?tranf)))


         (defrule vis20
              (inspect the outside)
         =>
              (printout t " " crlf)
              (printout t "Is the brake system full of fluid?" crlf)








              (printout t " " crlf)
              (bind ?brakf (read))
              (assert (bkf ?brakf)))


         (defrule vis21

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产成人精品免费一区二区| 国产日韩精品一区二区浪潮av | 91在线视频播放| 国产精品美女www爽爽爽| av不卡一区二区三区| 亚洲人成人一区二区在线观看| 99精品国产热久久91蜜凸| 一区二区三区中文字幕电影 | 久久综合九色综合97婷婷| 国产麻豆日韩欧美久久| 国产精品免费aⅴ片在线观看| 91在线视频观看| 日韩在线播放一区二区| 久久久久久久网| 91香蕉视频黄| 午夜电影一区二区三区| xfplay精品久久| 99视频在线观看一区三区| 亚洲sss视频在线视频| 亚洲精品一区二区三区蜜桃下载| 成人自拍视频在线观看| 亚洲一区二区视频| 精品国产欧美一区二区| 色妞www精品视频| 麻豆91免费看| 亚洲欧美偷拍三级| 日韩欧美自拍偷拍| 91麻豆自制传媒国产之光| 日本欧美大码aⅴ在线播放| 国产欧美日韩一区二区三区在线观看| 欧美日韩亚州综合| 成人在线视频首页| 美腿丝袜亚洲综合| 亚洲三级电影网站| 久久麻豆一区二区| 欧美精品v国产精品v日韩精品| 成人丝袜视频网| 日本中文一区二区三区| 亚洲欧美激情插| 国产日产欧美一区二区三区| 4438x亚洲最大成人网| 色综合久久综合网97色综合| 狠狠色2019综合网| 亚洲成人激情av| 亚洲欧洲性图库| 久久久久久一二三区| 欧美疯狂做受xxxx富婆| 在线亚洲欧美专区二区| 成人午夜激情片| 精品亚洲欧美一区| 午夜欧美2019年伦理| 亚洲色欲色欲www在线观看| 久久嫩草精品久久久久| 日韩一区二区三区高清免费看看| 色久优优欧美色久优优| 成人性色生活片免费看爆迷你毛片| 日韩成人av影视| 婷婷成人激情在线网| 亚洲黄色av一区| 亚洲免费在线播放| 国产精品色一区二区三区| 精品国产一区二区亚洲人成毛片| 欧美精品aⅴ在线视频| 日本久久一区二区三区| 91亚洲资源网| av一区二区三区在线| 成人精品视频一区二区三区 | 性久久久久久久久久久久| 亚洲欧美激情在线| 亚洲久本草在线中文字幕| 国产精品白丝在线| 1024国产精品| 亚洲丝袜美腿综合| 91福利资源站| 99国产精品一区| 青青青伊人色综合久久| 日本一区二区三区四区| 亚洲综合在线免费观看| 欧美综合在线视频| 欧美亚洲综合久久| 欧美视频一区二| 欧美福利视频导航| 日韩一级片在线观看| 欧美一区二区三区视频免费 | 亚洲欧美经典视频| 一区二区三区在线视频免费| 一区二区三区精品视频在线| 午夜伊人狠狠久久| 视频一区二区三区中文字幕| 美女在线视频一区| 国产一区二区网址| 成a人片国产精品| 在线免费观看视频一区| 欧美另类z0zxhd电影| 欧美一级国产精品| 国产偷国产偷精品高清尤物| 国产精品久久久久久久久免费相片| 亚洲欧美日韩国产中文在线| 亚洲va国产天堂va久久en| 精品一区二区久久| av在线综合网| 欧美日韩国产在线观看| 2021国产精品久久精品 | 尤物视频一区二区| 一区二区三区加勒比av| 亚洲色图在线视频| 亚洲综合免费观看高清完整版在线| 亚洲不卡一区二区三区| 免费高清在线一区| av高清不卡在线| 91精品国产综合久久久蜜臀图片| 久久婷婷一区二区三区| 一区二区三区欧美视频| 久久99精品久久久久久国产越南| av在线这里只有精品| 91精品国产一区二区三区| 国产日韩欧美不卡| 视频一区视频二区中文| 丁香啪啪综合成人亚洲小说| 欧美亚洲动漫精品| 日本一区二区三级电影在线观看| 亚洲成a人v欧美综合天堂下载 | 国产婷婷色一区二区三区在线| 亚洲精品国产无套在线观| 久久国产尿小便嘘嘘尿| 91麻豆国产精品久久| 日韩一级视频免费观看在线| 中文字幕永久在线不卡| 蜜臀av性久久久久蜜臀aⅴ| 一道本成人在线| 国产欧美精品一区aⅴ影院 | 宅男在线国产精品| 国产精品每日更新| 久久99久久久欧美国产| 欧美日韩在线不卡| 亚洲乱码中文字幕| 国产传媒欧美日韩成人| 日韩精品一区二区三区swag| 亚洲电影第三页| 成人综合激情网| 久久综合色播五月| 亚洲v日本v欧美v久久精品| 99久久国产综合精品色伊| 久久久亚洲欧洲日产国码αv| 石原莉奈在线亚洲三区| 日本高清视频一区二区| 亚洲三级久久久| 成人99免费视频| 久久奇米777| 精品影视av免费| 欧美一区二视频| 婷婷成人激情在线网| 欧美色倩网站大全免费| 亚洲久本草在线中文字幕| 91最新地址在线播放| 中文成人综合网| 国产成人在线免费| 国产欧美一区二区精品婷婷| 国产在线精品一区二区| 精品国产乱码久久久久久蜜臀 | 日韩精品高清不卡| 欧美四级电影网| 亚洲福利电影网| 欧美日韩一区二区在线观看视频| 亚洲欧美经典视频| 在线观看国产91| 亚洲风情在线资源站| 欧美疯狂做受xxxx富婆| 日本色综合中文字幕| 欧美大肚乱孕交hd孕妇| 精品一区二区三区欧美| 久久综合一区二区| 国产精品91xxx| 中文字幕欧美一区| 色综合天天综合| 亚洲午夜久久久久中文字幕久| 欧美色爱综合网| 日本不卡一区二区| 精品粉嫩超白一线天av| 国产麻豆91精品| 国产精品―色哟哟| 色国产综合视频| 国产午夜久久久久| 亚洲欧洲成人av每日更新| 国产午夜精品久久久久久免费视| 国产精品1区二区.| 成人免费一区二区三区在线观看| 99久久精品国产一区| 亚洲第一久久影院| 欧美电视剧免费观看| 国产成人自拍网| 亚洲欧美另类久久久精品2019| 欧美日韩精品一区二区在线播放| 蜜桃视频第一区免费观看| 久久久不卡网国产精品一区| 91丨九色丨蝌蚪富婆spa| 午夜精品久久久久久久久久久| 精品欧美一区二区在线观看| 99精品视频在线免费观看| 日韩精品一区第一页|