source: src/main/java/negotiator/boaframework/acceptanceconditions/other/AC_ABMP.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: 1.5 KB
Line 
1package negotiator.boaframework.acceptanceconditions.other;
2
3import genius.core.boaframework.AcceptanceStrategy;
4import genius.core.boaframework.Actions;
5import genius.core.boaframework.NegotiationSession;
6import genius.core.boaframework.OfferingStrategy;
7
8/**
9 * This is the decoupled Acceptance Condition from ABMP Agent. The code was
10 * taken from the ABMP Agent and adapted to work within the BOA framework.
11 *
12 * http://www.verwaart.nl/culture/posterBNAIC2009ABMP.pdf
13 * http://www.iids.org/publications/IJCAI01.ABMP.pdf
14 *
15 * Decoupling Negotiating Agents to Explore the Space of Negotiation Strategies
16 * T. Baarslag, K. Hindriks, M. Hendrikx, A. Dirkzwager, C.M. Jonker
17 *
18 * @author Alex Dirkzwager
19 */
20public class AC_ABMP extends AcceptanceStrategy {
21
22 private static final double UTIlITYGAPSIZE = 0.05;
23
24 /**
25 * Empty constructor for the BOA framework.
26 */
27 public AC_ABMP() {
28 }
29
30 public AC_ABMP(NegotiationSession negoSession, OfferingStrategy strat) throws Exception {
31 init(negoSession, strat, null, null);
32 }
33
34 @Override
35 public Actions determineAcceptability() {
36
37 Actions decision = Actions.Reject;
38
39 if (negotiationSession.getOwnBidHistory().getLastBidDetails() != null && negotiationSession
40 .getOpponentBidHistory().getLastBidDetails().getMyUndiscountedUtil() >= negotiationSession
41 .getOwnBidHistory().getLastBidDetails().getMyUndiscountedUtil() - UTIlITYGAPSIZE) {
42 decision = Actions.Accept;
43 }
44 return decision;
45 }
46
47 @Override
48 public String getName() {
49 return "Other - ABMP";
50 }
51}
Note: See TracBrowser for help on using the repository browser.