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))))
I는 입력 전압의 값을 체크 할 수 있도록하고자하며이 정의 된 범위를 벗어나면, 0으로 설정하고 상기 규칙 실행을 종료. 그렇게 할 수있는 방법이 있습니까?