Last change
on this file since 69 was 67, checked in by Bart Vastenhouw, 3 years ago |
Added SAOP and simplerunner to GeniusWebPython. Several minor fixes.
|
File size:
971 bytes
|
Line | |
---|
1 | from abc import abstractmethod, ABC
|
---|
2 |
|
---|
3 | from pyson.JsonSubTypes import JsonSubTypes
|
---|
4 |
|
---|
5 |
|
---|
6 | @JsonSubTypes([ "ActionEvent","SessionStarted","TournamentStarted"])
|
---|
7 | class NegotiationEvent (ABC):
|
---|
8 | '''
|
---|
9 | reports some event happened in the negotiation system. Generally, parties are
|
---|
10 | informed about events in the system, but this depends on the protocol.
|
---|
11 | '''
|
---|
12 | @abstractmethod
|
---|
13 | def getTime(self)->int:
|
---|
14 | '''
|
---|
15 | @return the time at which the event happened on the server, measured in
|
---|
16 | milliseconds, between the start time and midnight, January 1,
|
---|
17 | 1970 UTCas. See also {@link System#currentTimeMillis()}. <br>
|
---|
18 |
|
---|
19 | If the event is about an {@link Action} done by a negotiation
|
---|
20 | party on another machine, this time refers to the time the action
|
---|
21 | was handled on the server (which may differ from the clock time
|
---|
22 | on the other machine). <br>
|
---|
23 |
|
---|
24 | Note: we do not use RFC 3339 because we need millisecond
|
---|
25 | accuracy.
|
---|
26 | '''
|
---|
Note:
See
TracBrowser
for help on using the repository browser.