/** * The body method is called on the * instatiated plan instance from the scheduler. */ public void body() { DFDeregister de = (DFDeregister)getParameter("action").getValue(); IGoal dreg = createGoal("df_deregister"); dreg.getParameter("description").setValue(de.getComponentDescription()); dispatchSubgoalAndWait(dreg); getParameter("result").setValue(new Done(de)); } }
/** * The body method is called on the * instantiated plan instance from the scheduler. */ public void body() { IDFComponentDescription desc = (IDFComponentDescription)getParameter("description").getValue(); if(desc==null || desc.getName()==null) { desc = new DFComponentDescription(getScope().getComponentIdentifier()); } DFDeregister dre = new DFDeregister(); dre.setComponentDescription(desc); IGoal req = createGoal("rp_initiate"); req.getParameter("receiver").setValue(getParameter("df").getValue()); req.getParameter("action").setValue(dre); req.getParameter("ontology").setValue(SFipa.COMPONENT_MANAGEMENT_ONTOLOGY_NAME); dispatchSubgoalAndWait(req); } }