source: src/main/java/genius/core/boaframework/OutcomeTuple.java

Last change on this file was 127, checked in by Wouter Pasman, 6 years ago

#41 ROLL BACK of rev.126 . So this version is equal to rev. 125

File size: 2.5 KB
Line 
1package genius.core.boaframework;
2
3import genius.core.Bid;
4
5/**
6 * This class is a container which holds the necessary information so that a particular NegotiationOutcome
7 * of the multi-acceptance criteria (MAC) can be reconstructed given a full negotiation outcome.
8 *
9 * The MAC technique runs multiple negotiation outcomes in parallel during a single negotiation. The negotiation
10 * ends when the deadline has been reached, or when all acceptance criteria accepted. Normally, a single match
11 * results in a single negotiation outcome. However, in this case there are multiple acceptance criteria each
12 * resulting in a subset of the full negotiation trace. This class aids in generating this new outcome.
13 *
14 * @author Alex Dirkwager
15 */
16public class OutcomeTuple {
17 /** last bid done by an agent */
18 private Bid lastBid;
19 /** name of the acceptance criteria */
20 private String name;
21 /** time of acceptance */
22 private double time;
23 /** amount of bids made by agent A */
24 private int agentASize;
25 /** amount of bids made by agent B */
26 private int agentBSize;
27 /**What type of log messege (deadline reached, breakoff)**/
28 private String logMsgType;
29 private String acceptedBy;
30
31 public OutcomeTuple(Bid lastBid, String name, double time, int agentASize, int agentBSize, String logMsg, String acceptedBy){
32 this.lastBid = lastBid;
33 this.name = name;
34 this.time = time;
35 this.agentASize = agentASize;
36 this.agentBSize = agentBSize;
37 this.logMsgType = logMsg;
38 this.acceptedBy = acceptedBy;
39 }
40
41 public String getAcceptedBy() {
42 return acceptedBy;
43 }
44
45 public void setAcceptedBy(String acceptedBy) {
46 this.acceptedBy = acceptedBy;
47 }
48
49 public int getAgentASize() {
50 return agentASize;
51 }
52
53 public void setAgentASize(int agentASize) {
54 this.agentASize = agentASize;
55 }
56
57 public int getAgentBSize() {
58 return agentBSize;
59 }
60
61 public void setAgentBSize(int agentBSize) {
62 this.agentBSize = agentBSize;
63 }
64
65 public Bid getLastBid() {
66 return lastBid;
67 }
68
69 public void setLastBid(Bid lastBid) {
70 this.lastBid = lastBid;
71 }
72
73 public String getName() {
74 return name;
75 }
76
77 public void setName(String name) {
78 this.name = name;
79 }
80
81 public double getTime() {
82 return time;
83 }
84
85 public void setTime(double time) {
86 this.time = time;
87 }
88
89 public String getLogMsgType(){
90 return logMsgType;
91 }
92
93 public String toString() {
94 return "LastBid: " + lastBid + ", Name of AC: " + name + ", Time of agreement: " + time +
95 " agentASize: " + agentASize + " agentBSize: " + agentBSize;
96 }
97}
Note: See TracBrowser for help on using the repository browser.