/** * Bob class */ package onetomany.bargainingchipsgame.players; import onetomany.bargainingchipsgame.Bundle; import onetomany.bargainingchipsgame.players.utilityfunction.UF_prcntQTYandprcntPrice; import onetomany.bargainingchipsgame.players.utilityfunction.Utility_Function; /** * * Bob is any buyer agent with UF_prcntQTYandprcntPrice utility function and * the other parameters for name of the instance, wishlsit, deadline, and its picture path. * * @author Faria Nassiri-Mofakham * */ public class Bob { public Bob(String n, Bundle w, Utility_Function u, long d, String p) { Utility_Function u=new UF_prcntQTYandprcntPrice(wishlist,p1,p2); Agent bob=new Agent("Bob"+n, w, u, d, p); Agent bob=new Agent("Bob", w, u, d, null); System.out.println("\nNew agent is created....\n"+bob+"\n"); } /** * @return the wishlist */ public Bundle getWishlist() { return wishlist; } /** * @param wishlist the wishlist to set */ public void setWishlist(Bundle wishlist) { this.wishlist = wishlist; } /** * @return the p1 */ public double getP1() { return p1; } /** * @param p1 the p1 to set */ public void setP1(double p1) { this.p1 = p1; } /** * @return the p2 */ public double getP2() { return p2; } /** * @param p2 the p2 to set */ public void setP2(double p2) { this.p2 = p2; } /** * @return the deadline */ public long getDeadline() { return deadline; } /** * @param deadline the deadline to set */ public void setDeadline(long deadline) { this.deadline = deadline; } public static void main(String[] args) { Utility_Function u=new UF_prcntQTYandprcntPrice(wishlist,p1,p2); Agent bob=new Agent("Bob", w, u, d, null); System.out.println("\nNew agent creating....\n"+bob+"\n"); } }