source: src/main/java/agents/anac/y2010/Southampton/utils/ActionCreator.java

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 
1package agents.anac.y2010.Southampton.utils;
2
3import genius.core.Agent;
4import genius.core.Bid;
5import genius.core.actions.Accept;
6import genius.core.actions.Action;
7import 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 */
15public 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.