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に設定し、さらにルールの実行を終了します。それを行う方法はありますか?