1 | package genius.core.boaframework;
|
---|
2 |
|
---|
3 | import java.io.Serializable;
|
---|
4 |
|
---|
5 | /**
|
---|
6 | * This class is a container which describes a full BOA agent. This object is
|
---|
7 | * used to carry the information from the GUI to the agent loader.
|
---|
8 | */
|
---|
9 | public class BOAagentInfo implements Serializable {
|
---|
10 |
|
---|
11 | private static final long serialVersionUID = 2868410344415899340L;
|
---|
12 | /** Offering strategy of the specified agent */
|
---|
13 | private BOAcomponent offeringStrategy;
|
---|
14 | /** Acceptance strategy of the specified agent */
|
---|
15 | private BOAcomponent acceptanceStrategy;
|
---|
16 | /** Opponent model of the specified agent */
|
---|
17 | private BOAcomponent opponentModel;
|
---|
18 | /** Opponent model strategy of the specified agent */
|
---|
19 | private BOAcomponent omStrategy;
|
---|
20 |
|
---|
21 | /**
|
---|
22 | * Creates a container object describing a BOA agent.
|
---|
23 | *
|
---|
24 | * @param bs
|
---|
25 | * the bidding strategy of the agent
|
---|
26 | * @param as
|
---|
27 | * the acceptance strategy of the agent
|
---|
28 | * @param om
|
---|
29 | * the opponent model of the agent
|
---|
30 | * @param oms
|
---|
31 | * the opponent model strategy of the agent
|
---|
32 | */
|
---|
33 | public BOAagentInfo(BOAcomponent bs, BOAcomponent as, BOAcomponent om, BOAcomponent oms) {
|
---|
34 | this.offeringStrategy = bs;
|
---|
35 | this.acceptanceStrategy = as;
|
---|
36 | this.opponentModel = om;
|
---|
37 | this.omStrategy = oms;
|
---|
38 | }
|
---|
39 |
|
---|
40 | /**
|
---|
41 | * @return offering strategy of the BOA Agent.
|
---|
42 | */
|
---|
43 | public BOAcomponent getOfferingStrategy() {
|
---|
44 | return offeringStrategy;
|
---|
45 | }
|
---|
46 |
|
---|
47 | /**
|
---|
48 | * @return acceptance strategy of the BOA Agent.
|
---|
49 | */
|
---|
50 | public BOAcomponent getAcceptanceStrategy() {
|
---|
51 | return acceptanceStrategy;
|
---|
52 | }
|
---|
53 |
|
---|
54 | /**
|
---|
55 | * @return opponent model of the BOA Agent.
|
---|
56 | */
|
---|
57 | public BOAcomponent getOpponentModel() {
|
---|
58 | return opponentModel;
|
---|
59 | }
|
---|
60 |
|
---|
61 | /**
|
---|
62 | * @return opponent model strategy of the BOA Agent.
|
---|
63 | */
|
---|
64 | public BOAcomponent getOMStrategy() {
|
---|
65 | return omStrategy;
|
---|
66 | }
|
---|
67 |
|
---|
68 | /**
|
---|
69 | * @return name of the BOA Agent.
|
---|
70 | *
|
---|
71 | */
|
---|
72 | public String getName() {
|
---|
73 | return toString();
|
---|
74 | }
|
---|
75 |
|
---|
76 | public String toString() {
|
---|
77 | String result = offeringStrategy + " " + acceptanceStrategy + " " + opponentModel + " " + omStrategy;
|
---|
78 | return result;
|
---|
79 | }
|
---|
80 | } |
---|