mondrian.rolap
Class Modulos.Base

java.lang.Object
  extended by mondrian.rolap.Modulos.Base
All Implemented Interfaces:
Modulos
Direct Known Subclasses:
Modulos.Many, Modulos.One, Modulos.Three, Modulos.Two, Modulos.Zero
Enclosing interface:
Modulos

public abstract static class Modulos.Base
extends Object
implements Modulos

 

Nested Class Summary
 
Nested classes/interfaces inherited from interface mondrian.rolap.Modulos
Modulos.Base, Modulos.Generator, Modulos.Many, Modulos.One, Modulos.Three, Modulos.Two, Modulos.Zero
 
Field Summary
protected  int[] modulos
           
 
Constructor Summary
protected Modulos.Base(Axis[] axes)
           
protected Modulos.Base(int[] lengths)
           
 
Method Summary
abstract  int getCellOrdinal(int[] pos)
          Converts a set of cell coordinates to a cell ordinal.
abstract  int[] getCellPos(int cellOrdinal)
          Converts a cell ordinal to a set of cell coordinates.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

modulos

protected final int[] modulos
Constructor Detail

Modulos.Base

protected Modulos.Base(Axis[] axes)

Modulos.Base

protected Modulos.Base(int[] lengths)
Method Detail

getCellPos

public abstract int[] getCellPos(int cellOrdinal)
Description copied from interface: Modulos
Converts a cell ordinal to a set of cell coordinates. Converse of Modulos.getCellOrdinal(int[]). For example, if this result is 10 x 10 x 10, then cell ordinal 537 has coordinates (5, 3, 7).

Specified by:
getCellPos in interface Modulos
Parameters:
cellOrdinal - Cell ordinal
Returns:
cell coordinates

getCellOrdinal

public abstract int getCellOrdinal(int[] pos)
Description copied from interface: Modulos
Converts a set of cell coordinates to a cell ordinal. Converse of Modulos.getCellPos(int).

Specified by:
getCellOrdinal in interface Modulos
Parameters:
pos - Cell coordinates
Returns:
cell ordinal

toString

public String toString()
Overrides:
toString in class Object

SourceForge.net_Logo