首页> 外国专利> System, method, and program for automatic error detection while utilizing a software state machine for carrying out the process flow of a software program

System, method, and program for automatic error detection while utilizing a software state machine for carrying out the process flow of a software program

机译:在利用软件状态机执行软件程序的处理流程时自动进行错误检测的系统,方法和程序

摘要

A system, method, and program utilizes a software state machine for carrying out the processes and functions of a program. The components of a program, e.g., the process flow, functions, dialogs, etc., are implemented using various states. A value of a state variable indicates a corresponding state. A method checks for a current value of the state variable. Any given function within any given state, or input received from a user, such as through “next” or “previous” buttons on a dialog box, can return a value for the state variable. When the method determines a new value of the state variable, an object corresponding to the state indicated by the new value is brought up and enabled. A program utilizing a software state machine is easily customized by merely adding or deleting states or by changing a value of the state variable returned for a given function within a state or for any given input received. However, if during development or customization of the program, the programmer inadvertently specifies a value of a state incorrectly, thereby having it reference a nonexistent state, the program my enter an infinite loop. Therefore, in a preferred embodiment, an error detector is added to the method that checks for the current value of the state variable in order to detect such a programming error. The programming error is detected by determining whether one of the states successively repeats beyond a given threshold limit.
机译:系统,方法和程序利用软件状态机来执行程序的过程和功能。程序的组件,例如处理流程,功能,对话框等,是使用各种状态实现的。状态变量的值指示相应的状态。一种方法检查状态变量的当前值。在任何给定状态内的任何给定功能,或从用户接收的输入(例如通过“下一步”或“上一个”对话框上的按钮可以返回状态变量的值。当该方法确定状态变量的新值时,将启动并启用与该新值指示的状态相对应的对象。通过仅添加或删除状态,或通过更改状态或接收到的任何给定输入中为给定功能返回的状态变量的值,可以轻松地定制利用软件状态机的程序。然而,如果在程序的开发或定制期间,程序员无意间错误地指定了状态的值,从而使其引用了不存在的状态,则程序可能会进入无限循环。因此,在优选实施例中,将错误检测器添加到检查状态变量的当前值的方法中,以便检测这种编程错误。通过确定状态之一是否连续重复超过给定的阈值极限来检测编程错误。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号