source: src/main/java/negotiator/boaframework/agent/SimpleBOAagent.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.5 KB
Line 
1package negotiator.boaframework.agent;
2
3import java.util.HashMap;
4
5import genius.core.boaframework.AcceptanceStrategy;
6import genius.core.boaframework.BOAagentBilateral;
7import genius.core.boaframework.OMStrategy;
8import genius.core.boaframework.OfferingStrategy;
9import genius.core.boaframework.OpponentModel;
10import negotiator.boaframework.acceptanceconditions.other.AC_Next;
11import negotiator.boaframework.offeringstrategy.other.TimeDependent_Offering;
12import negotiator.boaframework.omstrategy.NullStrategy;
13import negotiator.boaframework.opponentmodel.ScalableBayesianModel;
14
15/**
16 * Simple adapter which can be used to convert a BOA Agent to a normal Agent.
17 * This is interesting for example for the ANAC competition in which BOA Agents
18 * are not (yet) accepted.
19 *
20 * @author Alex Dirkzwager
21 */
22public class SimpleBOAagent extends BOAagentBilateral {
23
24 @Override
25 public void agentSetup() {
26 OpponentModel om = new ScalableBayesianModel();
27 om.init(negotiationSession, new HashMap<String, Double>());
28 OMStrategy oms = new NullStrategy(negotiationSession);
29 OfferingStrategy offering = new TimeDependent_Offering(negotiationSession, om, oms, 0.2, 0, 1, 0); // Boulware
30 // agent
31 // strategy
32 AcceptanceStrategy ac = new AC_Next(negotiationSession, offering, 1, 0);
33 setDecoupledComponents(ac, offering, om, oms);
34 }
35
36 @Override
37 public String getName() {
38 return "SimpleBOAagent";
39 }
40}
Note: See TracBrowser for help on using the repository browser.