1 | package negotiator.boaframework.agent;
|
---|
2 |
|
---|
3 | import java.util.HashMap;
|
---|
4 |
|
---|
5 | import genius.core.boaframework.AcceptanceStrategy;
|
---|
6 | import genius.core.boaframework.BOAagentBilateral;
|
---|
7 | import genius.core.boaframework.OMStrategy;
|
---|
8 | import genius.core.boaframework.OfferingStrategy;
|
---|
9 | import genius.core.boaframework.OpponentModel;
|
---|
10 | import negotiator.boaframework.acceptanceconditions.other.AC_Next;
|
---|
11 | import negotiator.boaframework.offeringstrategy.other.TimeDependent_Offering;
|
---|
12 | import negotiator.boaframework.omstrategy.NullStrategy;
|
---|
13 | import 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 | */
|
---|
22 | public 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 | } |
---|