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

Last change on this file since 63 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: 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.