source: geniuswebcore/geniusweb/actions/Accept.py@ 88

Last change on this file since 88 was 88, checked in by Bart Vastenhouw, 3 years ago

Added python SimpleRunner GUI

File size: 736 bytes
Line 
1from typing import Any, Dict
2from geniusweb.actions.ActionWithBid import ActionWithBid
3from geniusweb.actions.PartyId import PartyId
4from geniusweb.issuevalue.Bid import Bid
5
6class Accept (ActionWithBid):
7 '''
8 An accept done by some party indicates that that party agrees with the bid.
9 Usually the contained {@link Bid} must be a bid that was previously
10 {@link Offer}ed by some party.
11 '''
12 def __init__(self,actor:PartyId ,bid:Bid):
13 '''
14 @param id the accepting party.
15 @param bid the bid that was offered before (usually by some other Party )
16 FIXME stronger typing using Bid class
17 '''
18 super().__init__(actor, bid);
19
20 def __repr__(self)->str:
21 return("Accept[" + str(self.getActor()) + "," + str(self.getBid()) + "]")
22
23
Note: See TracBrowser for help on using the repository browser.