?? tasknode.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.vo;
import eti.bi.common.System.AlphaMinerConstants;
/**
* TaskNode is a kind of Node and contains additional node information.
*/
public class TaskNode extends Node {
/**
*
*/
private static final long serialVersionUID = 1L;
//<<11/03/2005 Mark Li: Textfields should be empty instead
//of showing "Unknown" when no string is inserted
// final static String m_Undefined = new String("Unknown");
final static String m_Undefined = new String("");
//11/03/2005 Mark Li: Textfields should be empty instead
//of showing "Unknown" when no string is inserted>>
/**
* TaskNode details
*/
private String m_Industry;
private String m_ProblemType;
private String m_BusinessObjective;
private String m_DataMiningGoal;
private String m_CompanyName;
private String m_DepartmentName;
private String m_ToolUsed;
//<<21/02/2005 Mark Li: Add Case Name
private String m_CaseName;
//21/02/2005 Mark Li: Add Case Name>>
/**
* Constructs a TaskNode
*/
public TaskNode() {
super();
m_Industry = new String(m_Undefined);
m_ProblemType = new String(m_Undefined);
m_BusinessObjective = new String(m_Undefined);
m_DataMiningGoal = new String(m_Undefined);
m_CompanyName = new String(m_Undefined);
m_DepartmentName = new String(m_Undefined);
m_ToolUsed = AlphaMinerConstants.Productname; //Frank J. Xu, 20/01/2005, Use AlphaMiner temporarily.
//<<21/02/2005 Mark Li: Add Case Name
m_CaseName = new String(m_Undefined);
//21/02/2005 Mark Li: Add Case Name>>
}
/**
* Method TaskNode.
* @param a_CaseID
*/
public TaskNode(String a_CaseID) {
super(a_CaseID, NodeFactory.TASK);
m_Industry = new String(m_Undefined);
m_ProblemType = new String(m_Undefined);
m_BusinessObjective = new String(m_Undefined);
m_DataMiningGoal = new String(m_Undefined);
m_CompanyName = new String(m_Undefined);
m_DepartmentName = new String(m_Undefined);
m_ToolUsed = new String(m_Undefined);
//<<21/02/2005 Mark Li: Add Case Name
m_CaseName = new String(m_Undefined);
//21/02/2005 Mark Li: Add Case Name>>
}
/**
* Constructs a TaskNode for a specific Case and with specific TaskNode information.
* @param a_CaseID ID of the Case the TaskNode belongs to.
* @param a_TaskNode TaskNode to be copied.
*/
public TaskNode(String a_CaseID, TaskNode a_TaskNode) {
super(a_CaseID, NodeFactory.TASK);
copyNodeProperty(a_TaskNode);
setIndustry(a_TaskNode.getIndustry());
setProblemType(a_TaskNode.getProblemType());
setBusinessObjective(a_TaskNode.getBusinessObjective());
setDataMiningGoal(a_TaskNode.getDataMiningGoal());
setCompanyName(a_TaskNode.getCompanyName());
setDepartmentName(a_TaskNode.getDepartmentName());
setToolUsed(a_TaskNode.getToolUsed());
//<<21/02/2005 Mark Li: Add Case Name
setCaseName(a_TaskNode.getCaseName());
//21/02/2005 Mark Li: Add Case Name>>
}
/**
* Gets industry.
* @return industry.
*/
public String getIndustry() {
return m_Industry;
}
/**
* Sets industry.
* @param a_Industry industry to be set.
*/
public void setIndustry(String a_Industry) {
m_Industry = a_Industry;
}
/**
* Gets problem type.
* @return problem type.
*/
public String getProblemType() {
return m_ProblemType;
}
/**
* Sets problem type.
* @param a_ProblemType problem type to be set.
*/
public void setProblemType(String a_ProblemType) {
m_ProblemType = a_ProblemType;
}
/**
* Gets business objective.
* @return business objective.
*/
public String getBusinessObjective() {
return m_BusinessObjective;
}
/**
* Sets business objective.
* @param a_BusinessObjective business objective to be set.
*/
public void setBusinessObjective(String a_BusinessObjective) {
m_BusinessObjective = a_BusinessObjective;
}
/**
* Gets data-mining goal.
* @return data mining goal.
*/
public String getDataMiningGoal() {
return m_DataMiningGoal;
}
/**
* Sets data-mining goal.
* @param a_DataMiningGoal data-mining goal to be set.
*/
public void setDataMiningGoal(String a_DataMiningGoal) {
m_DataMiningGoal = a_DataMiningGoal;
}
/**
* Gets company name.
* @return company name.
*/
public String getCompanyName() {
return m_CompanyName;
}
/**
* Sets company name.
* @param a_CompanyName company name to be set.
*/
public void setCompanyName(String a_CompanyName) {
m_CompanyName = a_CompanyName;
}
/**
* Gets department name.
* @return department name.
*/
public String getDepartmentName() {
return m_DepartmentName;
}
/**
* Sets department name.
* @param a_DepartmentName department name to be set.
*/
public void setDepartmentName(String a_DepartmentName) {
m_DepartmentName = a_DepartmentName;
}
/**
* Gets the tool used.
* @return the tool used.
*/
public String getToolUsed() {
return m_ToolUsed;
}
/**
* Sets the tool used.
* @param a_ToolUsed tool to be set.
*/
public void setToolUsed(String a_ToolUsed) {
m_ToolUsed = a_ToolUsed;
}
//<<21/02/2005 Mark Li: Add Case Name
/**
* Gets the case name.
* @return the case name.
*/
public String getCaseName() {
return m_CaseName;
}
/**
* Sets the case name.
* @param a_CaseName case name to be set.
*/
public void setCaseName(String a_CaseName) {
m_CaseName = a_CaseName;
}
//21/02/2005 Mark Li: Add Case Name>>
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -