MCPcopy Index your code
hub / github.com/pyfa-org/Pyfa / CycleInfo

Class CycleInfo

eos/utils/cycles.py:7–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5
6
7class CycleInfo:
8
9 def __init__(self, activeTime, inactiveTime, quantity, isInactivityReload):
10 self.activeTime = activeTime
11 self.inactiveTime = inactiveTime
12 self.quantity = quantity
13 self.isInactivityReload = isInactivityReload
14
15 @property
16 def averageTime(self):
17 return self.activeTime + self.inactiveTime
18
19 def iterCycles(self):
20 i = 0
21 while i < self.quantity:
22 yield self.activeTime, self.inactiveTime, self.isInactivityReload
23 i += 1
24
25 def _getCycleQuantity(self):
26 return self.quantity
27
28 def _getTime(self):
29 return (self.activeTime + self.inactiveTime) * self.quantity
30
31 def __repr__(self):
32 spec = ['activeTime', 'inactiveTime', 'quantity', 'isInactivityReload']
33 return makeReprStr(self, spec)
34
35
36class CycleSequence:

Calls

no outgoing calls

Tested by

no test coverage detected