Research Article

An Extensible Dialogue Script for a Robot Based on Unification of State-Transition Models

Algorithm 3

func checkconflict(state1, state2):
 for c1 in state1.conditions:
       for c2 in state2.conditions:
             if (c1 == c2) && (c1.action == c2.action):
        detected = 1