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

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


            table2.addCell(systemOutput);

            // 生成Use Case具体描述的内容
            ArrayList ucis = new ArrayList();

            UseCaseInteraction uci = new UseCaseInteraction();
            uci.setUseCaseId(uc.getUseCaseId());
            OrderRule orderule = new OrderRule();
            orderule.setOrderColumn("sequence");
            orderule.setOrderDirection(OrderDirection.ASC);
            OrderRule[] orderRules = { orderule };
            String temp;
View Full Code Here


        flowNodeCode = request.getParameter("flowNodeCode");
        hintMessage = request.getParameter("hintMessage");
        //需要知道是哪个useCase的,useCaseId不能为空
        String id = request.getParameter("useCaseId");
        useCaseId = new Long(id);
        interaction = new UseCaseInteraction();
        interaction.setUseCaseId(useCaseId);
        if (flowNodeCode == null) {
            interaction.setSequence(new Short((short)1));
        } else {
            interaction.setCode(flowNodeCode);
View Full Code Here

       
        int sequence = interaction.getSequence();
       
        //如果第一个交互不涉及用户操作对系统的操作,则接着往下找。 例如:插入银行卡
        while (functions == null || functions.length == 0) {
            UseCaseInteraction nextInteraction = new UseCaseInteraction();
            nextInteraction.setUseCaseId(useCaseId);
            nextInteraction.setSequence((short)(sequence+1));
            userInput = nextInteraction.getOperatorAction();
            //这里加上问号是进行懒惰匹配用的,为了尽量短的匹配
            functionPatternStr = "\\[(.+?)\\]";
            functions =  extract(functionPatternStr, userInput);
        }
       
View Full Code Here

                String propertyValueTable = "";
                for (int i = 0; i < dataSize; i++) {
                    buffer.append("<div><tr id=\"tr" + i
                            + "\" class=\"trContent\">\n");
                    Object object = dataList.get(i);
                    UseCaseInteraction interaction = (UseCaseInteraction)object;
                   
//                     buffer.append( "<td class=\"trContent\" onMouseOver=\"showImg(this)\" onMouseLeave=\"hideImg(this)\"><image"+
//                     "style=\"display:none\" src=\"image\\delete.gif\""+
//                     "id=\"check" + i + "\" onclick=\"Data.hiddenDetail(this)\" /><image"+
//                     "style=\"display:none\" src=\"image\\up.gif\""+
//                     "id=\"insertBefore" + i + "\""+
//                     "onclick=\"UseCase.insert(this,'up','user')\" /><image"+
//                     "style=\"display:none\" src=\"image\\up.gif\""+
//                     "id=\"insertBeforeSys" + i + "\""+
//                     "onclick=\"UseCase.insert(this,'up','sys')\" /><br>"+
//                     "<image style=\"display:none\" src=\"image\\down.gif\""+
//                     "id=\"insertAfter" + i + "\""+
//                     "onclick=\"UseCase.insert(this,'down','user')\" /><image"+
//                     "style=\"display:none\" src=\"image\\down.gif\""+
//                     "id=\"insertAfterSys" + i + "\""+
//                     "onclick=\"UseCase.insert(this,'down','sys')\" /><input"+
//                     "type=\"hidden\" name=\""+subPrimaryKeyName+ "\""+
//                     "value=\""+BeanUtil.getFieldValue(object,subPrimaryKeyName)+"\"/></td>\n");

                    buffer.append("<input type=\"hidden\" name=\""
                            + subPrimaryKeyName + "\" value=\""
                            + BeanUtil.getFieldValue(object, subPrimaryKeyName)
                            + "\"/>");
                    for (int k = 0; k < propertySize; k++) {
                        UserPropertyRight property = (UserPropertyRight) displayProperties
                                .get(k);
                       
                        //特殊处理columns字段
                        if ("columns".equals(property.getPropertyName())) {
                            Long classId = interaction.getClassId();
                            if (classId != null) {
                                String columnsValue = interaction.getColumns();
                                StringBuffer columnBuffer =
                                    getProperty(classId.toString(), new Integer(i).toString(), columnsValue);
                                buffer.append("<td>");
                                buffer.append(columnBuffer);
                                buffer.append("</td>");
View Full Code Here

TOP

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

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.