int []types = {AspectType.COST}; double []results = {(double) 0.0}; AllocationResult estAR =
AspectValue[] values = {AspectValue.newAspectValue(AspectType.COST, 0.0)}; AllocationResult estAR =
  private void processTasks(Enumeration tasks) {    while(tasks.hasMoreElements()) {      Task task = (Task) tasks.nextElement();      Verb verb = task.getVerb();      if (verb.equals(Verb_Start)) {        startStatistics();      } else if (verb.equals(Verb_Sample)) {        sampleStatistics();      } else if (verb.equals(Verb_Finish)) {        sampleStatistics();        finishStatistics();      } else if (verb.equals(Verb_Ready)) {	// No need to do anything more. By simply responding to these,	// the initializer Plugin knows the agent is ready	// so to keep the current functionality, where	// the LDMPlugin is the one who signals when the Agent	// is ready, comment out the following line	//continue;      }            // Dummy aspect/results      int []types = {AspectType.COST};      double []results = {(double) 0.0};      AllocationResult estAR =         theLDMF.newAllocationResult(1.0, // rating                                    true, // success                                    types, results);              // Create allocation of task to asset with given estimated result      Allocation alloc =         theLDMF.createAllocation(task.getPlan(), task, dummyAsset, estAR,                                 MetricsProviderRole);      publishAdd(alloc);    }  }