/** * 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); } }