1 | package negotiator.boaframework.acceptanceconditions.other;
|
---|
2 |
|
---|
3 | import genius.core.boaframework.AcceptanceStrategy;
|
---|
4 | import genius.core.boaframework.Actions;
|
---|
5 | import genius.core.boaframework.NegotiationSession;
|
---|
6 | import 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 | */
|
---|
20 | public 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 | } |
---|