Tabnine Logo
ComponentConfidence
Code IndexAdd Tabnine to your IDE (free)

How to use
ComponentConfidence
in
uk.ac.ebi.intact.model

Best Java code snippets using uk.ac.ebi.intact.model.ComponentConfidence (Showing top 13 results out of 315)

origin: uk.ac.ebi.intact.core/intact-core-readonly

protected ComponentConfidence cloneComponentConfidence(ComponentConfidence componentConfidence) throws IntactClonerException {
  if (componentConfidence == null) {
    throw new IllegalArgumentException("You must give a non null component confidence");
  }
  ComponentConfidence clone = new ComponentConfidence();
  clonerManager.addClone(componentConfidence, clone);
  clone.setValue(componentConfidence.getValue());
  clone.setComponent(clone(componentConfidence.getComponent()));
  clone.setCvConfidenceType(clone(componentConfidence.getCvConfidenceType()));
  return clone;
}
origin: uk.ac.ebi.intact.core/intact-core

@Override
public boolean equals( Object o ) {
  return equals(o, false);
}
origin: uk.ac.ebi.intact.core/intact-core

private Collection<ComponentConfidence> synchronizeComponentConfidences( Collection<ComponentConfidence> confidencesToSynchronize, Component parentComponent ) {
  List<ComponentConfidence> confidences = new ArrayList<ComponentConfidence>(confidencesToSynchronize.size());
  for ( ComponentConfidence confidence : confidencesToSynchronize ) {
    if (confidence.getAc() != null && IntactContext.getCurrentInstance().getDataContext().getDaoFactory().getComponentConfidenceDao().isTransient(confidence)) {
      confidence = IntactContext.getCurrentInstance().getDataContext().getDaoFactory().getComponentConfidenceDao().getByAc(confidence.getAc());
    }
    confidence.setCvConfidenceType( synchronize (confidence.getCvConfidenceType()));
    confidence.setComponent(parentComponent);
    confidences.add(confidence);
  }
  return confidences;
}
origin: uk.ac.ebi.intact.dataexchange.psimi/intact-psixml-converters

if (conf.getCvConfidenceType() != null && IntactConverterUtils.AUTHOR_SCORE_MI.equalsIgnoreCase(conf.getCvConfidenceType().getIdentifier())){
  Attribute authConf = new Attribute(IntactConverterUtils.AUTH_CONF_MI, IntactConverterUtils.AUTH_CONF, conf.getValue());
origin: uk.ac.ebi.intact.core/intact-core-readonly

ComponentConfidence copyConfidence = ( ComponentConfidence ) confidence.clone();
copyConfidence.setComponent( copy );
origin: uk.ac.ebi.intact.dataexchange.psimi/intact-psixml-converters

@Override
public ComponentConfidence newConfidenceInstance(String value) {
  return new ComponentConfidence(value);
}
origin: uk.ac.ebi.intact.dataexchange.psimi/intact-psixml-converters

cvConfType.setOwner(confConverter.getInstitution());
cvConfType.setShortLabel(AUTHOR_SCORE);
confidence.setCvConfidenceType( cvConfType);
origin: uk.ac.ebi.intact.core/intact-core

public void addConfidence( ComponentConfidence confidence ) {
  if ( !this.confidences.contains( confidence ) ) {
    this.confidences.add( confidence );
    confidence.setComponent( this);
  }
}
origin: uk.ac.ebi.intact.core/intact-core-readonly

private Collection<ComponentConfidence> synchronizeComponentConfidences( Collection<ComponentConfidence> confidencesToSynchronize, Component parentComponent ) {
  List<ComponentConfidence> confidences = new ArrayList<ComponentConfidence>(confidencesToSynchronize.size());
  for ( ComponentConfidence confidence : confidencesToSynchronize ) {
    if (confidence.getAc() != null && IntactContext.getCurrentInstance().getDataContext().getDaoFactory().getComponentConfidenceDao().isTransient(confidence)) {
      confidence = IntactContext.getCurrentInstance().getDataContext().getDaoFactory().getComponentConfidenceDao().getByAc(confidence.getAc());
    }
    confidence.setCvConfidenceType( synchronize (confidence.getCvConfidenceType()));
    confidence.setComponent(parentComponent);
    confidences.add(confidence);
  }
  return confidences;
}
origin: uk.ac.ebi.intact.core/intact-core

ComponentConfidence copyConfidence = ( ComponentConfidence ) confidence.clone();
copyConfidence.setComponent( copy );
origin: uk.ac.ebi.intact.core/intact-core-readonly

public void addConfidence( ComponentConfidence confidence ) {
  if ( !this.confidences.contains( confidence ) ) {
    this.confidences.add( confidence );
    confidence.setComponent( this);
  }
}
origin: uk.ac.ebi.intact.core/intact-core

protected ComponentConfidence cloneComponentConfidence(ComponentConfidence componentConfidence) throws IntactClonerException {
  if (componentConfidence == null) {
    throw new IllegalArgumentException("You must give a non null component confidence");
  }
  ComponentConfidence clone = new ComponentConfidence();
  clonerManager.addClone(componentConfidence, clone);
  clone.setValue(componentConfidence.getValue());
  clone.setComponent(clone(componentConfidence.getComponent()));
  clone.setCvConfidenceType(clone(componentConfidence.getCvConfidenceType()));
  return clone;
}
origin: uk.ac.ebi.intact.core/intact-core-readonly

@Override
public boolean equals( Object o ) {
  return equals(o, false);
}
uk.ac.ebi.intact.modelComponentConfidence

Javadoc

Represents a specific confidence value of an interaction.

Most used methods

  • <init>
  • getCvConfidenceType
  • getValue
  • setCvConfidenceType
  • clone
  • equals
  • getAc
  • getComponent
  • setComponent
  • setValue

Popular in Java

  • Creating JSON documents from java classes using gson
  • getSystemService (Context)
  • onCreateOptionsMenu (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now