source: src/main/java/genius/core/actions/OfferForFeedback.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: 653 bytes
Line 
1package genius.core.actions;
2
3import javax.xml.bind.annotation.XmlRootElement;
4
5import genius.core.Agent;
6import genius.core.AgentID;
7import genius.core.Bid;
8
9/**
10 * immutable.
11 *
12 * @author Dmytro Tykhonov
13 */
14
15@XmlRootElement
16public class OfferForFeedback extends Offer {
17
18 /** Creates a new instance of SendBid */
19 public OfferForFeedback(AgentID agent, Bid bid) {
20 super(agent, bid);
21 }
22
23 /** Creates a new instance of SendBid */
24 public OfferForFeedback(Agent agent, Bid bid) {
25 this(agent.getAgentID(), bid);
26 }
27
28 public String toString() {
29 return "(Offer: " + (bid == null ? "null" : bid.toString()) + ")";
30 }
31}
Note: See TracBrowser for help on using the repository browser.