Task supplyTask; Inventory inv = null; Asset proto; while (tasks.hasMoreElements()) { supplyTask = (Task)tasks.nextElement(); proto = (Asset)supplyTask.getDirectObject(); inv = inventoryPlugin_.findOrMakeInventory(supplyType_, proto); if (inv != null) { PlanElement pe = supplyTask.getPlanElement(); if (pe instanceof Expansion) { printDebug("updateExpansion(), Withdraw REPLAN, Supply task changed "+ TaskUtils.taskDesc(supplyTask)); publishRemoveExpansion((Expansion)pe); expandSupplyTask(supplyTask); } } }
Task supplyTask; Inventory inv = null; Asset proto; while (tasks.hasMoreElements()) { supplyTask = (Task) tasks.nextElement(); proto = (Asset) supplyTask.getDirectObject(); inv = inventoryPlugin_.findOrMakeInventory(supplyType_, proto); if (inv != null) { PlanElement pe = supplyTask.getPlanElement(); if (pe instanceof Expansion) { if (logger.isDebugEnabled()) { logger.debug("updateExpansion(), Withdraw REPLAN, Supply task changed " + TaskUtils.taskDesc(supplyTask)); } publishRemoveExpansion((Expansion) pe); expandSupplyTask(supplyTask); } }
    protected void updateExpansion(Enumeration tasks) {	Task supplyTask;	Inventory inv = null;	Asset proto;	while (tasks.hasMoreElements()) {	    supplyTask = (Task)tasks.nextElement();	    proto = (Asset)supplyTask.getDirectObject();	    inv = inventoryPlugin_.findOrMakeInventory(supplyType_, proto);	    if (inv != null) {		PlanElement pe = supplyTask.getPlanElement();		if (pe instanceof Expansion) {		    printDebug("updateExpansion(), Withdraw REPLAN, Supply task changed "+			       TaskUtils.taskDesc(supplyTask));		    publishRemoveExpansion((Expansion)pe);		    expandSupplyTask(supplyTask);		}	    }	}    }