2
内部アクションを使用しているjasonコードを実装しようとしています。 (エージェント・コードの内部アクションがロードされませんでしたエラー:java.lang.ClassNotFoundException
MAS peleus {
infrastructure: Centralised
agents:
peleus;
}
パート:
Server running on http://191.36.8.42:3272
[aslparser] [peleus.asl:29] warning: The internal action class for 'org.soton.peleus.act.plan(Goals)' was not loaded! Error:
java.lang.ClassNotFoundException: org.soton.peleus.act.plan
[aslparser] [peleus.asl:42] warning: The internal action class for 'org.soton.peleus.act.isTrue(H)' was not loaded! Error:
java.lang.ClassNotFoundException: org.soton.peleus.act.isTrue
[peleus] Could not finish intention: intention 1: +des([on(b3,table),on(b2,b3),on(b1,b2)])[source(self)] <- ... org.soton.peleus.act.plan(Goals); !checkGoals(Goals); .print("Goals ",Goals," were satisfied")/
{Goals=[on(b3,table),on(b2,b3),on(b1,b2)]}Trigger: +des([on(b3,table),on(b2,b3),on(b1,b2)])[noenv,code(org.soton.peleus.act.plan([on(b3,table),on(b2,b3),on(b1,b2)])),code_line(29),code_src("peleus.asl"),error(action_failed),error_msg("no environment configured!"),source(self)]
[peleus] Adding belief clear(table)
このmas2jファイルは、以下の通りである:インタプリタがあったとして、内部アクションの「ジャワ」のコードを見つけることができなかったことを示していますフェリペMeneguzziによって書かれた)怒鳴るを示している:
//The next line is line 28
+des(Goals) : true
<- org.soton.peleus.act.plan(Goals);
!checkGoals(Goals);
.print("Goals ",Goals," were satisfied").
+!checkGoals([]) : true <- true.
//The next line is line 40
+!checkGoals([H|T]) : true
<- .print("Checking ", H);
org.soton.peleus.act.isTrue(H);
!checkGoals(T).
私は特定の場所でのjavaファイルを検索するためのジェイソンを設定する方法、それはフォルダ構造についてだと思いますか?
フォルダ構造は次のようである:
Peleus\src\org\soton\peleus for java files
Peleus\examples for mas2j and asl tested project
スタックトレースをブロッククォートとしてフォーマットしないでください。元のインデントが保存されるようにコードフォーマットを使用してください。 –