|
|||||||||
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>
public abstract class VaryingCube<E,T>
Parent class for cube implementations where the dimension (the number of edges) can vary.
Constructor Summary | |
---|---|
protected |
VaryingCube()
Constructs a new AbstractCube. |
|
VaryingCube(List<Set<E>> edgesBase)
Constructs a new VaryingCube. |
Method Summary | |
---|---|
protected void |
adjustEdges(List<E> location)
Modifies the edgesBase property so that it contains the
specified location. |
protected List<Set<E>> |
getEdgesBase()
Returns the edgesBase property. |
protected Set<E> |
newEdge()
Creates a new collection to contain edge values. |
Methods inherited from class net.sf.molae.pipe.cube.AbstractCube |
---|
asMap, equals, get, getEdge, getEdges, getProjection, hashCode, put, putAll, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public VaryingCube(List<Set<E>> edgesBase)
edgesBase
- internal list containing the edgesprotected VaryingCube()
Method Detail |
---|
protected List<Set<E>> getEdgesBase()
AbstractCube.getEdges()
this method returns a
modifiable handle.
protected Set<E> newEdge()
adjustEdges(List)
.
This implementation returns a HashSet
.
protected void adjustEdges(List<E> location)
edgesBase
property so that it contains the
specified location.
Intended to be called from AbstractCube.put(java.util.List, T)
.
newEdge()
.
location
- a list of index values that determines a position in
the cube
ClassCastException
- if an edge is not a Set
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |