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

📄 dimensionview.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 Michael Thess
  * @version 1.2
  */

package com.prudsys.pdm.Olap.Query.Core;

import java.util.Collection;
import java.util.List;

import javax.olap.OLAPException;

import com.prudsys.pdm.Cwm.JMIList;
import com.prudsys.pdm.Olap.Metadata.Dimension;

/**
 * Dimension view class.
 */
public class DimensionView extends Ordinate implements javax.olap.query.querycoremodel.DimensionView
{
  // -----------------------------------------------------------------------
  //  Variables declarations
  // -----------------------------------------------------------------------
  /** Dimension associated with this dimension view. */
  protected Dimension dimension;

  /** Edge view owning this dimension view. */
  protected EdgeView edgeView;

  /** List of dimension step managers. */
  protected JMIList dimensionStepManager = new JMIList();

  /** List of selected objects. */
  protected JMIList selectedObject = new JMIList();

  /** List of dimension cursors. */
  protected JMIList dimensionCursor = new JMIList();

  /** List of derived attributes. */
  protected JMIList derivedAttribute = new JMIList();

  /** Is distinct. */
  protected Boolean isDistinct;

  // -----------------------------------------------------------------------
  //  Constructor
  // -----------------------------------------------------------------------
  /**
   * Empty constructor.
   */
  public DimensionView() {
  }

  // -----------------------------------------------------------------------
  //  Getter and setter methods
  // -----------------------------------------------------------------------
  public Boolean getIsDistinct() throws OLAPException {

    return isDistinct;
  }

  public void setIsDistinct(Boolean input) throws OLAPException {

    this.isDistinct = input;
  }

  public void setEdgeView(javax.olap.query.querycoremodel.EdgeView input) throws OLAPException {

    this.edgeView = (EdgeView) input;
  }

  public javax.olap.query.querycoremodel.EdgeView getEdgeView() throws OLAPException {

    return edgeView;
  }

  public void setDimension(javax.olap.metadata.Dimension dimension) throws OLAPException {

    this.dimension = (Dimension) dimension;
  }

  public javax.olap.metadata.Dimension getDimension() throws OLAPException {

    return dimension;
  }

  public void setDimensionStepManager(Collection input) throws OLAPException {

    dimensionStepManager.set(input);
  }

  public Collection getDimensionStepManager() throws OLAPException {

    return dimensionStepManager.get();
  }

  public void removeDimensionStepManager(javax.olap.query.querycoremodel.DimensionStepManager input) throws OLAPException {

    dimensionStepManager.remove(input);
  }

  public void setDimensionCursor(Collection input) throws OLAPException {

    dimensionCursor.set(input);
  }

  public Collection getDimensionCursor() throws OLAPException {

    return dimensionCursor.get();
  }

  public void removeDimensionCursor(javax.olap.cursor.DimensionCursor input) throws OLAPException {

    dimensionCursor.remove(input);
  }

  public void setSelectedObject(Collection input) throws OLAPException {

    selectedObject.set(input);
  }

  public List getSelectedObject() throws OLAPException {

    return selectedObject.get();
  }

  public void removeSelectedObject(javax.olap.query.querycoremodel.SelectedObject input) throws OLAPException {

    selectedObject.remove(input);
  }

  public void moveSelectedObjectBefore(javax.olap.query.querycoremodel.SelectedObject before, javax.olap.query.querycoremodel.SelectedObject input) throws OLAPException {

    selectedObject.moveBefore(before, input);
  }

  public void moveSelectedObjectAfter(javax.olap.query.querycoremodel.SelectedObject before, javax.olap.query.querycoremodel.SelectedObject input) throws OLAPException {

    selectedObject.moveAfter(before, input);
  }

  public void setDerivedAttribute(Collection input) throws OLAPException {

    derivedAttribute.set(input);
  }

  public Collection getDerivedAttribute() throws OLAPException {

    return derivedAttribute.get();
  }

  public void removeDerivedAttribute(javax.olap.query.derivedattribute.DerivedAttribute input) throws OLAPException {

    derivedAttribute.remove(input);
  }

  public javax.olap.cursor.DimensionCursor createCursor() throws OLAPException {
    throw new UnsupportedOperationException();
  }

  public javax.olap.query.querycoremodel.SelectedObject createSelectedObject(javax.olap.query.enumerations.SelectedObjectType type) throws OLAPException {

    return null;
  }

  public javax.olap.query.querycoremodel.SelectedObject createSelectedObjectBefore(javax.olap.query.enumerations.SelectedObjectType type, javax.olap.query.querycoremodel.SelectedObject member) throws OLAPException {

    return null;
  }

  public javax.olap.query.querycoremodel.SelectedObject createSelectedObjectAfter(javax.olap.query.enumerations.SelectedObjectType type, javax.olap.query.querycoremodel.SelectedObject member) throws OLAPException {

    return null;
  }

  public javax.olap.query.querycoremodel.DimensionStepManager createDimensionStepManager() throws OLAPException {

    DimensionStepManager dsm = new DimensionStepManager(this);
    dimensionStepManager.add(dsm);
    return dsm;
  }

  public javax.olap.query.derivedattribute.DerivedAttribute createDerivedAttribute() throws OLAPException {

    throw new UnsupportedOperationException();
  }

}

⌨️ 快捷键说明

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