source: src/main/java/genius/core/actions/Reject.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: 700 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 * rejects an offer. immutable.
9 *
10 * @author Dmytro Tykhonov
11 */
12public class Reject extends DefaultActionWithBid {
13
14 /**
15 * Action to accept an opponent's bid.
16 *
17 * @param agentID
18 * ID of agent rejecting the bid.
19 * @param bid
20 * the Bid that is rejected
21 */
22 public Reject(AgentID agentID, Bid bid) {
23 super(agentID, bid);
24 }
25
26 /**
27 * @return string representation of action: "(Reject)".
28 */
29 public String toString() {
30 return "(Reject " + getContent() + ")";
31 }
32}
Note: See TracBrowser for help on using the repository browser.