Package cn.edu.pku.dr.requirement.elicitation.data

Examples of cn.edu.pku.dr.requirement.elicitation.data.Solution


        Problem result = new Problem();
        result = (Problem) cdp.get(problem);
        ArrayList solutions = result.getSolutions();
        // 0为判断是否有修改问题的权限,即判定是不是有正在投票的solution,目前是有问题正在投票就没有修改权限,false是没有修改权限,true是有修改权限
        judgeresult[0] = true;
        Solution solution = new Solution();
        if (solutions.size() > 0) {
            int i = 0;
            while (judgeresult[0] == true && i < solutions.size()) {
                solution = (Solution) solutions.get(i);
                if (solution.getIsVoting().equals("Y")) {
                    judgeresult[0] = false;
                }
                i++;
            }
        }
View Full Code Here


        }
        // 读取中该问题的解决方案的总数和正在投票中的解决方案的数目
        int total_num = solutions.size();
        int voting_num = 0;
        Solution solution = new Solution();
        for (int i = 0; i < solutions.size(); i++) {
            solution = (Solution) solutions.get(i);
            if (solution.getIsVoting().equals("Y")) {
                voting_num++;
            }
        }
        buffer
                .append("<div class =\"t1\" id=\"solution_status\">现共有<span style=\"color:#FF0099\">"
View Full Code Here

TOP

Related Classes of cn.edu.pku.dr.requirement.elicitation.data.Solution

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.