source: geniuswebcore/geniusweb/deadline/Deadline.py@ 88

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

Added python SimpleRunner GUI

File size: 607 bytes
Line 
1
2from pyson.JsonSubTypes import JsonSubTypes
3from pyson.JsonTypeInfo import JsonTypeInfo, As, Id
4
5from abc import ABC, abstractmethod
6
7@JsonTypeInfo(use = Id.NAME, include = As.WRAPPER_OBJECT)
8@JsonSubTypes( ["geniusweb.deadline.DeadlineRounds.DeadlineRounds","geniusweb.deadline.DeadlineTime.DeadlineTime" ])
9class 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.