이것은 포럼의 첫 번째 게시물입니다. 여러분 모두가 잘되기를 바랍니다.이클립스에서 JiST/SWANS의 런타임을 설정하는 방법
Eclipse에서 Eclipse의 Ad Hoc 시뮬레이터 JiST/SWANS를 사용하여 문제가 발생했습니다.
(외부 JAR of course)이지만 기본적으로 Eclipse의 JiST 런타임을 통합하는 데 문제가 있습니다. hello world를 실행 한 후에는 일반적으로 런타임에서 수정해야 할 수 있기 때문에 stackoverflowerror 예외가 발생합니다.
import jist.runtime.JistAPI;
public class hello implements JistAPI.Entity {
/**
* @param args
*/
public static void main(String[] args) {
System.out.println("simulation start");
hello t = new hello();
t.myEvent();
}
public void myEvent()
{
JistAPI.sleep(1);
myEvent();
System.out.println("hello world, t=" + JistAPI.getTime());
}
}
웹 사이트는 다음과 같습니다 http://jist.ece.cornell.edu/index.html
사전에 감사합니다!
Wilmer는 환경 변수에 문제가 있음에도 불구하고 응답 해 주셔서 감사합니다. 그 모든 것이 잘 작동합니다. 나는 아직도 당신에게 질문이 있지만, jist/swans에 대한 ZRP 프로토콜의 예제를 얻을 수있는 어떤 생각이 있습니까? –