mondrian.rolap
Class Modulos.Three

java.lang.Object
  extended by mondrian.rolap.Modulos.Base
      extended by mondrian.rolap.Modulos.Three
All Implemented Interfaces:
Modulos
Enclosing interface:
Modulos

public static class Modulos.Three
extends Modulos.Base

 

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
 
Fields inherited from class mondrian.rolap.Modulos.Base
modulos
 
Method Summary
 int getCellOrdinal(int[] pos)
          Converts a set of cell coordinates to a cell ordinal.
 int[] getCellPos(int cellOrdinal)
          Converts a cell ordinal to a set of cell coordinates.
 
Methods inherited from class mondrian.rolap.Modulos.Base
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getCellPos

public final 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
Specified by:
getCellPos in class Modulos.Base
Parameters:
cellOrdinal - Cell ordinal
Returns:
cell coordinates

getCellOrdinal

public final 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
Specified by:
getCellOrdinal in class Modulos.Base
Parameters:
pos - Cell coordinates
Returns:
cell ordinal

SourceForge.net_Logo