source: src/main/java/genius/core/actions/Accept.java

Last change on this file was 127, checked in by Wouter Pasman, 6 years ago

#41 ROLL BACK of rev.126 . So this version is equal to rev. 125

File size: 658 bytes
Line 
1package genius.core.actions;
2
3import genius.core.AgentID;
4import genius.core.Bid;
5
6/**
7 * This class is used to createFrom an action which symbolizes that an agent
8 * accepts an offer. Immutable.
9 *
10 * @author Dmytro Tykhonov
11 */
12public class Accept extends DefaultActionWithBid {
13
14 /**
15 * @param agentID
16 * id of the agent which creates this accept.
17 * @param bid
18 * the accepted bid.
19 */
20 public Accept(AgentID agentID, Bid bid) {
21 super(agentID, bid);
22 }
23
24 /**
25 * @return string representation of action: "(Accept)".
26 */
27 public String toString() {
28 return "(Accept " + getContent() + ")";
29 }
30}
Note: See TracBrowser for help on using the repository browser.