// Path: ServiceLayer/src/main/java/org/servicelayer/models/Materials.java
// public class Materials {
// 	
// 	private int typeID;
// 	private int quantity;
// 	private String materialName;
// 	
// 	public int getTypeID() {
// 		return typeID;
// 	}
// 	public void setTypeID(int typeID) {
// 		this.typeID = typeID;
// 	}
// 	public int getQuantity() {
// 		return quantity;
// 	}
// 	public void setQuantity(int quantity) {
// 		this.quantity = quantity;
// 	}
// 	public String getMaterialName() {
// 		return materialName;
// 	}
// 	public void setMaterialName(String materialName) {
// 		this.materialName = materialName;
// 	}
// 	public Materials(){
// 		
// 	}
// 	public Materials(int typeID, String materialName, int quantity){
// 		this.typeID = typeID;
// 		this.materialName = materialName;
// 		this.quantity=quantity;
// 	}
// 
// }


import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import org.servicelayer.models.Materials;
			if (input != null) {
				try {
					input.close();
				} catch (IOException e) {
					e.printStackTrace();
				}
			}
		}
	}
	
	public static Map<Integer, PriceMap> getPriceMap(List<Integer> typeList, Integer region){
		//region doesn't matter atm but will be useful in the future.
		Map<Integer, PriceMap> priceMap = new HashMap<Integer, PriceMap>();
		for(int typeID: typeList){
			int id = typeID;
			String quantString = prop.getProperty(String.valueOf(typeID) + "q");
			String priceString = prop.getProperty(String.valueOf(typeID) + "b");
			//b for buy, not p for price
			try{
				priceMap.put(id, new PriceMap(id, Integer.valueOf(quantString), 
						Double.valueOf(priceString)));
			} catch(Exception e){
				System.out.println("ERROR: MockPriceUtil | String parsing failed at <" 
						+ quantString + " | " + priceString + "> with message: " + e.getMessage());
			}
		}
		return priceMap;
	}
	
	//this is old stuff. Salvaged this code from a reprocessing calculator, this is leftover. 
// Path: ServiceLayer/src/main/java/org/servicelayer/models/Materials.java
// public class Materials {
// 	
// 	private int typeID;
// 	private int quantity;
// 	private String materialName;
// 	
// 	public int getTypeID() {
// 		return typeID;
// 	}
// 	public void setTypeID(int typeID) {
// 		this.typeID = typeID;
// 	}
// 	public int getQuantity() {
// 		return quantity;
// 	}
// 	public void setQuantity(int quantity) {
// 		this.quantity = quantity;
// 	}
// 	public String getMaterialName() {
// 		return materialName;
// 	}
// 	public void setMaterialName(String materialName) {
// 		this.materialName = materialName;
// 	}
// 	public Materials(){
// 		
// 	}
// 	public Materials(int typeID, String materialName, int quantity){
// 		this.typeID = typeID;
// 		this.materialName = materialName;
// 		this.quantity=quantity;
// 	}
// 
// }


// Path: planetary/src/main/java/org/planetary/pricing/MockPriceUtil.java
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import org.servicelayer.models.Materials;

			if (input != null) {
				try {
					input.close();
				} catch (IOException e) {
					e.printStackTrace();
				}
			}
		}
	}
	
	public static Map<Integer, PriceMap> getPriceMap(List<Integer> typeList, Integer region){
		//region doesn't matter atm but will be useful in the future.
		Map<Integer, PriceMap> priceMap = new HashMap<Integer, PriceMap>();
		for(int typeID: typeList){
			int id = typeID;
			String quantString = prop.getProperty(String.valueOf(typeID) + "q");
			String priceString = prop.getProperty(String.valueOf(typeID) + "b");
			//b for buy, not p for price
			try{
				priceMap.put(id, new PriceMap(id, Integer.valueOf(quantString), 
						Double.valueOf(priceString)));
			} catch(Exception e){
				System.out.println("ERROR: MockPriceUtil | String parsing failed at <" 
						+ quantString + " | " + priceString + "> with message: " + e.getMessage());
			}
		}
		return priceMap;
	}
	
	//this is old stuff. Salvaged this code from a reprocessing calculator, this is leftover. 
	public static HashMap<Integer, Double> getPriceMap2(List<Materials> componentList){