コード例 #1
0
 def __init__(self):
     phases = [
         'GGgrrrGGgrrr', 'rrrGrGrrrGrG', 'rrrGGrrrrGGr', 'rrrGGGrrrrrr',
         'rrrrrrrrrGGG'
     ]
     self.phases = {PHASE_NUM: PhaseSet(phases)}
コード例 #2
0
 def __init__(self):
     two_phase = ['GGrr', 'rrGG']
     three_phase = ['GGGrrrrrr', 'rrrGGGrrr', 'rrrrrrGGG']
     self.phases = {2: PhaseSet(two_phase), 3: PhaseSet(three_phase)}
コード例 #3
0
 def __init__(self):
     self.phases = {}
     for key, val in PHASES.items():
         self.phases[key] = PhaseSet(val)