通过分析面向对象程序及其判分规则的特点,提出了一种基于反射机制、以class文件为评判对象、判分项为基本评判单元的Java编程题自动判分技术。该技术克服了现有自动判分技术存在的不足,遵循了面向对象程序固有的特征;以此为基础设计并实现了一个Java编程题自动判分软件框架。借助此框架,可以快速搭建各类涉及Java编程题自动判分功能的考试系统和作业评判系统。最后通过一个实际系统的开发表明了该框架的有效性。
After analyzing the characteristics of object-oriented programming and its marking rules,an auto-marking technology based on reflection mechanism for Java programming questions is presented.In this technology,class file is judged object,marking item is judged unit.With the technology,the shortcomings of the current auto-marking technology are overcome,the inherent features of object-oriented programming are followed.Then an auto-marking software framework is designed and implemented.With the software framework,an auto-marking system or exercise evaluation system related to Java programming can be build quickly.Finally,effectiveness of the software framework is demonstrated by practical application.