Last change
on this file since 74 was 73, checked in by Bart Vastenhouw, 3 years ago |
Fix for IssueValue hashcode.
|
File size:
574 bytes
|
Rev | Line | |
---|
[73] | 1 | from typing import Dict, Any
|
---|
| 2 |
|
---|
| 3 | from geniusweb.actions.ActionWithBid import ActionWithBid
|
---|
| 4 | from geniusweb.actions.PartyId import PartyId
|
---|
| 5 | from geniusweb.issuevalue.Bid import Bid
|
---|
| 6 |
|
---|
| 7 |
|
---|
| 8 | class Offer ( ActionWithBid ):
|
---|
| 9 | '''
|
---|
| 10 | An offer represents a proposal from some actor that others may accept.
|
---|
| 11 | Executing an Offer action usually means that the party doing the action
|
---|
| 12 | accepts the offer himself.
|
---|
| 13 | '''
|
---|
| 14 |
|
---|
| 15 | def __init__(self, actor:PartyId, bid:Bid ):
|
---|
| 16 | super().__init__(actor, bid);
|
---|
| 17 |
|
---|
| 18 | def __repr__(self)->str:
|
---|
| 19 | return "Offer[" + str(self.getActor()) + "," + str(self.getBid()) + "]"
|
---|
| 20 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.