source: src/main/java/genius/core/actions/OfferForVoting.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: 694 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 Reyhan Aydogan
13 */
14
15@XmlRootElement
16public class OfferForVoting extends Offer {
17
18 /** Creates a new instance of SendBid */
19 public OfferForVoting(AgentID agent, Bid bid) {
20 super(agent, bid);
21 }
22
23 /** Creates a new instance of SendBid */
24 public OfferForVoting(Agent agent, Bid bid) {
25 this(agent.getAgentID(), bid);
26 }
27
28 public Bid getBid() {
29 return bid;
30 }
31
32 public String toString() {
33 return "(Offer: " + (bid == null ? "null" : bid.toString()) + ")";
34 }
35
36}
Note: See TracBrowser for help on using the repository browser.