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

📄 union.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.DataTypes;

import com.prudsys.pdm.Cwm.Core.Classifier;
import com.prudsys.pdm.Cwm.Core.StructuralFeature;

/**
 * The Union class represents programming language unions and similarly structured
 * data types. Because of the diversity of union semantics found across software
 * systems, the Union and UnionMember classes are likely candidates for
 * specialization to better capture union semantics in specific language extension
 * packages.
 *
 *
 *
 * A discriminated Union has a collection of UnionMembers that determine the sets
 * of contents that the Union may contain. Such Unions have an attribute called
 * the discriminator that identifies the memberCase value of the UnionMember that
 * the Union currently contains. The discriminator is found via the
 * UnionDiscriminator association to StructuralFeature. The discriminator may be
 * embedded within UnionMembers or may be located outside the discriminator. If it
 * is located within UnionMembers, the discriminator should occur in every
 * UnionMember at the same location (often, the first).
 *
 *
 *
 * Undiscriminated unions (for example, a C language union) are also supported,
 * but have an empty discriminator reference, and the memberCase attribute of the
 * UnionMembers it contains is ignored.
 *
 *
 *
 * Undiscriminated Unions are often used to represent alternate views of a single
 * physical
 *
 * storage area. A fine degree of control over this aspect of Unions may be
 * obtained by
 *
 * creating a class that derives from both UnionMember and FixedOffsetField (in the
 *
 * CWM Record package) and setting the offset attribute instances of that class
 *
 * accordingly.
 */
public class Union extends Classifier implements org.omg.cwm.foundation.datatypes.Union
{
   public StructuralFeature discriminator;

   public Union()
   {

   }

   public org.omg.cwm.objectmodel.core.StructuralFeature getDiscriminator() {
     return discriminator;
   }

   public void setDiscriminator(org.omg.cwm.objectmodel.core.StructuralFeature discriminator) {
     this.discriminator = (StructuralFeature) discriminator;
   }
}

⌨️ 快捷键说明

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