利用Scenario进行需求建模能够反映从用户角度观察到的系统行为,而利用状态图能够从对象角度对系统行为进行精确描述。从Scenario到状态图的自动转换指软件开发过程中,UML需求模型自动生成行为模型的过程。在分析已有的自动转换算法存在的不足的基础上,提出了从语法角度出发,对用例进行分析,提取合适的状态向量;利用在算法中增加Scenario的相关信息,确定非预期状态转换路径。
Scenarios present system behaviors from users' perspectives by specifying collaboration and interaction between objects or components. Statecharts are precise descriptions of system behaviors. Automatic transition from scenarios to statechart is the process which system behavior models are generated automatically from UML requirement models. Based on analyzing the deficiency of the existing transition algorithm, an approach of capturing appropriate state vectors is proposed by analyzing use case syntax, and unexpected transition paths are identified by adding the scenarios information to the algorithm.