Lines Matching refs:reason
39 def __init__(self, from_map, to_map, reason): argument
42 self.reason = reason
63 def AddTransition(from_map, to_map, reason): argument
72 old_reason = targets[to_map].reason
76 if reason in []:
77 targets[to_map].reason = reason
81 (from_map, to_map, targets[to_map].reason))
83 targets[to_map] = Transition(from_map, to_map, reason)
110 reason = "%s: %s" % (event, words[7]) variable
113 reason = "%s: %s" % (event, words[7]) variable
115 reason = "%s_%s" % (reason, words[8]) variable
117 reason = event variable
118 AddTransition(from_map, to_map, reason)
126 PlainPrint(t, indent + " ", transitions[m][t].reason)
141 reason = transitions[m][t].reason
142 reason = reason.replace("\\", "BACKSLASH")
143 reason = reason.replace("\"", "\\\"")
144 DotPrint(t, reason)
162 reason = transitions[s][t].reason variable
163 if reason not in reasons:
164 reasons[reason] = 1
166 reasons[reason] += 1