/** * Do the waiting, i.e. set the external caller thread to sleep mode. */ public static void doWait(IOAVState state, Object rplan) { IPlanExecutor exe = BDIInterpreter.getInterpreter(state).getPlanExecutor(rplan); exe.eventWaitFor(BDIInterpreter.getInterpreter(state), rplan); }