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

📄 servicealgorithmparameter.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.
 */

 /**
  * Title: XELOPES Data Mining Library
  * Description: The XELOPES library is an open platform-independent and data-source-independent library for Embedded Data Mining.
  * Copyright: Copyright (c) 2002 Prudential Systems Software GmbH
  * Company: ZSoft (www.zsoft.ru), Prudsys (www.prudsys.com)
  * @author Valentine Stepanenko (valentine.stepanenko@zsoft.ru)
  * @author Victor Borichev
  * @author Michael Thess
  * @version 1.0
  */

package com.prudsys.pdm.Adapters.ServiceAPI;

 /**
  * Algorithm parameters used for XELOPES Service interface.
  *
  * Covers all parameters of mining settings (ms), mining algorithm
  * specification (mas), and mining automation assignment (maa).
  * Since this class is used for transportation, it has a simple structure
  * and is basically an array of variables.
  */
public class ServiceAlgorithmParameter
{
  // -----------------------------------------------------------------------
  //  Variables declarations
  // -----------------------------------------------------------------------
  /** Name of the parameter. */
  private String name;

  /** Value of the parameter. */
  private String value;

  /** Type of the parameter. Is a Java type like "int" or XELOPES classname.*/
  private String type;

  /** Description of the parameter. */
  private String description;

  /** Domain where the parameter belongs to (0 - ms, 1 - mas, 2 - maa). */
  private int domain;

  /** Status of parameter (0 - supported, 1 - required). */
  private int status;

  /** ID of parameter. Used for reference of nested objects. */
  private String ID;

  /** IDs of child parameters. Used for reference of nested objects. */
  private String childIDs;

  // -----------------------------------------------------------------------
  //  Constructors
  // -----------------------------------------------------------------------
  /**
   * Empty constructor.
   */
  public ServiceAlgorithmParameter()
  {
  }

  /**
   * Constructor with important parameters.
   *
   * @param name name of parameter
   * @param value value of parameter
   * @param type type of parameter
   * @param description description of parameter
   * @param domain domain of parameter (0 - ms, 1 - mas, 2 - maa)
   */
  public ServiceAlgorithmParameter(String name, String value, String type,
                                   String description, int domain) {

    this(name, value, type, description, domain, 0);
  }

  /**
   * Constructor with most important parameters.
   *
   * @param name name of parameter
   * @param value value of parameter
   * @param type type of parameter
   * @param description description of parameter
   * @param domain domain of parameter (0 - ms, 1 - mas, 2 - maa)
   * @param status status of parameter (0 - supported, 1 - required)
   */
  public ServiceAlgorithmParameter(String name, String value, String type,
                                   String description, int domain, int status) {

    this(name, value, type, description, domain, status, "", "");
  }

  /**
   * Constructor with all parameters passed.
   *
   * @param name name of parameter
   * @param value value of parameter
   * @param type type of parameter
   * @param description description of parameter
   * @param domain domain of parameter (0 - ms, 1 - mas, 2 - maa)
   * @param status status of parameter (0 - supported, 1 - required)
   * @param ID ID of parameter, required for nested object
   * @param childIDs IDs of child parameter, required for nested objects
   */
  public ServiceAlgorithmParameter(String name, String value, String type,
                                   String description, int domain, int status,
                                   String ID, String childIDs) {
    this.name        = name;
    this.value       = value;
    this.type        = type;
    this.description = description;
    this.domain      = domain;
    this.status      = status;
    this.ID          = ID;
    this.childIDs    = childIDs;
  }

  // -----------------------------------------------------------------------
  //  Getter and setter methods
  // -----------------------------------------------------------------------
  public String getName()
  {
    return name;
  }
  public void setName(String name)
  {
    this.name = name;
  }
  public void setValue(String value)
  {
    this.value = value;
  }
  public String getValue()
  {
    return value;
  }
  public void setType(String type)
  {
    this.type = type;
  }
  public String getType()
  {
    return type;
  }
  public void setDescription(String description)
  {
    this.description = description;
  }
  public String getDescription()
  {
    return description;
  }
  public int getDomain()
  {
    return domain;
  }
  public void setDomain(int domain)
  {
    this.domain = domain;
  }
  public int getStatus()
  {
    return status;
  }
  public void setStatus(int status)
  {
    this.status = status;
  }
  public String getID()
  {
    return ID;
  }
  public void setID(String ID)
  {
    this.ID = ID;
  }
  public String getChildIDs()
  {
    return childIDs;
  }
  public void setChildIDs(String childIDs)
  {
    this.childIDs = childIDs;
  }
}

⌨️ 快捷键说明

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