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

📄 cubeview.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.OlapEngine;
import com.prudsys.pdm.Olap.Cursor.CubeCursor;
import com.prudsys.pdm.Olap.Metadata.Cube;

/**
 * Edge view class.
 */
public class CubeView extends QueryObject implements javax.olap.query.querycoremodel.CubeView
{
  /** List of ordinate edges of cube view. */
  protected JMIList ordinateEdge = new JMIList();

  /** List of page edges of cube view. */
  protected JMIList pageEdge = new JMIList();

  /** List of cube cursors. */
  protected JMIList cubeCursor = new JMIList();

  /** Default precedence of ordinates. */
  protected JMIList defaultOrdinatePrecedence = new JMIList();

  /** Reference to OLAP engine object. */
  protected OlapEngine olapEngine;

  /** Reference to cube owning this cube view. */
  protected Cube cube;

  public CubeView() {

  }

  public CubeView(OlapEngine olapEngine, Cube cube) {

    this.olapEngine = olapEngine;
    this.cube = cube;
  }

  public OlapEngine getOlapEngine() {

    return olapEngine;
  }

  public Cube getCube() {

    return cube;
  }

  public void setOrdinateEdge(Collection input) throws OLAPException {

    ordinateEdge.set(input);
  }

  public List getOrdinateEdge() throws OLAPException {

    return ordinateEdge.get();
  }

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

    ordinateEdge.remove(input);
  }

  public void moveOrdinateEdgeBefore(javax.olap.query.querycoremodel.EdgeView before, javax.olap.query.querycoremodel.EdgeView input) throws OLAPException {

    ordinateEdge.moveBefore(before, input);
  }

  public void moveOrdinateEdgeAfter(javax.olap.query.querycoremodel.EdgeView before, javax.olap.query.querycoremodel.EdgeView input) throws OLAPException {

    ordinateEdge.moveAfter(before, input);
  }

  public void setPageEdge(Collection input) throws OLAPException {

    pageEdge.set(input);
  }

  public Collection getPageEdge() throws OLAPException {

    return pageEdge.get();
  }

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

    pageEdge.remove(input);
  }

  public void setDefaultOrdinatePrecedence(Collection input) throws OLAPException {

    defaultOrdinatePrecedence.set(input);
  }

  public List getDefaultOrdinatePrecedence() throws OLAPException {

    return defaultOrdinatePrecedence.get();
  }

  public void addDefaultOrdinatePrecedence(javax.olap.query.querycoremodel.Ordinate input) throws OLAPException {

    defaultOrdinatePrecedence.add(input);
  }

  public void removeDefaultOrdinatePrecedence(javax.olap.query.querycoremodel.Ordinate input) throws OLAPException {

    defaultOrdinatePrecedence.remove(input);
  }

  public void addDefaultOrdinatePrecedenceBefore(javax.olap.query.querycoremodel.Ordinate before, javax.olap.query.querycoremodel.Ordinate input) throws OLAPException {

    defaultOrdinatePrecedence.addBefore(before, input);
  }

  public void addDefaultOrdinatePrecedenceAfter(javax.olap.query.querycoremodel.Ordinate before, javax.olap.query.querycoremodel.Ordinate input) throws OLAPException {

    defaultOrdinatePrecedence.addAfter(before, input);
  }

  public void moveDefaultOrdinatePrecedenceBefore(javax.olap.query.querycoremodel.Ordinate before, javax.olap.query.querycoremodel.Ordinate input) throws OLAPException {

    defaultOrdinatePrecedence.moveBefore(before, input);
  }

  public void moveDefaultOrdinatePrecedenceAfter(javax.olap.query.querycoremodel.Ordinate before, javax.olap.query.querycoremodel.Ordinate input) throws OLAPException {

    defaultOrdinatePrecedence.moveAfter(before, input);
  }

  public void setCubeCursor(Collection input) throws OLAPException {

    cubeCursor.set(input);
  }

  public Collection getCubeCursor() throws OLAPException {

    return cubeCursor.get();
  }

  public void removeCubeCursor(javax.olap.cursor.CubeCursor input) throws OLAPException {

    cubeCursor.remove(input);
  }

  public javax.olap.cursor.CubeCursor createCursor() throws OLAPException {

    CubeCursor cc = new CubeCursor(this);
    cubeCursor.add(cc);
    return cc;
  }

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

    EdgeView ev = new EdgeView(this, false);
    ordinateEdge.add(ev);
    return ev;
  }

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

    EdgeView ev = new EdgeView(this, true);
    pageEdge.add(ev);
    return ev;
  }

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

    return (EdgeView) pageEdge.addBefore(member, new EdgeView(this, true));
  }

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

    return (EdgeView) pageEdge.addAfter(member, new EdgeView(this, true));
  }

  public javax.olap.query.calculatedmembers.CalculationRelationship createCalculationRelationship() throws OLAPException {
    throw new UnsupportedOperationException();
  }

  public void pivot(javax.olap.query.querycoremodel.DimensionView dv, javax.olap.query.querycoremodel.EdgeView source, javax.olap.query.querycoremodel.EdgeView target) throws OLAPException {
    throw new UnsupportedOperationException();
  }

  public void pivot(javax.olap.query.querycoremodel.DimensionView dv, javax.olap.query.querycoremodel.EdgeView source, javax.olap.query.querycoremodel.EdgeView target, int position) throws OLAPException {
    throw new UnsupportedOperationException();
  }

  public void rotate(javax.olap.query.querycoremodel.EdgeView edv1, javax.olap.query.querycoremodel.EdgeView edv2) throws OLAPException {
    throw new UnsupportedOperationException();
  }
}

⌨️ 快捷键说明

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