|
|||||||||
| 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.VaryingCube<E,T>
net.sf.molae.pipe.cube.MapBasedCube<E,T>
public class MapBasedCube<E,T>
Map based cube. Structural changes of the map (changes to the edges list) are not reflected in the cube.
| Constructor Summary | |
|---|---|
MapBasedCube()
Constructs a new MapBasedCube. |
|
MapBasedCube(Cube<E,T> cube)
Constructs a new MapBasedCube that contains the values of the specified cube. |
|
MapBasedCube(Map<List<E>,T> base)
Constructs a new MapBasedCube. |
|
| Method Summary | |
|---|---|
T |
get(List<E> location)
Returns the element at the specified location. |
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.VaryingCube |
|---|
adjustEdges, getEdgesBase, newEdge |
| Methods inherited from class net.sf.molae.pipe.cube.AbstractCube |
|---|
asMap, equals, getEdge, getEdges, getProjection, hashCode, putAll, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MapBasedCube(Map<List<E>,T> base)
base - base mappublic MapBasedCube()
public MapBasedCube(Cube<E,T> cube)
cube - the cube whose values are to be placed into this cube| Method Detail |
|---|
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 location
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||