⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bcrlocalbindingimpl.java

📁 一个数据挖掘软件ALPHAMINERR的整个过程的JAVA版源代码
💻 JAVA
字号:
/*
 *    This program is free software; you can redistribute it and/or modify
 *    it under the terms of the GNU General Public License as published by
 *    the Free Software Foundation; either version 2 of the License, or
 *    (at your option) any later version.
 *
 *    This program is distributed in the hope that it will be useful,
 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *    GNU General Public License for more details.
 *
 *    You should have received a copy of the GNU General Public License
 *    along with this program; if not, write to the Free Software
 *    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */

/**
 * BCRServiceSoapBindingImpl.java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis WSDL2Java emitter.
 */

package eti.bi.alphaminer.core.storage;
 
import eti.bi.alphaminer.core.dao.BIMLDAO;
import eti.bi.alphaminer.core.dao.DAOFactory;
import eti.bi.alphaminer.vo.BICase;
import eti.bi.alphaminer.vo.CaseInfoList;
import eti.bi.alphaminer.vo.SearchedCaseInfoList;
import eti.bi.common.Constants;

public class BCRLocalBindingImpl implements BCR{
    public eti.bi.alphaminer.vo.BICase getCase(java.lang.String a_CaseID)  {
/*	    Case newCase = CaseFactory.createCase();
	    newCase.setCaseID(a_CaseID);
	    return newCase;
*/
		try {
			//System.out.println("Entered BCRService");
			BIMLDAO aBIMLDAO = (BIMLDAO) DAOFactory.getDAO("BIML", Constants.BIML_DAO_TYPE);
			BICase aCase = aBIMLDAO.getCaseById(a_CaseID);

		    return aCase;    

		} catch (Exception e) {
			System.err.println(e.getMessage());
			return null;
			// Report the error using the appropriate name and ID.
		}
    }

    public CaseInfoList getCaseInfoList() {
/*	    CaseInfoList list = new CaseInfoList();
	    CaseInformation temp = null;
	    for (int i=1; i<=20; i++)
	    {
	      temp = new CaseInformation("case "+i);
	      temp.setCompanyName("Company " + i);
	      temp.setDepartmentName("Department " + i);
	      temp.setIndustry("Industry " + i);
	      temp.setProblemType("Problem type " + i); 
	      temp.setBusienssObjective("Business objective " + i);
	      temp.setDataMiningGoal("Datamining goal " + i);
	      temp.setScore(i);
	      list.setCaseInfo(temp);
	    }
*/
		try {
			BIMLDAO aBIMLDAO = (BIMLDAO) DAOFactory.getDAO("BIML", Constants.BIML_DAO_TYPE);
			CaseInfoList list = aBIMLDAO.getCaseInfoList();

		    return list;    

		} catch (Exception e) {

			// Report the error using the appropriate name and ID.
			return null;
		}
	}

    public eti.bi.alphaminer.vo.SearchedCaseInfoList searchCase(eti.bi.alphaminer.vo.SearchCriteria a_SearchCriteria, double a_Threshold) {
/*	    SearchedCaseInfoList list = new SearchedCaseInfoList();
	    list.setSearchCriteria(a_SearchCriteria);
	    CaseInformation temp = null;
	    for (int i=1; i<=20; i++)
	    {
	      temp = new CaseInformation("case "+i);
	      temp.setCompanyName("Company " + i);
	      temp.setDepartmentName("Department " + i);
	      temp.setIndustry("Industry " + i);
	      temp.setProblemType("Problem type " + i); 
	      temp.setBusinessObjective("Business objective " + i);
	      temp.setDataMiningGoal("Datamining goal " + i);
	      temp.setScore(i);
	      list.setCaseInfo(temp);
	    }*/
		try {
			BIMLDAO aBIMLDAO = (BIMLDAO) DAOFactory.getDAO("BIML", Constants.BIML_DAO_TYPE);
			SearchedCaseInfoList list = aBIMLDAO.searchCase(a_SearchCriteria, a_Threshold);

		    return list;    

		} catch (Exception e) {

			// Report the error using the appropriate name and ID.
			return null;
		}
    } 
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -