Task[] tasks = getTasks(); for (int i = 0; i < tasks.length; i++) tasks[i].setAssignment (null); Resource[] resources = getResources(); for (int i = 0; i < resources.length; i++) resources[i].initialize(); capacities = new HashMap(); linkedToFrozenTasks = new HashMap(); linkedGroups = new ArrayList(); linkedGroupMap = new HashMap(); primaryLinks = new HashMap();
  public void initialize (SchedulingSpecs specs) {    createActivities (specs);    initializeCapacities (specs);    computePrerequisites (specs);    if (specs.areLinks()) {      computeLinks (specs);      computeLinkedToFrozen();      computePrimaryLinked (specs);    }  }