0
我正在閱讀Jess中的幾個用戶輸入。規則是:退出Jess條件的執行條件
(defrule specify-input
?act <- (Actuator (name 0) (inputVoltage ?v1&0))
=>
(printout t "Please specify input voltage of the actuator. [V] " crlf)
(modify ?act (inputVoltage (read)))
(printout t "Please specify desired force of the actuator. [N] " crlf)
(modify ?act (Force (read)))
(printout t "Please specify desired stroke lenght of the actuator. [mm] " crlf)
(modify ?act (StrokeLength (read))))
我想能夠檢查的輸入電壓的值,如果它超出了規定的範圍,將其設置爲0並退出進一步規則執行。有沒有辦法做到這一點?