rem
stringlengths
1
322k
add
stringlengths
0
2.05M
context
stringlengths
4
228k
meta
stringlengths
156
215
else: aNewSystemPath = '/' + aSystemFullID[ID]
elif aSystemFullID[SYSTEMPATH] == '/': aNewSystemPath = aSystemFullID[SYSTEMPATH] + aSystemFullID[ID]
def createSystemPathFromFullID( aSystemFullID ): if aSystemFullID[SYSTEMPATH] == '/': if aSystemFullID[ID] == '/': aNewSystemPath = '/' else: aNewSystemPath = '/' + aSystemFullID[ID] else: aNewSystemPath = aSystemFullID[SYSTEMPATH] + '/' +\ aSystemFullID[ID] return aNewSystemPath
6b30f7dc6ef4cfaea084d0ba92002c4bbaecb83d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/6b30f7dc6ef4cfaea084d0ba92002c4bbaecb83d/ecssupport.py
aNewSystemPath = aSystemFullID[SYSTEMPATH] + '/' +\ aSystemFullID[ID]
aNewSystemPath = aSystemFullID[SYSTEMPATH] + '/' + aSystemFullID[ID]
def createSystemPathFromFullID( aSystemFullID ): if aSystemFullID[SYSTEMPATH] == '/': if aSystemFullID[ID] == '/': aNewSystemPath = '/' else: aNewSystemPath = '/' + aSystemFullID[ID] else: aNewSystemPath = aSystemFullID[SYSTEMPATH] + '/' +\ aSystemFullID[ID] return aNewSystemPath
6b30f7dc6ef4cfaea084d0ba92002c4bbaecb83d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/6b30f7dc6ef4cfaea084d0ba92002c4bbaecb83d/ecssupport.py
def createSystemPathFromFullID( aSystemFullID ): if aSystemFullID[SYSTEMPATH] == '/': if aSystemFullID[ID] == '/': aNewSystemPath = '/' else: aNewSystemPath = '/' + aSystemFullID[ID] else: aNewSystemPath = aSystemFullID[SYSTEMPATH] + '/' +\ aSystemFullID[ID] return aNewSystemPath
6b30f7dc6ef4cfaea084d0ba92002c4bbaecb83d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/6b30f7dc6ef4cfaea084d0ba92002c4bbaecb83d/ecssupport.py
systemfullid3 = createFullID( 'System:/:/' )
systemfullid3 = createFullID( 'System::/' )
def createSystemPathFromFullID( aSystemFullID ): if aSystemFullID[SYSTEMPATH] == '/': if aSystemFullID[ID] == '/': aNewSystemPath = '/' else: aNewSystemPath = '/' + aSystemFullID[ID] else: aNewSystemPath = aSystemFullID[SYSTEMPATH] + '/' +\ aSystemFullID[ID] return aNewSystemPath
6b30f7dc6ef4cfaea084d0ba92002c4bbaecb83d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/6b30f7dc6ef4cfaea084d0ba92002c4bbaecb83d/ecssupport.py
self.thePluginManager.printMessage( "%s: not numerical data\n" % aFullPNString )
aMessage = "Error: (%s) is not numerical data" %aFullPNString self.thePluginManager.printMessage( aMessage ) aDialog = ConfirmWindow(0,aMessage,'Error!')
def __init__( self, dirname, data, pluginmanager, root=None ):
e25a4482966107fd645b73fd395987a2d02216c7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/e25a4482966107fd645b73fd395987a2d02216c7/TracerWindow.py
self.addPopupMenu(0,1,0)
def __init__( self, dirname, data, pluginmanager, root=None ):
e25a4482966107fd645b73fd395987a2d02216c7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/e25a4482966107fd645b73fd395987a2d02216c7/TracerWindow.py
self.LoggerDataList.append( aLoggerStub.getDataWithStartEndInterval(self.StartTime, aEndTime, 1) )
if self.StartTime < aEndTime: self.LoggerDataList.append( aLoggerStub.getDataWithStartEndInterval(self.StartTime, aEndTime, 1) ) else: aValue = self.theSession.theSimulator.getEntityProperty( createFullPNString(self.theFullPN()) ) self.theFirstLog = [[self.StartTime,aValue,aValue,aValue,aValue]] self.LoggerDataList.app...
def updateLoggerDataList(self): self.LoggerDataList =[] for aLogger in self.theLoggerList: aLoggerStub = LoggerStub( self.theSession.theSimulator, aLogger ) aEndTime = aLoggerStub.getEndTime() self.LoggerDataList.append( aLoggerStub.getDataWithStartEndInterval(self.StartTime, aEndTime, 1) )
e25a4482966107fd645b73fd395987a2d02216c7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/e25a4482966107fd645b73fd395987a2d02216c7/TracerWindow.py
def updateLoggerDataList(self): self.LoggerDataList =[] for aLogger in self.theLoggerList: aLoggerStub = LoggerStub( self.theSession.theSimulator, aLogger ) aEndTime = aLoggerStub.getEndTime() self.LoggerDataList.append( aLoggerStub.getDataWithStartEndInterval(self.StartTime, aEndTime, 1) )
e25a4482966107fd645b73fd395987a2d02216c7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/e25a4482966107fd645b73fd395987a2d02216c7/TracerWindow.py
self.FullDataList.append( array(LoggerData) )
if LoggerData != self.theFirstLog: self.FullDataList.append( array(LoggerData) )
def updateFullDataList( self ): num = 0 FullDataList_prev = self.FullDataList self.FullDataList = [] for LoggerData in self.LoggerDataList: if len(FullDataList_prev) > num : self.FullDataList.append( concatenate( (FullDataList_prev[num], array( LoggerData )))) if num >= len(FullDataList_prev): self.FullDataList.append(...
e25a4482966107fd645b73fd395987a2d02216c7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/e25a4482966107fd645b73fd395987a2d02216c7/TracerWindow.py
if self.LoggerDataList[0] == (): pass else: self.updateFullDataList() self.xList = [] self.yList = [] if self.xaxis == None or self.xaxis == 'time': if self.yaxis == None: for num in range(len(self.LoggerDataList)): self.xList.append(self.FullDataList[num][:,0]) self.yList.append(self.FullDataList[num][:,1]) else: num...
try: if self.LoggerDataList[0] == (): pass else: self.updateFullDataList() self.xList = [] self.yList = [] if self.xaxis == None or self.xaxis == 'time': if self.yaxis == None: for num in range(len(self.LoggerDataList)): self.xList.append(self.FullDataList[num][:,0]) self.yList.append(self.FullDataList[num][:,1]) els...
def update( self ): if self.arg % 10 == 5: theStateList = self.setStateList() self.updateLoggerDataList() if self.LoggerDataList[0] == (): pass else: self.updateFullDataList() self.xList = [] self.yList = [] if self.xaxis == None or self.xaxis == 'time': if self.yaxis == None: for num in range(len(self.LoggerDataList)...
e25a4482966107fd645b73fd395987a2d02216c7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/e25a4482966107fd645b73fd395987a2d02216c7/TracerWindow.py
try: self.xList.append ( self.FullDataList[0][:,0] ) self.yList.append ( eval(yaxis, self.entry)[:,1] ) except NameError: self.theSession.printMessage( "name '%s' is not defined \n" % yaxis ) self["entry%i"%num].set_text ('') self.changeyaxis( self["entry%i"%num]) self.yList.append(['None']) except (SyntaxError,TypeErr...
try: self.xList.append ( self.FullDataList[0][:,0] ) self.yList.append ( eval(yaxis, self.entry)[:,1] ) except NameError: self.theSession.printMessage( "name '%s' is not defined \n" % yaxis ) self["entry%i"%num].set_text ('') self.changeyaxis( self["entry%i"%num]) self.yList.append(['None']) except (SyntaxError,TypeErr...
def update( self ): if self.arg % 10 == 5: theStateList = self.setStateList() self.updateLoggerDataList() if self.LoggerDataList[0] == (): pass else: self.updateFullDataList() self.xList = [] self.yList = [] if self.xaxis == None or self.xaxis == 'time': if self.yaxis == None: for num in range(len(self.LoggerDataList)...
e25a4482966107fd645b73fd395987a2d02216c7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/e25a4482966107fd645b73fd395987a2d02216c7/TracerWindow.py
else: if self.yaxis == None: for num in range(len(self.LoggerDataList)): try : self.xList.append ( eval(self.xaxis, self.entry)[:,1] ) except NameError: self.theSession.printMessage( "name '%s' is not defined \n" % self.xaxis ) self["entry1"].set_text ('time') self.changexaxis( self["entry1"] ) self.xList.append(self....
def update( self ): if self.arg % 10 == 5: theStateList = self.setStateList() self.updateLoggerDataList() if self.LoggerDataList[0] == (): pass else: self.updateFullDataList() self.xList = [] self.yList = [] if self.xaxis == None or self.xaxis == 'time': if self.yaxis == None: for num in range(len(self.LoggerDataList)...
e25a4482966107fd645b73fd395987a2d02216c7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/e25a4482966107fd645b73fd395987a2d02216c7/TracerWindow.py
num = 2 for yaxis in self.yaxis: if yaxis == '': self.xList.append (['None']) self.yList.append (['None']) else: try: self.xList.append( eval(self.xaxis, self.entry)[:,1])
if self.yaxis == None: for num in range(len(self.LoggerDataList)): try : self.xList.append ( eval(self.xaxis, self.entry)[:,1] )
def update( self ): if self.arg % 10 == 5: theStateList = self.setStateList() self.updateLoggerDataList() if self.LoggerDataList[0] == (): pass else: self.updateFullDataList() self.xList = [] self.yList = [] if self.xaxis == None or self.xaxis == 'time': if self.yaxis == None: for num in range(len(self.LoggerDataList)...
e25a4482966107fd645b73fd395987a2d02216c7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/e25a4482966107fd645b73fd395987a2d02216c7/TracerWindow.py
self.changexaxis( self["entry1"] )
self.changexaxis( self["entry1"] )
def update( self ): if self.arg % 10 == 5: theStateList = self.setStateList() self.updateLoggerDataList() if self.LoggerDataList[0] == (): pass else: self.updateFullDataList() self.xList = [] self.yList = [] if self.xaxis == None or self.xaxis == 'time': if self.yaxis == None: for num in range(len(self.LoggerDataList)...
e25a4482966107fd645b73fd395987a2d02216c7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/e25a4482966107fd645b73fd395987a2d02216c7/TracerWindow.py
self.changexaxis( self["entry1"] ) self.xList.append(self.FullDataList[0][:,0]) try: self.yList.append( eval(yaxis, self.entry)[:,1]) except NameError: self.theSession.printMessage( "name '%s' is not defined \n" % yaxis ) self["entry%i"%num].set_text ('') self.changeyaxis( self["entry%i"%num] ) self.yList.append(['Non...
self.changexaxis( self["entry1"] ) self.xList.append(self.FullDataList[0][:,0]) self.yList.append ( self.FullDataList[num][:,1] ) else: num = 2 for yaxis in self.yaxis: if yaxis == '': self.xList.append (['None']) self.yList.append (['None']) else: try: self.xList.append( eval(self.xaxis, self.entry)[:,1]) except NameE...
def update( self ): if self.arg % 10 == 5: theStateList = self.setStateList() self.updateLoggerDataList() if self.LoggerDataList[0] == (): pass else: self.updateFullDataList() self.xList = [] self.yList = [] if self.xaxis == None or self.xaxis == 'time': if self.yaxis == None: for num in range(len(self.LoggerDataList)...
e25a4482966107fd645b73fd395987a2d02216c7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/e25a4482966107fd645b73fd395987a2d02216c7/TracerWindow.py
self.theDataList[num].set_points( None, None ) else: if self.scale == "log": if min(array(LoggerData)[:,1]) <= 0:
self.theDataList[num].set_points(None,None) elif yaxis == '': self.theDataList[num].set_points(None,None) else : if self.scale == 'log': if min(array(LoggerData)[:,1] ) <= 0:
def update( self ): if self.arg % 10 == 5: theStateList = self.setStateList() self.updateLoggerDataList() if self.LoggerDataList[0] == (): pass else: self.updateFullDataList() self.xList = [] self.yList = [] if self.xaxis == None or self.xaxis == 'time': if self.yaxis == None: for num in range(len(self.LoggerDataList)...
e25a4482966107fd645b73fd395987a2d02216c7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/e25a4482966107fd645b73fd395987a2d02216c7/TracerWindow.py
self.scale = "linear" self.theDataList[num].set_points( self.xList[num], self.yList[num] ) num += 1 else: num = 0 for yaxis in self.yaxis: if theStateList[num] == 1: self.theDataList[num].set_points(None,None) elif yaxis == '': self.theDataList[num].set_points(None,None) else : if self.scale == 'log': if min(array(Log...
self.scale = 'linear' self.theDataList[num].set_points(self.xList[num],self.yList[num]) num += 1 except: pass
def update( self ): if self.arg % 10 == 5: theStateList = self.setStateList() self.updateLoggerDataList() if self.LoggerDataList[0] == (): pass else: self.updateFullDataList() self.xList = [] self.yList = [] if self.xaxis == None or self.xaxis == 'time': if self.yaxis == None: for num in range(len(self.LoggerDataList)...
e25a4482966107fd645b73fd395987a2d02216c7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/e25a4482966107fd645b73fd395987a2d02216c7/TracerWindow.py
if( self.theSession == None ):
self.initializeComponents() self.theSelectedEntityList = [] self.theSelectedPluginInstanceList = [] self.CloseOrder = False def initializeComponents( self, session = None ): if ( session != None ): self.theSession = session self.thePluginManager = session.thePluginManager if ( self.theSession == None ):
def openWindow( self ):
0709e206726b425f6b59044cd1ecfbce710e0417 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/0709e206726b425f6b59044cd1ecfbce710e0417/EntityListWindow.py
def openWindow( self ):
0709e206726b425f6b59044cd1ecfbce710e0417 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/0709e206726b425f6b59044cd1ecfbce710e0417/EntityListWindow.py
def openWindow( self ):
0709e206726b425f6b59044cd1ecfbce710e0417 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/0709e206726b425f6b59044cd1ecfbce710e0417/EntityListWindow.py
self.theQueue.registerCallback( self.doSelection ) self.__initializePluginWindowOptionMenu()
self.theQueue.registerCallback( self.doSelection ) self.__initializePluginWindowOptionMenu()
def openWindow( self ):
0709e206726b425f6b59044cd1ecfbce710e0417 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/0709e206726b425f6b59044cd1ecfbce710e0417/EntityListWindow.py
self.theSelectedEntityList = [] self.theSelectedPluginInstanceList = [] self.CloseOrder = False
def openWindow( self ):
0709e206726b425f6b59044cd1ecfbce710e0417 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/0709e206726b425f6b59044cd1ecfbce710e0417/EntityListWindow.py
aVariable[MS_ENTITY_PROPERTYLIST][MS_VARIABLE_NUMCONC][MS_PROPERTY_FLAGS][MS_CHANGED_FLAG] = 1
def __recalculateConcentrations(self, aVariable, systemSize ): aValue = float( aVariable[MS_ENTITY_PROPERTYLIST][MS_VARIABLE_VALUE][MS_PROPERTY_VALUE] ) if systemSize != 0.0: newMolarConc = aValue / ( AVOGADRO * systemSize ) else: newMolarConc = 0.0 aVariable[MS_ENTITY_PROPERTYLIST][MS_VARIABLE_MOLARCONC][MS_PROPERTY_...
90de4d78b14e0ec3a85c3984ffe00b48b3342944 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/90de4d78b14e0ec3a85c3984ffe00b48b3342944/ModelStore.py
stmts : stmt stmts
stmts : stmts stmt | stmt
def p_stmts(t): ''' stmts : stmt stmts ''' t[0] = createList( 'stmts', t)
708aca6a6a1b52b7af22ff6945876f399628848d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/708aca6a6a1b52b7af22ff6945876f399628848d/emparser.py
''' propertylist : property propertylist | property | empty ''' t[0] = createList( 'propertylist', t )
''' propertylist : propertylist property | property | empty ''' t[0] = createList( 'propertylist', t )
def p_propertylist(t): ''' propertylist : property propertylist | property | empty ''' t[0] = createList( 'propertylist', t )
708aca6a6a1b52b7af22ff6945876f399628848d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/708aca6a6a1b52b7af22ff6945876f399628848d/emparser.py
property_entity_list : property_entity property_entity_list
property_entity_list : property_entity_list property_entity
def p_property_entity_list(t): ''' property_entity_list : property_entity property_entity_list | property_entity | empty ''' t[0] = createList( 'property_entity_list', t )
708aca6a6a1b52b7af22ff6945876f399628848d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/708aca6a6a1b52b7af22ff6945876f399628848d/emparser.py
valuelist : value valuelist
valuelist : valuelist value
def p_valuelist(t): ''' valuelist : value valuelist | value ''' t[0] = createList( 'valuelist', t )
708aca6a6a1b52b7af22ff6945876f399628848d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/708aca6a6a1b52b7af22ff6945876f399628848d/emparser.py
matrixlist : matrix matrixlist
matrixlist : matrixlist matrix
def p_matrixlist(t): ''' matrixlist : matrix matrixlist | matrix ''' t[0] = createList( 'matrixlist', t )
708aca6a6a1b52b7af22ff6945876f399628848d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/708aca6a6a1b52b7af22ff6945876f399628848d/emparser.py
print "Syntax error at line %d in %s. (near '%s')" % ( t.lineno, t.value )
print "Syntax error at line %d in %s. " % ( t.lineno, t.value )
def p_error(t): print "Syntax error at line %d in %s. (near '%s')" % ( t.lineno, t.value ) yacc.errok()
708aca6a6a1b52b7af22ff6945876f399628848d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/708aca6a6a1b52b7af22ff6945876f399628848d/emparser.py
self.minmax[1]=self.minmax[0]*2
if self.minmax[0]==0: self.minmax[1]=1 else: self.minmax[1]=self.minmax[0]*2
def reframey(self): #no redraw! #get max and min from databuffers if self.zoomlevel==0: self.getminmax() if self.minmax[0]==self.minmax[1]: self.minmax[1]=self.minmax[0]*2 #calculate yframemin, max if self.scale_type=='linear': yrange=(self.minmax[1]-self.minmax[0])/(self.yframemax_when_rescaling-self.yframemin_when_r...
912698db6bf1ace6defb7275382e4229345f1963 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/912698db6bf1ace6defb7275382e4229345f1963/Plot.py
self.ygrid[1]=pow(10,floor(log10(self.yframe[1]))) self.ygrid[0]=pow(10,ceil(log10(self.yframe[0]))) diff=int(log10(self.ygrid[1]/self.ygrid[0])) if diff==0:diff=1 if diff<6: self.yticks_no=diff self.yticks_step=10
if self.yframe[1]>0 and self.yframe[0]>0: self.ygrid[1]=pow(10,floor(log10(self.yframe[1]))) self.ygrid[0]=pow(10,ceil(log10(self.yframe[0]))) diff=int(log10(self.ygrid[1]/self.ygrid[0])) if diff==0:diff=1 if diff<6: self.yticks_no=diff self.yticks_step=10 else: self.yticks_no=5 self.yticks_step=pow(10,ceil(diff/5))
def reframey(self): #no redraw! #get max and min from databuffers if self.zoomlevel==0: self.getminmax() if self.minmax[0]==self.minmax[1]: self.minmax[1]=self.minmax[0]*2 #calculate yframemin, max if self.scale_type=='linear': yrange=(self.minmax[1]-self.minmax[0])/(self.yframemax_when_rescaling-self.yframemin_when_r...
912698db6bf1ace6defb7275382e4229345f1963 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/912698db6bf1ace6defb7275382e4229345f1963/Plot.py
self.yticks_no=5 self.yticks_step=pow(10,ceil(diff/5))
self.theOwner.theSession.printMessage("negative value in range, falling back to linear scale") self.change_scale()
def reframey(self): #no redraw! #get max and min from databuffers if self.zoomlevel==0: self.getminmax() if self.minmax[0]==self.minmax[1]: self.minmax[1]=self.minmax[0]*2 #calculate yframemin, max if self.scale_type=='linear': yrange=(self.minmax[1]-self.minmax[0])/(self.yframemax_when_rescaling-self.yframemin_when_r...
912698db6bf1ace6defb7275382e4229345f1963 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/912698db6bf1ace6defb7275382e4229345f1963/Plot.py
def addtrace(self,add_list): return_list=[] for add_item in add_list: #checks whether there's room for new traces #allocates a color aFullPNString= add_item[0] pm=Plot.addtrace(self,aFullPNString) if pm!=None: return_list.append([aFullPNString,pm]) #try to get more from logger self.refresh_loggerstartendmap() #if mode ...
912698db6bf1ace6defb7275382e4229345f1963 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/912698db6bf1ace6defb7275382e4229345f1963/Plot.py
anArgumentTuple = tuple( self.theDirectoryName ) + (sim,) + (data,)
anArgumentTuple = ( self.theDirectoryName, sim , data )
def createInstance( self, sim, data, parent=None ): aConstructor = self.theModule.__dict__[self.theName] anArgumentTuple = tuple( self.theDirectoryName ) + (sim,) + (data,) apply( aConstructor, anArgumentTuple )
4626d974b9ee7a7bc23d48f134bfb72c2f45f016 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/4626d974b9ee7a7bc23d48f134bfb72c2f45f016/Plugin.py
if type(aMessage) == type([]) or type(aMessage) == type(()) :
if type(aMessage) == list:
def printMessage( self, aMessage ):
1aac8e69eb7d3eadd6b33650491c062995c70fb8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/1aac8e69eb7d3eadd6b33650491c062995c70fb8/MessageWindow.py
aMessage = '\n' + aMessage[0]
aMessage[0] = '\n' + aMessage[0]
def printMessage( self, aMessage ):
1aac8e69eb7d3eadd6b33650491c062995c70fb8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/1aac8e69eb7d3eadd6b33650491c062995c70fb8/MessageWindow.py
aString = str( aMessage )
aString = str( aLine )
def printMessage( self, aMessage ):
1aac8e69eb7d3eadd6b33650491c062995c70fb8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/1aac8e69eb7d3eadd6b33650491c062995c70fb8/MessageWindow.py
self.pull = 0 self.thePositiveFlag = 1 self.theAutoChangeFlag = 1 self.theActualValue = 0 self.theBarLength = 0 self.theMultiplier = 0
self.pull = FALSE self.thePositiveFlag = TRUE self.theFixFlag = FALSE self.theActualValue = FALSE self.theBarLength = FALSE self.theMultiplier = FALSE
def __init__( self, dirname, data, pluginmanager, root=None ):
d6afe4061131c3989292a58918940112ac0c8b2d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/d6afe4061131c3989292a58918940112ac0c8b2d/BargraphWindow.py
'on_add_button_clicked' : self.updateByAddbutton, 'on_subtract_button_clicked' : self.updateBySubtractbutton,
'on_add_button_clicked' : self.updateByIncrease, 'on_subtract_button_clicked' : self.updateByDecrease,
def __init__( self, dirname, data, pluginmanager, root=None ):
d6afe4061131c3989292a58918940112ac0c8b2d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/d6afe4061131c3989292a58918940112ac0c8b2d/BargraphWindow.py
'auto_button_toggled' : self.updateByAutoButton ,
'fix_checkbutton_toggled' : self.updateByFix ,
def __init__( self, dirname, data, pluginmanager, root=None ):
d6afe4061131c3989292a58918940112ac0c8b2d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/d6afe4061131c3989292a58918940112ac0c8b2d/BargraphWindow.py
#def initialize( self ):
d6afe4061131c3989292a58918940112ac0c8b2d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/d6afe4061131c3989292a58918940112ac0c8b2d/BargraphWindow.py
value = aValue self.theActualValue = value
self.theActualValue = aValue
def update( self ): aString = str( self.theFullPN()[ID] ) aString += ':\n' + str( self.theFullPN()[PROPERTY] ) self.theIDEntry.set_text ( aString )
d6afe4061131c3989292a58918940112ac0c8b2d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/d6afe4061131c3989292a58918940112ac0c8b2d/BargraphWindow.py
= self.calculateBarLength( value ) aIndicator = (value / (float)(10**(self.theMultiplier))) \
= self.calculateBarLength( aValue ) aIndicator = (aValue / (float)(10**(self.theMultiplier))) \
def update( self ): aString = str( self.theFullPN()[ID] ) aString += ':\n' + str( self.theFullPN()[PROPERTY] ) self.theIDEntry.set_text ( aString )
d6afe4061131c3989292a58918940112ac0c8b2d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/d6afe4061131c3989292a58918940112ac0c8b2d/BargraphWindow.py
self['progressbar'].set_format_string(str(value))
self['progressbar'].set_format_string(str(aValue))
def update( self ): aString = str( self.theFullPN()[ID] ) aString += ':\n' + str( self.theFullPN()[PROPERTY] ) self.theIDEntry.set_text ( aString )
d6afe4061131c3989292a58918940112ac0c8b2d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/d6afe4061131c3989292a58918940112ac0c8b2d/BargraphWindow.py
def updateByAuto( self, value ): self.theAutoChangeFlag = 1 self.update() def updateByAddbutton( self , obj ): self['auto_button'].set_active( 0 )
def updateByAuto( self, aValue ): self.theFixFlag = 0 self.update() def updateByIncrease( self , obj ): self.theFixFlag = TRUE self['fix_checkbutton'].set_active( TRUE )
def updateByAuto( self, value ):
d6afe4061131c3989292a58918940112ac0c8b2d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/d6afe4061131c3989292a58918940112ac0c8b2d/BargraphWindow.py
aNumber = string.atof( aNumberString )
try: aNumber = string.atof( aNumberString ) except: anErrorMessage = "Numeric charactor must be inputted!" aWarningWindow = ConfirmWindow(OK_MODE,anErrorMessage,'Error !') return None
def updateByAddbutton( self , obj ):
d6afe4061131c3989292a58918940112ac0c8b2d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/d6afe4061131c3989292a58918940112ac0c8b2d/BargraphWindow.py
self.theAutoChangeFlag = 0 self.update() def updateBySubtractbutton( self,obj ): self['auto_button'].set_active( 0 )
self.update() def updateByDecrease( self,obj ): self.theFixFlag = TRUE self['fix_checkbutton'].set_active( TRUE )
def updateByAddbutton( self , obj ):
d6afe4061131c3989292a58918940112ac0c8b2d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/d6afe4061131c3989292a58918940112ac0c8b2d/BargraphWindow.py
self.theAutoChangeFlag = 0
def updateBySubtractbutton( self,obj ):
d6afe4061131c3989292a58918940112ac0c8b2d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/d6afe4061131c3989292a58918940112ac0c8b2d/BargraphWindow.py
if self.theAutoChangeFlag : pass else : self['auto_button'].set_active( 0 )
def updateByTextentry(self, obj):
d6afe4061131c3989292a58918940112ac0c8b2d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/d6afe4061131c3989292a58918940112ac0c8b2d/BargraphWindow.py
aNumber = string.atof( aNumberString )
self['fix_checkbutton'].set_active( TRUE ) try: aNumber = string.atof( aNumberString ) except: anErrorMessage = "Numeric charactor must be inputted!" aWarningWindow = ConfirmWindow(OK_MODE,anErrorMessage,'Error !') return None self.theFixFlag = TRUE
def updateByTextentry(self, obj):
d6afe4061131c3989292a58918940112ac0c8b2d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/d6afe4061131c3989292a58918940112ac0c8b2d/BargraphWindow.py
self.theAutoChangeFlag = 0 self.update() def updateByAutoButton(self, autobutton):
self.update() def updateByFix(self, autobutton): self.theFixFlag = self['fix_checkbutton'].get_active()
def updateByTextentry(self, obj):
d6afe4061131c3989292a58918940112ac0c8b2d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/d6afe4061131c3989292a58918940112ac0c8b2d/BargraphWindow.py
if self['auto_button'].get_active() :
if self.theFixFlag == TRUE: aMultiplier = self.pull-2 else :
def calculateBarLength( self, value ):
d6afe4061131c3989292a58918940112ac0c8b2d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/d6afe4061131c3989292a58918940112ac0c8b2d/BargraphWindow.py
else : aMultiplier = self.pull-2
def calculateBarLength( self, value ):
d6afe4061131c3989292a58918940112ac0c8b2d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/d6afe4061131c3989292a58918940112ac0c8b2d/BargraphWindow.py
print aSubSystemList
def __loadProperty( self, anEml, aSystemPath='' ): # the default of aSystemPath is empty because # unlike __loadEntity() this starts with the root system
1b2dc5ddd7b7503bb3b33e0e97bb803b5d0b2765 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/1b2dc5ddd7b7503bb3b33e0e97bb803b5d0b2765/Session.py
def __init__( self ):
4e521ccf59c665b439a6ab56d9dd9b3e3e227b69 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/4e521ccf59c665b439a6ab56d9dd9b3e3e227b69/MainWindow.py
def __init__( self ):
4e521ccf59c665b439a6ab56d9dd9b3e3e227b69 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/4e521ccf59c665b439a6ab56d9dd9b3e3e227b69/MainWindow.py
aEntryList = EntryListWindow.EntryListWindow( self, self.theSimulator )
aEntryList = EntryListWindow.EntryListWindow( self )
def createNewEntryList( self, button_obj ) : aEntryList = EntryListWindow.EntryListWindow( self, self.theSimulator )
4e521ccf59c665b439a6ab56d9dd9b3e3e227b69 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/4e521ccf59c665b439a6ab56d9dd9b3e3e227b69/MainWindow.py
self.theEntityListWindow.setSession( self.theSession )
def __loadData( self, *arg ) : """loads model or script file arg[0] --- ok button of FileSelection arg[1] --- 'Model'/'Script' (str) Return None """
a0aec94122519a3beee259e4bdc623b0cff923e1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/a0aec94122519a3beee259e4bdc623b0cff923e1/MainWindow.py
self.theMessageWindowVisible = True self.showMessageWindow() self.__resizeVertically( self.theMessageWindow.getActualSize()[1] )
self.theMessageWindowVisible = True self.showMessageWindow() self.__resizeVertically( self.theMessageWindow.getActualSize()[1] )
def __toggleMessageWindow( self, *arg ) :
a0aec94122519a3beee259e4bdc623b0cff923e1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/a0aec94122519a3beee259e4bdc623b0cff923e1/MainWindow.py
self.theMessageWindowVisible = False self.hideMessageWindow() self.__resizeVertically( self['entitylistarea'].get_allocation()[3] )
self.theMessageWindowVisible = False self.hideMessageWindow() if self.theEntityListWindowVisible: self.__resizeVertically( self['entitylistarea'].get_allocation()[3] ) else: self.__resizeVertically( 0 )
def __toggleMessageWindow( self, *arg ) :
a0aec94122519a3beee259e4bdc623b0cff923e1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/a0aec94122519a3beee259e4bdc623b0cff923e1/MainWindow.py
self.__resizeVertically( self.theMessageWindow.getActualSize()[1] )
if self.theMessageWindowVisible: self.__resizeVertically( self.theMessageWindow.getActualSize()[1] ) else: self.__resizeVertically( 0 )
def __toggleEntityListWindow( self, *arg ):
a0aec94122519a3beee259e4bdc623b0cff923e1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/a0aec94122519a3beee259e4bdc623b0cff923e1/MainWindow.py
def setmode_strip(self,pointmap): #delete buffers #reframe buffers end-interval/end self.refresh_loggerstartendmap() #adjust xframe self.xframe[1]=0 for fpn in self.data_list: if pointmap[fpn][DP_TIME]>self.xframe[1]: self.xframe[1]=pointmap[fpn][DP_TIME] self.xframe[0]=floor(self.xframe[1]/self.stripinterval)*self.str...
8f18e3850a6316681f1074fff213ca716c4f5df5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/8f18e3850a6316681f1074fff213ca716c4f5df5/Plot.py
self.drawpoint_minmax(aFullPNString, datapoint) else: self.drawpoint_connect(aFullPNString, datapoint)
if not self.drawpoint_minmax(aFullPNString, x, y, ymax, ymin, lastx, lasty, lastymax, lastymin ): pass self.drawpoint_connect(aFullPNString, x, y, ymax, ymin, lastx, lasty, lastymax, lastymin )
def drawpoint(self, aFullPNString, datapoint): if self.strip_mode == 'history': self.drawpoint_minmax(aFullPNString, datapoint) else: self.drawpoint_connect(aFullPNString, datapoint)
8f18e3850a6316681f1074fff213ca716c4f5df5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/8f18e3850a6316681f1074fff213ca716c4f5df5/Plot.py
def drawpoint_minmax(self, aFullPNString, datapoint): if self.trace_onoff[aFullPNString]==gtk.FALSE: return 0 x=self.convertx_to_plot(datapoint[DP_TIME]) ymax=self.converty_to_plot(datapoint[DP_MAX]) ymin=self.converty_to_plot(datapoint[DP_MIN]) lastx=self.lastx[aFullPNString] lastymax=self.lastymax[aFullPNString] ...
def drawpoint_minmax(self, aFullPNString, x, y, ymax, ymin, lastx, lasty, lastymax, lastymin ):
def drawpoint_minmax(self, aFullPNString, datapoint): #get datapoint x y values #convert to plot coordinates if self.trace_onoff[aFullPNString]==gtk.FALSE: return 0 x=self.convertx_to_plot(datapoint[DP_TIME]) ymax=self.converty_to_plot(datapoint[DP_MAX]) ymin=self.converty_to_plot(datapoint[DP_MIN])
8f18e3850a6316681f1074fff213ca716c4f5df5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/8f18e3850a6316681f1074fff213ca716c4f5df5/Plot.py
if dx<2: self.drawminmax(aFullPNString,x,ymax, ymin) else:
self.drawminmax(aFullPNString,x,ymax, ymin) if dx>1: return True else: return False
def drawpoint_minmax(self, aFullPNString, datapoint): #get datapoint x y values #convert to plot coordinates if self.trace_onoff[aFullPNString]==gtk.FALSE: return 0 x=self.convertx_to_plot(datapoint[DP_TIME]) ymax=self.converty_to_plot(datapoint[DP_MAX]) ymin=self.converty_to_plot(datapoint[DP_MIN])
8f18e3850a6316681f1074fff213ca716c4f5df5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/8f18e3850a6316681f1074fff213ca716c4f5df5/Plot.py
x0=lastx ymax0=lastymax ymin0=lastymin x1=x ymax1=ymax ymin1=ymin x=x0+1 while x<=x1: self.drawminmax(aFullPNString, x, ymax, ymin) x+=1
def drawpoint_minmax(self, aFullPNString, datapoint): #get datapoint x y values #convert to plot coordinates if self.trace_onoff[aFullPNString]==gtk.FALSE: return 0 x=self.convertx_to_plot(datapoint[DP_TIME]) ymax=self.converty_to_plot(datapoint[DP_MAX]) ymin=self.converty_to_plot(datapoint[DP_MIN])
8f18e3850a6316681f1074fff213ca716c4f5df5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/8f18e3850a6316681f1074fff213ca716c4f5df5/Plot.py
def drawpoint_connect(self, aFullPNString, datapoint):
def drawpoint_connect(self, aFullPNString, x, y, ymax, ymin, lastx, lasty, lastymax, lastymin ):
def drawpoint_connect(self, aFullPNString, datapoint): #get datapoint x y values #convert to plot coordinates if self.trace_onoff[aFullPNString]==gtk.FALSE: return 0 x=self.convertx_to_plot(datapoint[0]) y=self.converty_to_plot(datapoint[1]) cur_point_within_frame=self.withinframes([x,y]) #getlastpoint, calculate chang...
8f18e3850a6316681f1074fff213ca716c4f5df5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/8f18e3850a6316681f1074fff213ca716c4f5df5/Plot.py
if self.trace_onoff[aFullPNString]==gtk.FALSE: return 0 x=self.convertx_to_plot(datapoint[0]) y=self.converty_to_plot(datapoint[1]) cur_point_within_frame=self.withinframes([x,y]) lastx=self.lastx[aFullPNString] lasty=self.lasty[aFullPNString] self.lastx[aFullPNString]=x self.lasty[aFullPNString]=y last_point_within_...
def drawpoint_connect(self, aFullPNString, datapoint): #get datapoint x y values #convert to plot coordinates if self.trace_onoff[aFullPNString]==gtk.FALSE: return 0 x=self.convertx_to_plot(datapoint[0]) y=self.converty_to_plot(datapoint[1]) cur_point_within_frame=self.withinframes([x,y]) #getlastpoint, calculate chang...
8f18e3850a6316681f1074fff213ca716c4f5df5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/8f18e3850a6316681f1074fff213ca716c4f5df5/Plot.py
if (not cur_point_within_frame) and (not last_point_within_frame):
def drawpoint_connect(self, aFullPNString, datapoint): #get datapoint x y values #convert to plot coordinates if self.trace_onoff[aFullPNString]==gtk.FALSE: return 0 x=self.convertx_to_plot(datapoint[0]) y=self.converty_to_plot(datapoint[1]) cur_point_within_frame=self.withinframes([x,y]) #getlastpoint, calculate chang...
8f18e3850a6316681f1074fff213ca716c4f5df5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/8f18e3850a6316681f1074fff213ca716c4f5df5/Plot.py
pass else:
if True:
def drawpoint_connect(self, aFullPNString, datapoint): #get datapoint x y values #convert to plot coordinates if self.trace_onoff[aFullPNString]==gtk.FALSE: return 0 x=self.convertx_to_plot(datapoint[0]) y=self.converty_to_plot(datapoint[1]) cur_point_within_frame=self.withinframes([x,y]) #getlastpoint, calculate chang...
8f18e3850a6316681f1074fff213ca716c4f5df5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/8f18e3850a6316681f1074fff213ca716c4f5df5/Plot.py
if y0<self.plotaread[1] and y1>=self.plotaread[1]:
if y0<self.plotaread[1] and y1<self.plotaread[1]: return if y0>self.plotaread[3] and y1>self.plotaread[3]: return if y0<self.plotaread[1]:
def drawpoint_connect(self, aFullPNString, datapoint): #get datapoint x y values #convert to plot coordinates if self.trace_onoff[aFullPNString]==gtk.FALSE: return 0 x=self.convertx_to_plot(datapoint[0]) y=self.converty_to_plot(datapoint[1]) cur_point_within_frame=self.withinframes([x,y]) #getlastpoint, calculate chang...
8f18e3850a6316681f1074fff213ca716c4f5df5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/8f18e3850a6316681f1074fff213ca716c4f5df5/Plot.py
if y0>self.plotaread[3] and y1<=self.plotaread[3]:
if y0>self.plotaread[3] :
def drawpoint_connect(self, aFullPNString, datapoint): #get datapoint x y values #convert to plot coordinates if self.trace_onoff[aFullPNString]==gtk.FALSE: return 0 x=self.convertx_to_plot(datapoint[0]) y=self.converty_to_plot(datapoint[1]) cur_point_within_frame=self.withinframes([x,y]) #getlastpoint, calculate chang...
8f18e3850a6316681f1074fff213ca716c4f5df5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/8f18e3850a6316681f1074fff213ca716c4f5df5/Plot.py
if y1<self.plotaread[1] and y0>=self.plotaread[1]:
if y1<self.plotaread[1]:
def drawpoint_connect(self, aFullPNString, datapoint): #get datapoint x y values #convert to plot coordinates if self.trace_onoff[aFullPNString]==gtk.FALSE: return 0 x=self.convertx_to_plot(datapoint[0]) y=self.converty_to_plot(datapoint[1]) cur_point_within_frame=self.withinframes([x,y]) #getlastpoint, calculate chang...
8f18e3850a6316681f1074fff213ca716c4f5df5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/8f18e3850a6316681f1074fff213ca716c4f5df5/Plot.py
if y1>self.plotaread[3] and y0<=self.plotaread[3]:
if y1>self.plotaread[3]:
def drawpoint_connect(self, aFullPNString, datapoint): #get datapoint x y values #convert to plot coordinates if self.trace_onoff[aFullPNString]==gtk.FALSE: return 0 x=self.convertx_to_plot(datapoint[0]) y=self.converty_to_plot(datapoint[1]) cur_point_within_frame=self.withinframes([x,y]) #getlastpoint, calculate chang...
8f18e3850a6316681f1074fff213ca716c4f5df5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/8f18e3850a6316681f1074fff213ca716c4f5df5/Plot.py
if x0<self.plotaread[0] and x1>=self.plotaread[0]:
if x0<self.plotaread[0] :
def drawpoint_connect(self, aFullPNString, datapoint): #get datapoint x y values #convert to plot coordinates if self.trace_onoff[aFullPNString]==gtk.FALSE: return 0 x=self.convertx_to_plot(datapoint[0]) y=self.converty_to_plot(datapoint[1]) cur_point_within_frame=self.withinframes([x,y]) #getlastpoint, calculate chang...
8f18e3850a6316681f1074fff213ca716c4f5df5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/8f18e3850a6316681f1074fff213ca716c4f5df5/Plot.py
if x0>self.plotaread[2] and x1<=self.plotaread[2]:
if x0>self.plotaread[2] :
def drawpoint_connect(self, aFullPNString, datapoint): #get datapoint x y values #convert to plot coordinates if self.trace_onoff[aFullPNString]==gtk.FALSE: return 0 x=self.convertx_to_plot(datapoint[0]) y=self.converty_to_plot(datapoint[1]) cur_point_within_frame=self.withinframes([x,y]) #getlastpoint, calculate chang...
8f18e3850a6316681f1074fff213ca716c4f5df5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/8f18e3850a6316681f1074fff213ca716c4f5df5/Plot.py
if x1<self.plotaread[0] and x0>=self.plotaread[0]:
if x1<self.plotaread[0] :
def drawpoint_connect(self, aFullPNString, datapoint): #get datapoint x y values #convert to plot coordinates if self.trace_onoff[aFullPNString]==gtk.FALSE: return 0 x=self.convertx_to_plot(datapoint[0]) y=self.converty_to_plot(datapoint[1]) cur_point_within_frame=self.withinframes([x,y]) #getlastpoint, calculate chang...
8f18e3850a6316681f1074fff213ca716c4f5df5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/8f18e3850a6316681f1074fff213ca716c4f5df5/Plot.py
if x1>self.plotaread[2] and x0<=self.plotaread[2]:
if x1>self.plotaread[2] :
def drawpoint_connect(self, aFullPNString, datapoint): #get datapoint x y values #convert to plot coordinates if self.trace_onoff[aFullPNString]==gtk.FALSE: return 0 x=self.convertx_to_plot(datapoint[0]) y=self.converty_to_plot(datapoint[1]) cur_point_within_frame=self.withinframes([x,y]) #getlastpoint, calculate chang...
8f18e3850a6316681f1074fff213ca716c4f5df5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/8f18e3850a6316681f1074fff213ca716c4f5df5/Plot.py
y0=self.plotaread[1] x0=xi+round((y0-yi)*my) y02=self.plotaread[3] x02=xi+round((y02-yi)*my) if x02<x0: x0=x02 y0=y02
if y0<self.plotaread[1]: y0=self.plotaread[1] x0=xi+round((y0-yi)*my) elif y0>self.plotaread[3]: y0=self.plotaread[3] x0=xi+round((y0-yi)*my) if x0<self.plotaread[0] or x0>self.plotaread[2] or x0<xi or x0>x1: return
def drawpoint_connect(self, aFullPNString, datapoint): #get datapoint x y values #convert to plot coordinates if self.trace_onoff[aFullPNString]==gtk.FALSE: return 0 x=self.convertx_to_plot(datapoint[0]) y=self.converty_to_plot(datapoint[1]) cur_point_within_frame=self.withinframes([x,y]) #getlastpoint, calculate chang...
8f18e3850a6316681f1074fff213ca716c4f5df5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/8f18e3850a6316681f1074fff213ca716c4f5df5/Plot.py
y1=self.plotaread[1] x1=xi+round((y1-yi)*my) y12=self.plotaread[3] x12=xi+round((y12-yi)*my) if x12>x1: x1=x12 y1=y12
if y1<self.plotaread[1]: y1=self.plotaread[1] x1=xi+round((y1-yi)*my) elif y1>self.plotaread[3]: y1=self.plotaread[3] x1=xi+round((y1-yi)*my) if x1<self.plotaread[0] or x1>self.plotaread[2] or x1<x0 or x1>xe: return
def drawpoint_connect(self, aFullPNString, datapoint): #get datapoint x y values #convert to plot coordinates if self.trace_onoff[aFullPNString]==gtk.FALSE: return 0 x=self.convertx_to_plot(datapoint[0]) y=self.converty_to_plot(datapoint[1]) cur_point_within_frame=self.withinframes([x,y]) #getlastpoint, calculate chang...
8f18e3850a6316681f1074fff213ca716c4f5df5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/8f18e3850a6316681f1074fff213ca716c4f5df5/Plot.py
pb=gtk.gdk.Pixbuf(gtk.gdk.COLORSPACE_RGB,gtk.TRUE,root.get_visual().bits_per_rgb,10,10)
pb=gtk.gdk.Pixbuf(gtk.gdk.COLORSPACE_RGB,gtk.TRUE,8,10,10)
def __init__( self, scale_type, root, plottitle="" ):
fc7926ed12faa61a63508521517fced9fa88942b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/fc7926ed12faa61a63508521517fced9fa88942b/Plot.py
datapoint[1]<self.yframe[1] and datapoint[1]>self.yframe[0]: x=self.convertx_to_plot(datapoint[0]) y=self.converty_to_plot(datapoint[1]) lastx=self.lastx[aFullPNString] lasty=self.lasty[aFullPNString] if lastx!=None: dx=abs(lastx-x) dy=abs(lasty-y) else: dx=0 dy=0 if dx<2 and dy<2: self.drawpoint_on_plot(aFullPNString...
datapoint[1]<self.yframe[1] and datapoint[1]>self.yframe[0]: x=self.convertx_to_plot(datapoint[0]) y=self.converty_to_plot(datapoint[1]) lastx=self.lastx[aFullPNString] lasty=self.lasty[aFullPNString] if lastx!=None: dx=abs(lastx-x) dy=abs(lasty-y) else: dx=0 dy=0 if dx<2 and dy<2: self.drawpoint_on_plot(aFullPNString...
def drawpoint(self, aFullPNString, datapoint): #get datapoint x y values #convert to plot coordinates if datapoint[0]<self.xframe[1] and datapoint[0]>self.xframe[0] and\ datapoint[1]<self.yframe[1] and datapoint[1]>self.yframe[0]: x=self.convertx_to_plot(datapoint[0]) y=self.converty_to_plot(datapoint[1]) #getlastpoint...
fc7926ed12faa61a63508521517fced9fa88942b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/fc7926ed12faa61a63508521517fced9fa88942b/Plot.py
self.lastx[aFullPNString]=x self.lasty[aFullPNString]=y else: self.lastx[aFullPNString]=None self.lasty[aFullPNString]=None
self.lastx[aFullPNString]=x self.lasty[aFullPNString]=y else: self.lastx[aFullPNString]=None self.lasty[aFullPNString]=None
def drawpoint(self, aFullPNString, datapoint): #get datapoint x y values #convert to plot coordinates if datapoint[0]<self.xframe[1] and datapoint[0]>self.xframe[0] and\ datapoint[1]<self.yframe[1] and datapoint[1]>self.yframe[0]: x=self.convertx_to_plot(datapoint[0]) y=self.converty_to_plot(datapoint[1]) #getlastpoint...
fc7926ed12faa61a63508521517fced9fa88942b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/fc7926ed12faa61a63508521517fced9fa88942b/Plot.py
self.theEntityListStore.clear() self.updateSystemSelection()
def update( self ): self.theEntityListStore.clear()
067b4229bca2e86c20b24443380e3b320495e836 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/067b4229bca2e86c20b24443380e3b320495e836/EntityListWindow.py
def constructTree( self, aParentTree, aSystemFullID ): newlabel = aSystemFullID[ID] iter = self.theSysTreeStore.append( aParentTree )
067b4229bca2e86c20b24443380e3b320495e836 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/067b4229bca2e86c20b24443380e3b320495e836/EntityListWindow.py
self.selectSystem( aSelectedSystemIter )
def updateSystemSelection( self, obj=None ): aSelectedSystemIter = self.theSystemTree.get_selection().get_selected()[1] if aSelectedSystemIter == None: return
067b4229bca2e86c20b24443380e3b320495e836 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/067b4229bca2e86c20b24443380e3b320495e836/EntityListWindow.py
self.theEntityListWindow = EntityListWindow.EntityListWindow( self.theSession )
def __init__( self, aSession ):
c31138be053eacab4d94b44ff0184b763fa5c1ac /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/c31138be053eacab4d94b44ff0184b763fa5c1ac/MainWindow.py
self.theEntityListWindow.openWindow()
self.theEntityListWindow = self.theSession.createEntityListWindow()
def openWindow( self ):
c31138be053eacab4d94b44ff0184b763fa5c1ac /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/c31138be053eacab4d94b44ff0184b763fa5c1ac/MainWindow.py
aModel.clear()
if aModel != None: aModel.clear()
def update( self ): aModel = self.theInterfaceListWidget.get_model()
21a0b9754ebf4c2ca78802084448aec5dcc480c8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/21a0b9754ebf4c2ca78802084448aec5dcc480c8/InterfaceWindow.py
self['entitylist_window_menu'].set_sensitive(aDataLoadedStatus) self['message_window_menu'].set_sensitive(aDataLoadedStatus) self['toolbar_menu'].set_sensitive(aDataLoadedStatus) self['statusbar_menu'].set_sensitive(aDataLoadedStatus)
def __setMenuAndButtonsStatus( self, aDataLoadedStatus ): """sets initial widgets status aDataLoadedStatus -- the status of loading data (TRUE:Model or Script is loaded / FALSE:Not loaded) Returns None """
fe1aa7375a3398f342a5335272633efbb2f33871 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/fe1aa7375a3398f342a5335272633efbb2f33871/MainWindow.py
def getStepperList():
def getStepperList( self ):
def getStepperList(): return self.theSimulator.getStepperList()
a3984cc80b31e002c961544bb7a549378253fd1f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/a3984cc80b31e002c961544bb7a549378253fd1f/Session.py
def createEntityListWindow( self ):
def createEntityListWindow( self, rootWidget = 'EntityListWindow' ):
def createEntityListWindow( self ): """creates and returns an EntityListWindow """ anEntityListWindow = None
5f826a0ac0c5eff7631ae316421d9ee15c668d61 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/5f826a0ac0c5eff7631ae316421d9ee15c668d61/GtkSessionMonitor.py
anEntityListWindow = EntityListWindow.EntityListWindow( self )
anEntityListWindow = EntityListWindow.EntityListWindow( self, rootWidget ) anEntityListWindow.openWindow() self.theEntityListInstanceMap[ anEntityListWindow ] = None self.updateFundamentalWindows()
def createEntityListWindow( self ): """creates and returns an EntityListWindow """ anEntityListWindow = None
5f826a0ac0c5eff7631ae316421d9ee15c668d61 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/5f826a0ac0c5eff7631ae316421d9ee15c668d61/GtkSessionMonitor.py
anEntityListWindow = EntityListWindow.EntityListWindow( None )
anEntityListWindow = EntityListWindow.EntityListWindow( None, rootWidget ) anEntityListWindow.openWindow()
def createEntityListWindow( self ): """creates and returns an EntityListWindow """ anEntityListWindow = None
5f826a0ac0c5eff7631ae316421d9ee15c668d61 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/5f826a0ac0c5eff7631ae316421d9ee15c668d61/GtkSessionMonitor.py
anEntityListWindow.openWindow() self.theEntityListInstanceMap[ anEntityListWindow ] = None self.updateFundamentalWindows()
self.theEntityListInstanceMap[ anEntityListWindow ] = None
def createEntityListWindow( self ): """creates and returns an EntityListWindow """ anEntityListWindow = None
5f826a0ac0c5eff7631ae316421d9ee15c668d61 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/5f826a0ac0c5eff7631ae316421d9ee15c668d61/GtkSessionMonitor.py
aVariableID.append( getVariableReferenceId( aVariableReference[1] ) )
aVariableID.append( getVariableReferenceId ( aVariableReference[1] ) )
def p_expression_variablereference(t): 'VariableReference : NAME COMMA NAME'
9d0ce5180468dc36265806001a8a8bee6695069c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/9d0ce5180468dc36265806001a8a8bee6695069c/expressionparser.py
aVariableID.append( getVariableReferenceId( aVariableReference[1] ) )
aVariableID.append( getVariableReferenceId ( aVariableReference[1] ) )
def p_expression_variablereference(t): 'VariableReference : NAME COMMA NAME'
9d0ce5180468dc36265806001a8a8bee6695069c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/9d0ce5180468dc36265806001a8a8bee6695069c/expressionparser.py
aVariableID.append( getVariableReferenceId( aVariableReference[1] ) )
aVariableID.append( getVariableReferenceId ( aVariableReference[1] ) )
def p_expression_variablereference(t): 'VariableReference : NAME COMMA NAME'
9d0ce5180468dc36265806001a8a8bee6695069c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/9d0ce5180468dc36265806001a8a8bee6695069c/expressionparser.py
aVariableID[0] = '(' + aVariableID[0]+ '/'+ aReactionPath[aLastSlash+1:] + '/' + 'N_A)'
if( aVariableReference[1][aLastColon+1:] == 'SIZE' ): if ( aReactionPath == '/' ): aVariableID[0] = 'default' else: aVariableID[0] = aReactionPath[aLastSlash+1:] else: if ( aReactionPath == '/' ): aVariableID[0] = '(' + aVariableID[0]+ '/default/N_A)' else: aVariableID[0] = '(' + aVariableID[0]+ '/'+ aReactionPa...
def p_expression_variablereference(t): 'VariableReference : NAME COMMA NAME'
9d0ce5180468dc36265806001a8a8bee6695069c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/9d0ce5180468dc36265806001a8a8bee6695069c/expressionparser.py
aVariableID[0] = '(' + aVariableID[0] + '/'+ aSystemPath[aLastSlash+1:] + '/' + 'N_A)'
if( aVariableReference[1][aLastColon+1:] == 'SIZE' ): if ( aSystemPath == '/' ): aVariableID[0] = 'default' else: aVariableID[0] = aSystemPath[aLastSlash+1:] else: if ( aSystemPath == '/' ): aVariableID[0] = '(' + aVariableID[0] + '/default/N_A)' else: aVariableID[0] = '(' + aVariableID[0] + '/'+ aSystemPath[aL...
def p_expression_variablereference(t): 'VariableReference : NAME COMMA NAME'
9d0ce5180468dc36265806001a8a8bee6695069c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/9d0ce5180468dc36265806001a8a8bee6695069c/expressionparser.py