节点文献

一种恢复状态模式的状态转换图的方法

A Method to Recover State Transition Graph of State Pattern

  • 推荐 CAJ下载
  • PDF下载
  • 不支持迅雷等下载工具,请取消加速工具后下载。

【作者】 尹恒周晓宇

【Author】 Yin Heng Zhou Xiaoyu(School of Computer Science & Engineering,Southeast University,Nanjing 211189)

【机构】 东南大学计算机科学与工程学院

【摘要】 现有研究不能从状态模式的代码中恢复状态转换图这一状态模式的核心语义信息。针对状态驱动的转换这种典型实现方式,通过分析类型传播图确定状态模式的状态变量在各次赋值前后所属的具体状态类,并由此恢复该模式的状态转换图。给出了具体算法,通过实例分析验证了方法的可行性。

【Abstract】 Existing researches can’t recover state translation graph from codes of state pattern,which is the core semantic of state pattern.An approach is proposed to recover state translation graph from codes of typical implementation of state pattern.By analysis of type propagation graph,the approach figures out which concrete state class the current state variable belongs to before and after it has been assigned,and thus the state transition graph is recovered.The algorithm of the approach is presented,and the effectiveness of the approach is verified by a case study.

【基金】 国家自然科学基金重大研究计划和重点项目(编号:90818027,60633010);国家高技术研究发展计划(八六三计划)目标导向类项目(编号:2009AA01Z147);国家自然科学(编号:60873049,60803008,60903026);江苏省自然科学基金项目(编号:BK2006094,2008292);武汉大学软件工程国家重点实验室开放基金(SKLSE20080717)资助
  • 【文献出处】 计算机与数字工程 ,Computer & Digital Engineering , 编辑部邮箱 ,2010年01期
  • 【分类号】TP311.52
  • 【被引频次】2
  • 【下载频次】30
节点文献中: 

本文链接的文献网络图示:

本文的引文网络