org.shapelogic.calculation
Interface CartesianIndex

All Superinterfaces:
CalcValue<int[]>, java.util.Iterator<int[]>, LazyCalc<int[]>, NumberedStream<int[]>, Stream<int[]>
All Known Implementing Classes:
CartesianIndex2

public interface CartesianIndex
extends NumberedStream<int[]>

Create indexes for the inputs to a Cartesian product. There can be a nested for loop or there can be another strategy. It would be enough to extend an Iterator instead of NumberedStream. It is interesting that this is a natural fit. So from 2 streams you are using another stream to combine them.

Author:
Sami Badawi

Method Summary
 int getDimension()
           
 int[] getLastNumbers()
           
 int[] getStartNumbers()
           
 
Methods inherited from interface org.shapelogic.streams.NumberedStream
get, getIndex, getLast, getMaxLast, setMaxLast
 
Methods inherited from interface org.shapelogic.calculation.LazyCalc
isDirty, setup
 
Methods inherited from interface org.shapelogic.calculation.CalcValue
getValue
 
Methods inherited from interface java.util.Iterator
hasNext, next, remove
 

Method Detail

getStartNumbers

int[] getStartNumbers()

getLastNumbers

int[] getLastNumbers()

getDimension

int getDimension()


Copyright © 2009. All Rights Reserved.