inventory.setScheduleType(ScheduleType.TOTAL_INVENTORY);
inventory.setScheduleType(PlanScheduleType.TOTAL_INVENTORY);
    public static UISimpleInventory getMockInventory() {	UISimpleInventory inventory = new UISimpleInventory();	Date now = new Date();	long nowTime = now.getTime();	final long aDayTime = 24*60*60*1000;	final int numDays = 32;		final double DUE_OUT_QTY=150;	final double DUE_IN_QTY=750;	final double PROJ_DUE_OUT_QTY=75;    	final double PROJ_SHORTFALL_QTY=60;	final double DUE_IN_SHORTFALL_QTY=500;	final double DUE_OUT_SHORTFALL_QTY=50;	double dueOutQty=DUE_OUT_QTY;	double dueInQty=DUE_IN_QTY;	double projDueOutQty=PROJ_DUE_OUT_QTY;    	double projShortfallQty=PROJ_SHORTFALL_QTY;	double dueInShortfallQty=DUE_IN_SHORTFALL_QTY;	double dueOutShortfallQty=DUE_OUT_SHORTFALL_QTY;		double currInventory = 800.0;	long currNow = nowTime+aDayTime;	long lastNow = nowTime;	long c0Time = nowTime + (5*aDayTime);	Vector onHand = new Vector(numDays);	Vector dueIns=new Vector(numDays);	Vector dueOuts=new Vector(numDays);	Vector projDueOuts= new Vector(numDays);		Vector reqDueIns=new Vector(numDays);	Vector reqDueOuts=new Vector(numDays);	Vector reqProjDueOuts=new Vector(numDays);	Vector unconfirmedDueIns=dueOuts;	inventory.setAssetName("JP8 Fuel");	inventory.setScheduleType(ScheduleType.TOTAL_INVENTORY);	inventory.setProvider(true);	inventory.setBaseCDay(c0Time);	int dueInCtr=0;		for(int i=0; i <= numDays ; i++) {	    boolean shortfallDay=((currNow >= (c0Time + (12 * aDayTime))) && 				  (currNow <= (c0Time + (22 * aDayTime))));	    projDueOutQty = PROJ_DUE_OUT_QTY;	    reqProjDueOuts.add(new UIQuantityScheduleElement(lastNow,							     currNow,							     projDueOutQty));	    if(shortfallDay) {		projDueOutQty = PROJ_SHORTFALL_QTY;	    }	    projDueOuts.add(new UIQuantityScheduleElement(lastNow,							  currNow,							  projDueOutQty));	    //currInventory=currInventory-projDueOutQty;	    	    if((currNow >= c0Time) && 	       ((i%2)==0)){		dueOutQty = DUE_OUT_QTY;		reqDueOuts.add(new UIQuantityScheduleElement(lastNow,							     currNow,							     dueOutQty));		if(shortfallDay) {		    dueOutQty = DUE_OUT_SHORTFALL_QTY;		}		dueOuts.add(new UIQuantityScheduleElement(lastNow,							  currNow,							  dueOutQty));		currInventory=currInventory-dueOutQty;	    } else {		reqDueOuts.add(new UIQuantityScheduleElement(lastNow,							     currNow,							     0));		dueOuts.add(new UIQuantityScheduleElement(lastNow,							  currNow,							  0));	    }	    	    if((currNow >= c0Time) && 	       ((i%10)==0)){		dueInQty = DUE_IN_QTY;		reqDueIns.add(new UIQuantityScheduleElement(lastNow,							    currNow,							    dueInQty));		if(shortfallDay) {		    dueInQty = DUE_IN_SHORTFALL_QTY;		}		dueIns.add(new UIQuantityScheduleElement(lastNow,							 currNow,							 dueInQty));		currInventory+=dueInQty;		dueInCtr++;	    } else {		reqDueIns.add(new UIQuantityScheduleElement(lastNow,							    currNow,							    0));		dueIns.add(new UIQuantityScheduleElement(lastNow,							 currNow,							 0));	    }	    	    lastNow = currNow;	    currNow+=aDayTime;	    	    onHand.add(new UIQuantityScheduleElement(lastNow,						     currNow,						     currInventory));	    	    	    	}		inventory.addNamedSchedule(UISimpleNamedSchedule.ON_HAND,onHand);	inventory.addNamedSchedule(UISimpleNamedSchedule.DUE_IN,dueIns);	inventory.addNamedSchedule(UISimpleNamedSchedule.REQUESTED_DUE_IN,reqDueIns);		inventory.addNamedSchedule(UISimpleNamedSchedule.DUE_OUT,dueOuts);	inventory.addNamedSchedule(UISimpleNamedSchedule.REQUESTED_DUE_OUT,reqDueOuts);	inventory.addNamedSchedule(UISimpleNamedSchedule.PROJECTED_DUE_OUT,				   projDueOuts);	inventory.addNamedSchedule(UISimpleNamedSchedule.PROJECTED_REQUESTED_DUE_OUT,				   reqProjDueOuts);	// MWD Uncomment to get Unconfirmed into the mix.	//	inventory.addNamedSchedule(UISimpleNamedSchedule.UNCONFIRMED_DUE_IN,unconfirmedDueIns);		return inventory;    }