/** * Create a new <code>DFSearch</code>. */ public DFSearch(IDFComponentDescription dfcomponentdescription, IDFComponentDescription[] results) { this(); this.dfcomponentdescription = dfcomponentdescription; setResults(results); }
/** * Create a new <code>DFSearch</code>. */ public DFSearch(IDFComponentDescription dfcomponentdescription, IDFComponentDescription[] results) { this(); this.dfcomponentdescription = dfcomponentdescription; setResults(results); }
/** * The body method is called on the * instatiated plan instance from the scheduler. */ public void body() { DFSearch sa = (DFSearch)getParameter("action").getValue(); IGoal sag = createGoal("df_search"); sag.getParameter("description").setValue(sa.getComponentDescription()); sag.getParameter("constraints").setValue(sa.getSearchConstraints()); sag.getParameter("remote").setValue(sa.isRemote()? Boolean.TRUE: Boolean.FALSE); dispatchSubgoalAndWait(sag); sa.setResults((IDFComponentDescription[])sag.getParameterSet("result").getValues()); getParameter("result").setValue(new Done(sa)); } }