Last change
on this file was 1, checked in by Wouter Pasman, 6 years ago |
Initial import : Genius 9.0.0
|
File size:
572 bytes
|
Line | |
---|
1 | package agents.anac.y2010.Southampton.utils;
|
---|
2 |
|
---|
3 | import genius.core.Agent;
|
---|
4 | import genius.core.Bid;
|
---|
5 | import genius.core.actions.Accept;
|
---|
6 | import genius.core.actions.Action;
|
---|
7 | import genius.core.actions.Offer;
|
---|
8 |
|
---|
9 | /**
|
---|
10 | * This factory class has been created to allow Actions to be constructed.
|
---|
11 | *
|
---|
12 | * @author Colin Williams
|
---|
13 | *
|
---|
14 | */
|
---|
15 | public class ActionCreator {
|
---|
16 |
|
---|
17 | public static Action createOffer(Agent agent, Bid bid) {
|
---|
18 | return new Offer(agent.getAgentID(), bid);
|
---|
19 | }
|
---|
20 |
|
---|
21 | public static Action createAccept(Agent agent, Bid oppBid) {
|
---|
22 | return new Accept(agent.getAgentID(), oppBid);
|
---|
23 | }
|
---|
24 |
|
---|
25 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.