MElement mplan = cand.getModelElement();
for(final ICandidateInfo ca: cands) Object cand = ca.getRawCandidate(); if(cand instanceof MPlanInfo) RPlan rplan = (RPlan)ca.getPlan(); final RGoal rgoal = (RGoal)ca.getPlan(); if(!c.equals(cand) && !c.getModelElement().equals(mgoal))// && c instanceof MPlanInfo) RPlan rplan = (RPlan)ca.getPlan();
MPlanInfo mplaninfo = (MPlanInfo)cand.getRawCandidate();
if(candidate.getRawCandidate().getClass().isAnnotationPresent(Plan.class)) body = new ClassPlanBody(ia, rplan, candidate.getRawCandidate());
public void resultAvailable(Void result) { Object res = RGoal.getGoalResult(rgoal, ia.getClassLoader()); if(mgoal.isMetagoal()) { // Execute selected plans if was metagoal // APL is automatically kept uptodate for(ICandidateInfo ci: (ICandidateInfo[])res) { RPlan.executePlan((RPlan)ci.getPlan(), ia); } } else { pae.planFinished(ia, rgoal); // Set goal result on parent goal if(pagoal!=null) pagoal.setGoalResult(res, ia.getClassLoader(), null, null, rgoal); } }