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

📄 softwaresystem.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)
 * @version 1.0
 */

package com.prudsys.pdm.Cwm.SoftwareDeployment;

import java.util.Collection;
import java.util.Iterator;

import com.prudsys.pdm.Cwm.Core.Subsystem;
import com.prudsys.pdm.Cwm.TypeMapping.TypeSystem;

/**
 * A SoftwareSystem represents a specific release of a software product. It
 * consists of a set of software Components.
 */
public class SoftwareSystem extends Subsystem implements org.omg.cwm.foundation.softwaredeployment.SoftwareSystem
{

   /**
    * Identifies the type of the software product. One of the following predefined
    * values should be used if appropriate:
    *
    *
    *
    *     OS, DBMS, MDDB, FileSystem, ODBC, JDBC or Application.
    */
   public com.prudsys.pdm.Cwm.Core.String type;

   /**
    * This is used in conjunction with the type attribute to provide additional
    * information about the type of the software product.
    *
    *
    *
    * For some of the predefined types, suggested subtype values are listed below:
    *
    *
    *
    *    For an Operating System product (type OS):
    *
    *       AIX, Linux, MVS, NT, Solaris, SunOS, VMS or Windows.
    *
    *    For a Database Management System product (type DBMS):
    *
    *       DB2, DMS II, IMS, Informix, Oracle, SQLServer or Sybase.
    *
    *    For a Multidimensional Database product (type MDDB):
    *
    *       Essbase or Express.
    */
   public com.prudsys.pdm.Cwm.Core.String subtype;

   /**
    * The supplier of the software product.
    */
   public com.prudsys.pdm.Cwm.Core.String supplier;

   /**
    * The version identification for the software product.
    */
   public com.prudsys.pdm.Cwm.Core.String version;
   public DeployedSoftwareSystem deployment[];
   public TypeSystem typespace[];

   public SoftwareSystem()
   {

   }

   public java.lang.String getSubtype() {
     return subtype.getString();
   }

   public void setSubtype(java.lang.String subtype) {
     com.prudsys.pdm.Cwm.Core.String s = new com.prudsys.pdm.Cwm.Core.String();
     s.setString(subtype);
     this.subtype = s;
   }

   public java.lang.String getSupplier() {
     return supplier.getString();
   }

   public void setSupplier(java.lang.String supplier) {
     com.prudsys.pdm.Cwm.Core.String s = new com.prudsys.pdm.Cwm.Core.String();
     s.setString(supplier);
     this.supplier = s;
   }

   public java.lang.String getType() {
     return type.getString();
   }

   public void setType(java.lang.String type) {
     com.prudsys.pdm.Cwm.Core.String s = new com.prudsys.pdm.Cwm.Core.String();
     s.setString(type);
     this.type = s;
   }

   public Collection getTypespace() {
     return com.prudsys.pdm.Cwm.Core.CWMTools.ArrayToList(typespace);
   }

   public void setTypespace(Collection typespace) {
     this.typespace = new TypeSystem[ typespace.size() ];
     Iterator it = typespace.iterator();
     for (int i = 0; i < typespace.size(); i++)
       this.typespace[i] = (TypeSystem) it.next();
   }

   public void addTypespace( org.omg.cwm.foundation.typemapping.TypeSystem input) {
     int size = (typespace == null) ? 0 : typespace.length;
     TypeSystem[] oldData = typespace;
     typespace = new TypeSystem[size+1];
     if (size > 0) System.arraycopy(oldData, 0, typespace, 0, size);
     typespace[size] = (TypeSystem) input;
   }

   public void removeTypespace( org.omg.cwm.foundation.typemapping.TypeSystem input) {
     int size = (typespace == null) ? 0 : typespace.length;
     if (size == 0)
       return;

     int ipos = -1;
     for (int i = 0; i < size; i++)
       if (typespace[i].equals(input)) {
         ipos = i;
         break;
       }
     if (ipos == -1)
       return;

     TypeSystem[] oldData = typespace;
     typespace = new TypeSystem[size-1];
     for (int i = 0; i < ipos; i++)
       typespace[i] = oldData[i];
     for (int i = ipos+1; i < size; i++)
       typespace[i-1] = oldData[i];
   }

   public java.lang.String getVersion() {
     return version.getString();
   }

   public void setVersion(java.lang.String version) {
     com.prudsys.pdm.Cwm.Core.String s = new com.prudsys.pdm.Cwm.Core.String();
     s.setString(version);
     this.version = s;
   }
}

⌨️ 快捷键说明

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