/** * Get the belief base. * @return The belief base. */ public IBeliefbase getBeliefbase() { return scope!=null ? new BeliefbaseWrapper(capa.getBeliefbase(), scope+MElement.CAPABILITY_SEPARATOR) : capa.getBeliefbase(); }
String prefix = scope+MElement.CAPABILITY_SEPARATOR; SimpleValueFetcher fetcher = new SimpleValueFetcher(ret); fetcher.setValue("$beliefbase", new BeliefbaseWrapper(capa.getBeliefbase(), prefix)); fetcher.setValue("$goalbase", new RGoalbase(agent, scope)); fetcher.setValue("$planbase", new PlanbaseWrapper(capa.getPlanbase(), prefix));