Package mondrian.rolap
Class Modulos.Base
java.lang.Object
mondrian.rolap.Modulos.Base
- All Implemented Interfaces:
Modulos
- Direct Known Subclasses:
Modulos.Many
,Modulos.One
,Modulos.Three
,Modulos.Two
,Modulos.Zero
- Enclosing interface:
- 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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract 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.toString()
-
Field Details
-
modulos
protected final int[] modulos
-
-
Constructor Details
-
Base
-
Base
protected Base(int[] lengths)
-
-
Method Details
-
getCellPos
public abstract int[] getCellPos(int cellOrdinal) Description copied from interface:Modulos
Converts a cell ordinal to a set of cell coordinates. Converse ofModulos.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 interfaceModulos
- 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 ofModulos.getCellPos(int)
.- Specified by:
getCellOrdinal
in interfaceModulos
- Parameters:
pos
- Cell coordinates- Returns:
- cell ordinal
-
toString
-