Representation of Behavioral Knowledge for Planning and Plan-Recognition in a Cognitive Vision System