📄 bicaseinfo.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.
*/
package eti.bi.alphaminer.core.dao;
/**
*
* A class that stores the information about a found BI case.
*
* @since 1.0
* @version $Revision$ $Date$
* @author $Author$
*/
public class BICaseInfo {
/** The ID of the found BIML **/
private String bimlId;
/** The type of the found BIML **/
private String bimlType;
/** The score of the found BIML. Range is 0-100 **/
private Integer score;
/** The status of the found BIML. ACTIVATE/INPROGRESS **/
private Integer status;
/** The flag that indicate whether the found BIML contains the CML component **/
private boolean hasCML;
/** The flag that indicate whether the found BIML contains the MML component **/
private boolean hasMML;
/** The BIML content in String **/
private String m_BimlString;
/** The "activate" status of BIML **/
public static Integer ACTIVATE = new Integer(0);
/** The "in progress" status of BIML **/
public static Integer INPROGRESS = new Integer(1);
public BICaseInfo (String caseID, String caseType, Integer caseScore, Integer caseStatus, boolean caseHasCML, boolean caseHasMML, String aBimlString){
bimlId = caseID;
bimlType = caseType;
score = caseScore;
status = caseStatus;
hasCML = caseHasCML;
hasMML = caseHasMML;
m_BimlString = aBimlString;
}
public String getBimlId (){
return bimlId;
}
public Integer getScore (){
return score;
}
public Integer getStatus (){
return status;
}
public boolean getHasCML (){
return hasCML;
}
public boolean getHasMML (){
return hasMML;
}
public void setBimlId(String caseId){
bimlId = caseId;
}
public void setScore(Integer caseScore){
score = caseScore;
}
public void setStatus(Integer caseStatus){
status = caseStatus;
}
public void setHasCML(boolean caseHasCML){
hasCML = caseHasCML;
}
public void setHasMML(boolean caseHasMML){
hasMML = caseHasMML;
}
/**
* Returns the bimlString.
* @return String
*/
public String getBimlString() {
return m_BimlString;
}
/**
* Sets the bimlString.
* @param bimlString The bimlString to set
*/
public void setBimlString(String bimlString) {
m_BimlString = bimlString;
}
public boolean equals(BICaseInfo aObj) {
System.out.println("equals");
if (aObj instanceof BICaseInfo)
{
BICaseInfo aBICase = (BICaseInfo) aObj;
System.out.println("this="+this.getBimlId()+ " that="+aBICase.getBimlId());
return this.getBimlId().equals(aBICase.getBimlId());
}
else
{
return false;
}
}
/**
* Returns the bimlType.
* @return String
*/
public String getBimlType()
{
return bimlType;
}
/**
* Sets the bimlType.
* @param bimlType The bimlType to set
*/
public void setBimlType(String bimlType)
{
this.bimlType = bimlType;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -