public String getDetectorAnnotationRef(int instrumentIndex, int detectorIndex, int annotationRefIndex) { // Parents: {u'Instrument': {u'OME': None}} // AnnotationRef is reference and occurs more than once return root.getInstrument(instrumentIndex).getDetector(detectorIndex).getLinkedAnnotation(annotationRefIndex).getID(); }
public String getDetectorAnnotationRef(int instrumentIndex, int detectorIndex, int annotationRefIndex) { // Parents: {u'Instrument': {u'OME': None}} // AnnotationRef is reference and occurs more than once return root.getInstrument(instrumentIndex).getDetector(detectorIndex).getLinkedAnnotation(annotationRefIndex).getID(); }
@Test(dependsOnMethods={"testValidDetectorNode"}) public void testValidDetectorAnnotation() { Annotation n = ome.getInstrument(0).getDetector(0).getLinkedAnnotation(0); assertNotNull(n); assertEquals(DETECTOR_ANNOTATION_ID, n.getID()); assertEquals(n.getNamespace(), GENERAL_ANNOTATION_NAMESPACE); assertTrue(n instanceof CommentAnnotation); CommentAnnotation string = (CommentAnnotation) n; assertEquals(DETECTOR_ANNOTATION_VALUE, string.getValue()); }