私はCLIPSとクラスで大きな問題を抱えています。 私はCLIPSで小規模のセキュリティ評価を開発しましたが、ユーザーがより良い説明を望む場合は、ボタンをクリックして説明を受け取ります。CLIPSと主なdefmessage-handlers
(defclass QUESTION (is-a USER)
(role concrete)
(pattern-match reactive)
(slot id (type STRING))
(slot description (type STRING) (create-accessor read)))
と、このようなインスタンスのセット::
(definstances EXPLANATION
(E1 of QUESTION (id "GQ01")(description "Choose YES if you don't know ... ")))
は、システムは、この操作::
(send (find-instance ((?f QUESTION)) (str-compare ?f:id ?id-question)) get-description)
を使用する記述を取得するための そうするためには、私のシステムは、このようなクラスを持っています
問題を実行すると、このメッセージが表示されます。
[MSGFUN1] No applicable primary message-handlers found for get-description.
[PRCCODE4] Execution halted during the actions of deffunction explain-question.
[PRCCODE4] Execution halted during the actions of deffunction yes-or-no-p.
[PRCCODE4] Execution halted during the actions of defrule ask-for-component-needed.
どうすれば解決できますか?私は、?idの質問がと等しい場合、インスタンスセットのインスタンスのIDは、インスタンスに関連付けられた説明を印刷します。
今すぐご利用いただきありがとうございます。 –