source: src/main/java/agents/anac/y2019/ibasic/IBasic.java@ 201

Last change on this file since 201 was 200, checked in by Katsuhide Fujita, 5 years ago

Add ANAC 2019 agents

File size: 998 bytes
Line 
1package agents.anac.y2019.ibasic;
2
3import java.util.Collections;
4import java.util.Map;
5import genius.core.boaframework.*;
6import genius.core.parties.NegotiationInfo;
7import ibasic.boacomponents.*;
8
9
10@SuppressWarnings("serial")
11public class IBasic extends BoaParty
12{
13
14 @Override
15 public void init(NegotiationInfo info)
16 {
17 // The choice for each component is made here
18 AcceptanceStrategy ac = new IBasicAS();
19 OfferingStrategy os = new IBasicBS();
20 OpponentModel om = new IBasicOM();
21 OMStrategy oms = new IBasicOMStrategy();
22
23 // We do not assign any parameters
24 Map<String, Double> noparams = Collections.emptyMap();
25
26 // Initialize all the components of this party to the choices defined above
27 configure(ac, noparams,
28 os, noparams,
29 om, noparams,
30 oms, noparams);
31 super.init(info);
32 }
33
34 @Override
35 public String getDescription()
36 {
37 return "ibasic";
38 }
39
40}
Note: See TracBrowser for help on using the repository browser.