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

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


       
       
       
        //找场景之间的数据关系,因为还没有数据传递关系的抽取,所以这里把所有的关系输出,将来需要修改
        for(int i=0;i<size;i++) {
            ScenarioDataRelation relation=(ScenarioDataRelation)scenarioDataList.get(i);
            String data=relation.getDataName();
            if (dbuffer.indexOf(data) < 0)
                dbuffer.append(data).append("\n");
            String scenarioName = relation.getScenarioName();
            sdbuffer.append(scenarioName).append(",").append(data).append(",").append("solid\n");
        }
       

       
View Full Code Here


        size=scenarioDataList.size();
        HashMap<String,String> dataScenario=new HashMap<String,String>();
       
        //找场景之间的数据关系,因为还没有数据传递关系的抽取,所以这里把所有的关系输出,将来需要修改
        for(int i=0;i<size;i++) {
            ScenarioDataRelation relation=(ScenarioDataRelation)scenarioDataList.get(i);
            String data=relation.getDataName();
            String scenarioRelations=(String)dataScenario.get(data);
            if(scenarioRelations==null) {
                dataScenario.put(data, relation.getScenarioName());
            } else {
                dataScenario.put(data, scenarioRelations+","+relation.getScenarioName());
            }
        }
       
        for(Entry<String, String> entry: dataScenario.entrySet()) {
            String scenarioRelations=entry.getValue();
View Full Code Here

        scenario = (Scenario) cdp.get(scenario);
        ArrayList dataList = scenario.getDatas();
        ArrayList roleList = scenario.getRoles();
        ArrayList descriptionList = scenario.getDescriptions();
        for (int i = 0; i < dataList.size(); i++) {
            ScenarioDataRelation data = (ScenarioDataRelation) dataList.get(i);
            if (i != dataList.size() - 1)
                datas += data.getDataId() + ",";
            else
                datas += data.getDataId();
        }
        for (int i = 0; i < descriptionList.size(); i++) {
            Description descriptionVersion = (Description) descriptionList
                    .get(i);
            if (i != dataList.size() - 1)
View Full Code Here

TOP

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

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.