-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEnduroScreenModel.py
More file actions
31 lines (26 loc) · 1.07 KB
/
EnduroScreenModel.py
File metadata and controls
31 lines (26 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import sys
class EnduroScreenModel:
def __init__(self,
distanceMiles,
milesToNextPossable,
routeSpeed,
averageSpeed,
currentSpeed,
timeTotalSeconds,
paceTotalSeconds):
self.distanceMiles = distanceMiles
self.milesToNextPossable = milesToNextPossable
self.routeSpeed = routeSpeed
self.averageSpeed = averageSpeed
self.currentSpeed = currentSpeed
self.timeTotalSeconds = timeTotalSeconds
self.paceTotalSeconds = paceTotalSeconds
def printMe(self):
sys.stdout.write("dist: " + str(self.distanceMiles))
sys.stdout.write(" mtnp: " + str(self.milesToNextPossable))
sys.stdout.write(" rs : " + str(self.routeSpeed))
sys.stdout.write(" as : " + str(self.averageSpeed))
sys.stdout.write(" cs : " + str(self.currentSpeed))
sys.stdout.write(" tots: " + str(self.timeTotalSeconds))
sys.stdout.write(" pacs: " + str(self.paceTotalSeconds))
sys.stdout.write("\r\n")