Last change
on this file since 88 was 88, checked in by Bart Vastenhouw, 3 years ago |
Added python SimpleRunner GUI
|
File size:
607 bytes
|
Line | |
---|
1 |
|
---|
2 | from pyson.JsonSubTypes import JsonSubTypes
|
---|
3 | from pyson.JsonTypeInfo import JsonTypeInfo, As, Id
|
---|
4 |
|
---|
5 | from abc import ABC, abstractmethod
|
---|
6 |
|
---|
7 | @JsonTypeInfo(use = Id.NAME, include = As.WRAPPER_OBJECT)
|
---|
8 | @JsonSubTypes( ["geniusweb.deadline.DeadlineRounds.DeadlineRounds","geniusweb.deadline.DeadlineTime.DeadlineTime" ])
|
---|
9 | class Deadline(ABC):
|
---|
10 | '''
|
---|
11 | Deadline indicates how long a session will be allowed to run. So it contains
|
---|
12 | "relative" data (relative to the unknown start time of the session)
|
---|
13 | '''
|
---|
14 | @abstractmethod
|
---|
15 | def getDuration(self):
|
---|
16 | '''
|
---|
17 | @return the duration of this deadline, measured in milliseconds
|
---|
18 | '''
|
---|
Note:
See
TracBrowser
for help on using the repository browser.