source: geniuswebcore/geniusweb/actions/AbstractAction.py@ 60

Last change on this file since 60 was 59, checked in by Wouter Pasman, 3 years ago

#44 manual commit of first public release, because this will cause the dist directory to move

File size: 597 bytes
RevLine 
[59]1from geniusweb.actions.Action import Action
2from geniusweb.actions.PartyId import PartyId
3
4class AbstractAction ( Action ):
5
6 def __init__(self, actor:PartyId):
7 '''
8 @param id the {@link PartyId} of the party executing the action. Usually
9 the negotiation system will check that parties only use their
10 own Id when doing actions.
11 '''
12 self._actor = actor;
13
14
15 def getActor(self) -> PartyId:
16 return self._actor;
17
18 def __eq__(self, other):
19 return isinstance(other, self.__class__) and \
20 self._actor==other._actor
21
22 def __hash__(self):
23 return hash(self._actor)
Note: See TracBrowser for help on using the repository browser.