/** * Convert an annotatedObject annotations in to confidence value in PSI. * * @param session * @param parent the Element to which we will attach the generated confidence. * @param annotatedObject the object from which we get the annotations. * * @return the generated confidence or null if none could be generated. */ public Element create( UserSessionDownload session, Element parent, AnnotatedObject annotatedObject ) { Element element = null; if ( annotatedObject instanceof Interaction ) { element = create( session, parent, annotatedObject, CvTopic.AUTHOR_CONFIDENCE ); } else if ( annotatedObject instanceof Experiment ) { element = create( session, parent, annotatedObject, CvTopic.CONFIDENCE_MAPPING ); } else { // error, type not supported. throw new UnsupportedOperationException( "a confidence can only be generated for an interaction or an experiemnt." ); } return element; }
/** * Convert an annotatedObject annotations in to confidence value in PSI. * * @param session * @param parent the Element to which we will attach the generated confidence. * @param annotatedObject the object from which we get the annotations. * * @return the generated confidence or null if none could be generated. */ public Element create( UserSessionDownload session, Element parent, AnnotatedObject annotatedObject ) { Element element = null; if ( annotatedObject instanceof Interaction ) { element = create( session, parent, annotatedObject, CvTopic.AUTHOR_CONFIDENCE ); } else if ( annotatedObject instanceof Experiment ) { element = create( session, parent, annotatedObject, CvTopic.CONFIDENCE_MAPPING ); } else { // error, type not supported. throw new UnsupportedOperationException( "a confidence can only be generated for an interaction or an experiemnt." ); } return element; }
/** * Convert an annotatedObject annotations in to confidence value in PSI. * * @param session * @param parent the Element to which we will attach the generated confidence. * @param annotatedObject the object from which we get the annotations. * * @return the generated confidence or null if none could be generated. */ public Element create( UserSessionDownload session, Element parent, AnnotatedObject annotatedObject ) { Element element = null; if ( annotatedObject instanceof Interaction ) { element = create( session, parent, annotatedObject, CvTopic.AUTHOR_CONFIDENCE ); } else if ( annotatedObject instanceof Experiment ) { element = create( session, parent, annotatedObject, CvTopic.CONFIDENCE_MAPPING ); } else { // error, type not supported. throw new UnsupportedOperationException( "a confidence can only be generated for an interaction or an experiemnt." ); } return element; }