package onetomany.etc; //package negotiator.onetomany; // //import java.util.ArrayList; //import java.util.HashMap; //import java.util.List; //import java.util.Set; // ///** // * // * // * // * // * // * @author Faria Nassiri-Mofakham // * // */ //public class DemandPlan //{ // private HashMap demandPlan; // private HashMap weight; // // // // public DemandPlan() // { // this.demandPlan = new HashMap(); // this.weight = new HashMap(); // } // // public HashMap getDemandPlan() // { // return demandPlan; // } // // public HashMap getWeight() // { // return weight; // } // // // @Override // public String toString() // { // return demandPlan.toString(); // } // // public void setQuantity(Product p, Integer n) // { // demandPlan.put(p,n); // } // // // public void setWeight(Product p, Double e) // { // weight.put(p,e); // } // // public Integer getQuantity(Product p) // { // if (this.demandPlan.containsKey(p)) // return demandPlan.get(p); // else // return 0; // } // // public Double getWeight(Product p) // { // if (this.weight.containsKey(p)) // return weight.get(p); // else // return 0.0; // } // //// public Set getKeys() //// { //// return demandPlan.keySet(); //// } //// //// //// public Set getValues() //// { //// return (Set) demandPlan.values(); //// } //}