public void setPlateColumns(PositiveInteger columns, int plateIndex) { // Parents: {u'OME': None} // Columns is not a reference OME o0 = root; if (o0.sizeOfPlateList() == plateIndex) { o0.addPlate(new Plate()); } Plate o1 = o0.getPlate(plateIndex); o1.setColumns(columns); }
public void setPlateColumns(PositiveInteger columns, int plateIndex) { // Parents: {u'OME': None} // Columns is not a reference OME o0 = root; if (o0.sizeOfPlateList() == plateIndex) { o0.addPlate(new Plate()); } Plate o1 = o0.getPlate(plateIndex); o1.setColumns(columns); }
setColumns(PositiveInteger.valueOf( element.getAttribute("Columns")));
setColumns(PositiveInteger.valueOf( element.getAttribute("Columns")));
plate.setExternalIdentifier("External Identifier"); plate.setRows(new PositiveInteger(rows)); plate.setColumns(new PositiveInteger(columns)); plate.setRowNamingConvention(ROW_NAMING_CONVENTION); plate.setColumnNamingConvention(COLUMN_NAMING_CONVENTION);
private Plate makePlate() { Plate plate = new Plate(); plate.setName(PLATE_NAME); plate.setID(PLATE_ID); plate.setRows(WELL_ROWS); plate.setColumns(WELL_COLS); plate.setRowNamingConvention(WELL_ROW); plate.setColumnNamingConvention(WELL_COL); int wellSampleIndex = 0; for (int row=0; row<WELL_ROWS.getValue(); row++) { for (int col=0; col<WELL_COLS.getValue(); col++) { Well well = new Well(); well.setID(String.format("Well:%d_%d", row, col)); well.setRow(new NonNegativeInteger(row)); well.setColumn(new NonNegativeInteger(col)); WellSample sample = new WellSample(); sample.setID(String.format("WellSample:%d_%d", row, col)); sample.setIndex(new NonNegativeInteger(wellSampleIndex)); sample.linkImage(ome.getImage(wellSampleIndex)); well.addWellSample(sample); plate.addWell(well); wellSampleIndex++; } } return plate; }
plate.setID(InOutCurrentTest.PLATE_ID); plate.setRows(InOutCurrentTest.WELL_ROWS); plate.setColumns(InOutCurrentTest.WELL_COLS); plate.setRowNamingConvention(InOutCurrentTest.WELL_ROW); plate.setColumnNamingConvention(InOutCurrentTest.WELL_COL);