1 | package negotiator.boaframework.sharedagentstate.anac2011;
|
---|
2 |
|
---|
3 | import genius.core.boaframework.NegotiationSession;
|
---|
4 | import genius.core.boaframework.SharedAgentState;
|
---|
5 | import genius.core.timeline.TimeLineInfo;
|
---|
6 | import genius.core.utility.AdditiveUtilitySpace;
|
---|
7 | import negotiator.boaframework.sharedagentstate.anac2011.gahboninho.GahboninhoOM;
|
---|
8 | import negotiator.boaframework.sharedagentstate.anac2011.gahboninho.IssueManager;
|
---|
9 |
|
---|
10 | /**
|
---|
11 | * This is the shared code of the acceptance condition and bidding strategy of
|
---|
12 | * ANAC 2011 Gahboninho. The code was taken from the ANAC2011 Gahboninho and
|
---|
13 | * adapted to work within the BOA framework.
|
---|
14 | *
|
---|
15 | * @author Mark Hendrikx
|
---|
16 | */
|
---|
17 | public class GahboninhoSAS extends SharedAgentState {
|
---|
18 | private GahboninhoOM om;
|
---|
19 | private IssueManager im;
|
---|
20 | private AdditiveUtilitySpace utilSpace;
|
---|
21 | private TimeLineInfo timeline;
|
---|
22 | private int firstActions = 40;
|
---|
23 | private NegotiationSession negotiationSession;
|
---|
24 |
|
---|
25 | public GahboninhoSAS(NegotiationSession negoSession) {
|
---|
26 | this.negotiationSession = negoSession;
|
---|
27 | this.utilSpace = (AdditiveUtilitySpace) negoSession.getUtilitySpace();
|
---|
28 | this.timeline = negoSession.getTimeline();
|
---|
29 | initObjects();
|
---|
30 | NAME = "Gahboninho";
|
---|
31 | }
|
---|
32 |
|
---|
33 | public void initObjects() {
|
---|
34 | om = new GahboninhoOM(utilSpace, timeline);
|
---|
35 | im = new IssueManager(negotiationSession, timeline, om);
|
---|
36 | im.setNoise(im.getNoise() * im.GetDiscountFactor());
|
---|
37 | }
|
---|
38 |
|
---|
39 | public GahboninhoOM getOpponentModel() {
|
---|
40 | return om;
|
---|
41 | }
|
---|
42 |
|
---|
43 | public IssueManager getIssueManager() {
|
---|
44 | return im;
|
---|
45 | }
|
---|
46 |
|
---|
47 | public int getFirstActions() {
|
---|
48 | return firstActions;
|
---|
49 | }
|
---|
50 |
|
---|
51 | public void decrementFirstActions() {
|
---|
52 | --firstActions;
|
---|
53 | }
|
---|
54 | } |
---|