2017-10-06 6 views
2

이미 Jason에서 잘 돌아가고있는 Jason 프로젝트가 있으며 JaCaMo를 사용하여 실행하려고합니다. 나는 일식에 두 플러그인 (Jason과 JaCaMo)을 가지고있다. 내가하려는 것은 JaCaMo에서 현재의 Jason 프로젝트를 컴파일하는 간단한 방법입니다. JaCaMo 프로젝트를 실행할 수 없습니다 : 올바르게 구성하는 방법?

내 mas2j 파일

잘 실행되는 :

MAS tp_cnp { 

    infrastructure: Centralised 

    agents: 
     i initiator [beliefs="expectedResponses(2)"] #2; 
     p participant #2; 
     r rejector #1; 
     c controller [beliefs="expectedDones(2)"] #1; 

    aslSourcePath: 
     "src/asl"; 

} 

내가 만든하신 JCM을 :

나는 시스템이이 반환이 JaCaMo의 프로젝트를 실행하는 tryed했습니다
mas tp_cnp { 

    agent i : initiator { 
     beliefs: message("expectedResponses(2)"), 
     instances: 2 
    } 
    agent p : participant { 
     instances: 2 
    } 
    agent r : rejector 
    agent c : controller { 
     beliefs: message("expectedDones(2)"), 
    } 

    asl-path: src/asl 
} 

:

BUILD SUCCESSFUL 
Total time: 2 seconds 
Launching tp_cnp 
reading from file /home/cleber/Projetos/tp_cnp/tp_cnp.jcm ... 
JaCaMo is not configured, creating a default configuration. 
Wrong configuration for jacamo, current is null 
jacamo not found 
Wrong configuration for jason, current is null 
jason not found 
Wrong configuration for jade, current is null 
jade not found 
Wrong configuration for jason, current is null 
jason not found 
file /home/cleber/Projetos/tp_cnp/tp_cnp.jcm parsed successfully! 

Ant is not properly configured! Current value is /libs 
Problem defining the command to run the MAS! 

JaCaMo를 올바르게 구성하는 방법은 무엇입니까? 이 "번역"(mas2j에서 jcm)이 맞습니까?

답변

2

jacamo-XXX.jar 응용 프로그램 (XXX는 버전)을 실행하여 JaCaMo를 구성 할 수 있습니다. 다음 중 하나를 수행 할 수 있습니다 jar 파일을 더블 클릭하거나 이클립스 플러그인 또는 쉘 명령 환경을 구성하기위한 링크가 제공되는 JaCaMo "hello world" tutorial에서 자세한 내용을 찾을

java -jar jacamo-XXX.jar 

실행합니다. 당신의 .jcm 파일, 파일 이름에 대해서는

(":"후)는 .asl 포함해야합니다

... 
agent i : initiator.asl { 
    beliefs: message("expectedResponses(2)"), 
    instances: 2 
} 

보다도,

Jomi

+0

그것은 맞다, 후 실행을 내 JaCaMo- XXX.jar 자바 홈을 올바르게 설정할 수 있습니다! ".asl"외에도 "beliefs : expectedResponses (2)"및 "beliefs : expectedDones (2)"로 변경해야하며, 즉 "message()"를 제거했습니다. 고맙습니다! –