projects
/
smartthings-infrastructure.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
747b093
)
Adding exclusion check for button as part of direct-direct relationship warning to...
author
rtrimana
<rtrimana@uci.edu>
Fri, 16 Aug 2019 16:38:18 +0000
(09:38 -0700)
committer
rtrimana
<rtrimana@uci.edu>
Fri, 16 Aug 2019 16:38:18 +0000
(09:38 -0700)
Extractor/ExtractorScript.py
patch
|
blob
|
history
diff --git
a/Extractor/ExtractorScript.py
b/Extractor/ExtractorScript.py
index 1f01568f8ce48dd27ac0b296838c374e31645095..0fa30bad5a28e734e4d8539ca527ff67907de962 100644
(file)
--- a/
Extractor/ExtractorScript.py
+++ b/
Extractor/ExtractorScript.py
@@
-325,7
+325,7
@@
def CountEvents():
#print "DEBUG: eventlist: %d" % len(eventList)
#print "DEBUG: eventlist: %s" % eventList
for event in eventList:
#print "DEBUG: eventlist: %d" % len(eventList)
#print "DEBUG: eventlist: %s" % eventList
for event in eventList:
-
#
print "DEBUG: Event: %s %d" % (event, eventTypeCounterMap[event])
+ print "DEBUG: Event: %s %d" % (event, eventTypeCounterMap[event])
numOfActualEvents = numOfActualEvents + eventTypeCounterMap[event]
return numOfActualEvents
numOfActualEvents = numOfActualEvents + eventTypeCounterMap[event]
return numOfActualEvents
@@
-1106,7
+1106,7
@@
def CheckIfOnlyTouchEvents():
#This is called Direct-Direct interaction and we do not model-check for this case
onlyTouchEvents = True
for item in eventList:
#This is called Direct-Direct interaction and we do not model-check for this case
onlyTouchEvents = True
for item in eventList:
- if item != "nfcTouch" and item != "app":
+ if item != "nfcTouch" and item != "app"
and item != "button"
:
onlyTouchEvents = False
if onlyTouchEvents is True and app1Subscribe is True and app2Subscribe is True:
# Write error log file
onlyTouchEvents = False
if onlyTouchEvents is True and app1Subscribe is True and app2Subscribe is True:
# Write error log file