Exemplo n.º 1
0
 def __init__(self, c_name):
     Circuit.__init__(self, c_name)
     self.input_val_list = []
     self.total_faults = 0
     self.total_faults_after_reduced = 0
     self.full_fault_dict = {}
     self.reduced_fault_dict = {}
     self.fault_coverage = 0
     self.RFL_fault_coverage = 0
     self.input_pattern_collect = []  #collect all the input pattern
     self.input_pattern_to_fault_collect = []
     self.full_fault_dict_bit = 0
     #random_input_part
     self.cur_count_total_faults = 0
     self.cur_count_total_faults_after_reduced = 0
     self.pre_count_total_faults = 0
     self.pre_count_total_faults_after_reduced = 0
     self.hyper_parameter = 0
     self.random_counter = 0
     self.dfs_counter = 0
Exemplo n.º 2
0
 def __init__(self,pin_no):
     Circuit.__init__(self)
Exemplo n.º 3
0
 def __init__(self,pin_no):
     Circuit.__init__(self)
     self._pin_no = pin_no
     GPIO.setmode(GPIO.BCM)
     GPIO.setup(self._pin_no, GPIO.IN)