/** * Flatten the Structures into a 1D array of Structures of length getTotalNumberOfStructures(). * @return Array of Structures */ public ArrayStructure flatten() { ArrayStructureW aw = new ArrayStructureW( getStructureMembers(), new int[] {total}); for (int i=0; i<total; i++) { StructureData sdata = new StructureDataA( this, i); aw.setStructureData(sdata, i); } return aw; }
ArraySequenceNested aseq = new ArraySequenceNested( members, outerLength); DSequence innerSeq = (DSequence) bt; int innerLength = innerSeq.getRowCount(); aseq.setSequenceLength(row, innerLength); aseq.finish();
return arraySeq.flatten();
/** * Flatten the Structures into a 1D array of Structures of length getTotalNumberOfStructures(). * @return Array of Structures */ public ArrayStructure flatten() { ArrayStructureW aw = new ArrayStructureW( getStructureMembers(), new int[] {total}); for (int i=0; i<total; i++) { StructureData sdata = new StructureDataA( this, i); aw.setStructureData(sdata, i); } return aw; }
/** * Flatten the Structures into a 1D array of Structures of length getTotalNumberOfStructures(). * @return Array of Structures */ public ArrayStructure flatten() { ArrayStructureW aw = new ArrayStructureW( getStructureMembers(), new int[] {total}); for (int i=0; i<total; i++) { StructureData sdata = new StructureDataA( this, i); aw.setStructureData(sdata, i); } return aw; }