Last change
on this file since 100 was 100, checked in by ruud, 20 months ago |
python installs also wheel to avoid error messages
|
File size:
597 bytes
|
Line | |
---|
1 | from geniusweb.actions.Action import Action
|
---|
2 | from geniusweb.actions.PartyId import PartyId
|
---|
3 |
|
---|
4 | class 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.