/** * 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); }
/** * Get the monitor for waiting. * @return The monitor. */ public Object getMonitor() { BDIInterpreter pi = BDIInterpreter.getInterpreter(getState()); IPlanExecutor exe = pi==null? null: pi.getPlanExecutor(getRPlan()); return exe==null? null: exe.getMonitor(getRPlan()); }
IPlanExecutor executor = BDIInterpreter.getInterpreter(state).getPlanExecutor(rplan); if(executor!=null) executor.cleanup(BDIInterpreter.getInterpreter(state), rplan);
interrupted = ip.getPlanExecutor(rplan).executePassedStep(ip, rplan); // Hack
interrupted = ip.getPlanExecutor(rplan).executeFailedStep(ip, rplan); // Hack
interrupted = ip.getPlanExecutor(rplan).executeAbortedStep(ip, rplan); // Hack
interrupted = ip.getPlanExecutor(rplan).executePlanStep(ip, rcapa, rplan); // Hack
getPlanExecutor(rplan).interruptPlanStep(rplan);