source: src/main/java/uva/projectai/y2018/jasparon/Jasparon.java@ 68

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

Renamed old BOAAgent to BOAAgentBilateral. javadoc Set BOAAgentBilateral and Agent classes to "deprecated" for clarity

File size: 1.2 KB
Line 
1package uva.projectai.y2018.jasparon;
2
3import java.util.HashMap;
4
5import genius.core.boaframework.BOAagentBilateral;
6import negotiator.boaframework.acceptanceconditions.other.AC_Next;
7import negotiator.boaframework.omstrategy.NullStrategy;
8import negotiator.boaframework.opponentmodel.AgentXFrequencyModel;
9import genius.core.SupportedNegotiationSetting;
10
11public class Jasparon extends BOAagentBilateral {
12
13
14 /**
15 *
16 */
17 private static final long serialVersionUID = 1L;
18
19 @Override
20 public void agentSetup() {
21 opponentModel = new AgentXFrequencyModel();
22 opponentModel.init(negotiationSession, new HashMap<String, Double>());
23 omStrategy = new NullStrategy(negotiationSession);
24 offeringStrategy = new JasparonBiddingStrategy(negotiationSession, opponentModel, omStrategy);
25
26 acceptConditions = new AC_Next(negotiationSession, offeringStrategy, 1, 0);
27 setDecoupledComponents(acceptConditions, offeringStrategy, opponentModel, omStrategy);
28 }
29
30 @Override
31 public String getName() {
32 return "Agent Jasperon";
33 }
34
35 @Override
36 public SupportedNegotiationSetting getSupportedNegotiationSetting() {
37 return SupportedNegotiationSetting.getLinearUtilitySpaceInstance();
38 }
39
40
41}
Note: See TracBrowser for help on using the repository browser.