dap4/d4lib/src/main/java/dap4/dap4lib/serial/D4DataCompiler.java
protected D4Cursor
    compileSequenceArray(DapVariable var, D4Cursor container)
            throws DapException
    {
        DapSequence dapseq = (DapSequence) var.getBaseType();
        D4Cursor seqarray = new D4Cursor(Scheme.SEQARRAY, this.dsp, var, container)
                .setOffset(getPos(this.databuffer));
        List<DapDimension> dimset = var.getDimensions();
        long dimproduct = DapUtil.dimProduct(dimset);
        D4Cursor[] instances = new D4Cursor[(int) dimproduct];
        Odometer odom = Odometer.factory(DapUtil.dimsetToSlices(dimset), dimset);
        while(odom.hasNext()) {
            Index index = odom.next();
            D4Cursor instance = compileSequence(var, dapseq, seqarray);
            instance.setIndex(index);
            instances[(int) index.index()] = instance;
        }
        seqarray.setElements(instances);
        return seqarray;
    }
protected D4Cursor
    compileSequenceArray(DapVariable var, D4Cursor container)
            throws DapException
    {
        DapSequence dapseq = (DapSequence) var.getBaseType();
        D4Cursor seqarray = new D4Cursor(Scheme.SEQARRAY, this.dsp, var, container)
                .setOffset(getPos(this.databuffer));
        List<DapDimension> dimset = var.getDimensions();
        long dimproduct = DapUtil.dimProduct(dimset);
        D4Cursor[] instances = new D4Cursor[(int) dimproduct];
        Odometer odom = Odometer.factory(DapUtil.dimsetToSlices(dimset), dimset);
        while(odom.hasNext()) {
            Index index = odom.next();
            D4Cursor instance = compileSequence(var, dapseq, seqarray);
            instance.setIndex(index);
            instances[(int) index.index()] = instance;
        }
        seqarray.setElements(instances);
        return seqarray;
    }
protected D4Cursor compileSequenceArray ( DapVariable var , D4Cursor container ) throws DapException { DapSequence dapseq = ( DapSequence ) var . getBaseType ( ) ; D4Cursor seqarray = new D4Cursor ( Scheme . SEQARRAY , this . dsp , var , container ) . setOffset ( getPos ( this . databuffer ) ) ; List < DapDimension > dimset = var . getDimensions ( ) ; long dimproduct = DapUtil . dimProduct ( dimset ) ; D4Cursor [ ] instances = new D4Cursor [ ( int ) dimproduct ] ; Odometer odom = Odometer . factory ( DapUtil . dimsetToSlices ( dimset ) , dimset ) ; while ( odom . hasNext ( ) ) { Index index = odom . next ( ) ; D4Cursor instance = compileSequence ( var , dapseq , seqarray ) ; instance . setIndex ( index ) ; instances [ ( int ) index . index ( ) ] = instance ; } seqarray . setElements ( instances ) ; return seqarray ; }
Compile a sequence array.

@param var the template
@return A DataCompoundArray for the databuffer for this sequence.
@throws DapException
Compile a sequence array .