|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.molae.pipe.cube.AbstractCube<E,T>
net.sf.molae.pipe.cube.CubeProxy<E,T>
public class CubeProxy<E,T>
A proxy of an underlying cube.
This class is used as a default for projections in
AbstractCube.getProjection(int, E)
.
Constructor Summary | |
---|---|
CubeProxy(Cube<E,T> base)
Creates a new CubeProxy of the specified base cube. |
Method Summary | |
---|---|
T |
get(List<E> location)
Returns the element at the specified location. |
List<Collection<? extends E>> |
getEdges()
Returns the possible index values of each dimension. |
protected List<E> |
getOrigin(List<E> location)
Calculates the location in the base cube. |
Cube<E,T> |
getProjection(int index,
E pivot)
Returns a projection of this cube. |
void |
put(List<E> location,
T value)
Sets the element at the specified location to the specified value. |
Methods inherited from class net.sf.molae.pipe.cube.AbstractCube |
---|
asMap, equals, getEdge, hashCode, putAll, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CubeProxy(Cube<E,T> base)
base
- the base cubeMethod Detail |
---|
public List<Collection<? extends E>> getEdges()
AbstractCube
edges
property.
getEdges
in interface Cube<E,T>
getEdges
in class AbstractCube<E,T>
protected List<E> getOrigin(List<E> location)
location
- location in this projection
NullPointerException
- specified location is null
.public T get(List<E> location)
AbstractCube
get
in interface Cube<E,T>
get
in class AbstractCube<E,T>
location
- a list of index values that determines a position int
the cube
public void put(List<E> location, T value)
AbstractCube
put
in interface Cube<E,T>
put
in class AbstractCube<E,T>
location
- a list of index values that determines a position int
the cubevalue
- new value of the cell at the specified locationpublic Cube<E,T> getProjection(int index, E pivot)
AbstractCube
CubeProxy
of this object
and calls the corresponding method of the proxy.
getProjection
in interface Cube<E,T>
getProjection
in class AbstractCube<E,T>
index
- the dimension that will be fixed.pivot
- the fixed value of the fixed dimension.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |