source: src/main/java/negotiator/boaframework/sharedagentstate/anac2011/GahboninhoSAS.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.6 KB
Line 
1package negotiator.boaframework.sharedagentstate.anac2011;
2
3import genius.core.boaframework.NegotiationSession;
4import genius.core.boaframework.SharedAgentState;
5import genius.core.timeline.TimeLineInfo;
6import genius.core.utility.AdditiveUtilitySpace;
7import negotiator.boaframework.sharedagentstate.anac2011.gahboninho.GahboninhoOM;
8import 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 */
17public 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}
Note: See TracBrowser for help on using the repository browser.