Changeset 58 for trunk/tool
- Timestamp:
- 10/09/07 12:01:26 (15 years ago)
- Location:
- trunk/tool
- Files:
-
- 1 added
- 1 removed
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/tool/renetcolGUI.py
r57 r58 155 155 resS = 1 156 156 resD = 1 157 resInIndex = 1 158 resOutIndex = 1 157 159 for i in range (0, len(tpl_def[self.flow[0]])): 158 160 f = tpl_def[self.flow[0]][i][0] … … 166 168 elif ( (f==1) and (checkUpValues[f]==1) ): 167 169 res = res & ( (self.flow[1][i] <= ((firstParseValue[f])+((firstParseValue[f])*5/100))) and ((self.flow[1][i] >= ((firstParseValue[f])-((firstParseValue[f])*5/100)))) ) 170 elif ((f==10) and (checkUpValues[f]==1)): 171 resInIndex = resInIndex & ( self.flow[1][i] == firstParseValue[f]) 172 elif ((f==14) and (checkUpValues[f]==1)): 173 resOutIndex = resOutIndex & ( self.flow[1][i] == firstParseValue[f]) 168 174 elif (checkUpValues[f]==1): 169 175 res = res & (self.flow[1][i] == firstParseValue[f]) 170 176 if ( checkUpValues[69]==1 ): 171 177 res = res & ( (fromRouter == firstParseValue[69]) ) 172 res = res & (resS or resD) 178 res = res & (resS or resD) & (resInIndex or resOutIndex) 173 179 return res 174 180