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 | |
---|
1 | package uva.projectai.y2018.jasparon;
|
---|
2 |
|
---|
3 | import java.util.HashMap;
|
---|
4 |
|
---|
5 | import genius.core.boaframework.BOAagentBilateral;
|
---|
6 | import negotiator.boaframework.acceptanceconditions.other.AC_Next;
|
---|
7 | import negotiator.boaframework.omstrategy.NullStrategy;
|
---|
8 | import negotiator.boaframework.opponentmodel.AgentXFrequencyModel;
|
---|
9 | import genius.core.SupportedNegotiationSetting;
|
---|
10 |
|
---|
11 | public 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.