org.biopax.paxtools.impl.level3
Class EvidenceImpl

java.lang.Object
  extended by org.biopax.paxtools.impl.BioPAXElementImpl
      extended by org.biopax.paxtools.impl.level3.L3ElementImpl
          extended by org.biopax.paxtools.impl.level3.XReferrableImpl
              extended by org.biopax.paxtools.impl.level3.EvidenceImpl
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, BioPAXElement, Evidence, Level3Element, UtilityClass, XReferrable

@Entity
@Indexed
public class EvidenceImpl
extends XReferrableImpl
implements Evidence

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.biopax.paxtools.model.BioPAXElement
BioPAXElement.Key
 
Field Summary
 
Fields inherited from class org.biopax.paxtools.impl.BioPAXElementImpl
SEARCH_FIELD_AVAILABILITY, SEARCH_FIELD_COMMENT, SEARCH_FIELD_EC_NUMBER, SEARCH_FIELD_KEYWORD, SEARCH_FIELD_NAME, SEARCH_FIELD_SEQUENCE, SEARCH_FIELD_TERM, SEARCH_FIELD_XREF_DB, SEARCH_FIELD_XREF_ID, SEARCH_INDEX_NAME
 
Fields inherited from interface org.biopax.paxtools.model.BioPAXElement
UNKNOWN_DOUBLE, UNKNOWN_FLOAT, UNKNOWN_INT
 
Constructor Summary
EvidenceImpl()
          Constructor.
 
Method Summary
 void addConfidence(Score confidence)
          Confidence in the containing instance.
 void addEvidenceCode(EvidenceCodeVocabulary evidenceCode)
          A pointer to a term in an external controlled vocabulary, such as the GO, PSI-MI or BioCyc evidence codes, that describes the nature of the support, such as 'traceable author statement' or 'yeast two-hybrid'.
 void addExperimentalForm(ExperimentalForm experimentalForm)
          Adds an experimental form.
 java.util.Set<Score> getConfidence()
          Confidence in the containing instance.
 java.util.Set<EvidenceCodeVocabulary> getEvidenceCode()
          A pointer to a term in an external controlled vocabulary, such as the GO, PSI-MI or BioCyc evidence codes, that describes the nature of the support, such as 'traceable author statement' or 'yeast two-hybrid'.
 java.util.Set<ExperimentalForm> getExperimentalForm()
          Contents of this set should not be modified.
 java.lang.Class<? extends Evidence> getModelInterface()
          This method returns the actual model interface that a class implements.
 void removeConfidence(Score confidence)
          Confidence in the containing instance.
 void removeEvidenceCode(EvidenceCodeVocabulary evidenceCode)
          A pointer to a term in an external controlled vocabulary, such as the GO, PSI-MI or BioCyc evidence codes, that describes the nature of the support, such as 'traceable author statement' or 'yeast two-hybrid'.
 void removeExperimentalForm(ExperimentalForm experimentalForm)
          Removes an experimental form.
protected  boolean semanticallyEquivalent(BioPAXElement element)
          Answers whether two Evidence objects are semantically equivalent.
 void setConfidence(java.util.Set<Score> confidence)
          Confidence in the containing instance.
 void setEvidenceCode(java.util.Set<EvidenceCodeVocabulary> evidenceCode)
          A pointer to a term in an external controlled vocabulary, such as the GO, PSI-MI or BioCyc evidence codes, that describes the nature of the support, such as 'traceable author statement' or 'yeast two-hybrid'.
 void setExperimentalForm(java.util.Set<ExperimentalForm> experimentalForm)
           
 
Methods inherited from class org.biopax.paxtools.impl.level3.XReferrableImpl
addXref, equivalenceCode, getXref, hasCommonUnificationXref, removeXref, setXref
 
Methods inherited from class org.biopax.paxtools.impl.level3.L3ElementImpl
addComment, getComment, removeComment, setComment
 
Methods inherited from class org.biopax.paxtools.impl.BioPAXElementImpl
getAnnotations, getProxyId, getRDFId, getVersion, isEquivalent, setProxyId, setRDFId, setVersion, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.biopax.paxtools.model.level3.XReferrable
addXref, getXref, removeXref
 
Methods inherited from interface org.biopax.paxtools.model.level3.Level3Element
addComment, getComment, removeComment
 
Methods inherited from interface org.biopax.paxtools.model.BioPAXElement
equivalenceCode, getAnnotations, getRDFId, isEquivalent
 

Constructor Detail

EvidenceImpl

public EvidenceImpl()
Constructor.

Method Detail

getModelInterface

public java.lang.Class<? extends Evidence> getModelInterface()
Description copied from interface: BioPAXElement
This method returns the actual model interface that a class implements.

Specified by:
getModelInterface in interface BioPAXElement
Returns:
an interface from org.biopax.paxtools.model package corresponding to a BioPAX class.

getConfidence

public java.util.Set<Score> getConfidence()
Confidence in the containing instance. Usually a statistical measure.

Specified by:
getConfidence in interface Evidence
Returns:
a set of scores representing confidence

setConfidence

public void setConfidence(java.util.Set<Score> confidence)
Confidence in the containing instance. Usually a statistical measure.

WARNING: This method should only be used for batch operations and with care. For regular manipulation use add/remove instead.

Parameters:
confidence - a set of scores representing confidence

addConfidence

public void addConfidence(Score confidence)
Confidence in the containing instance. Usually a statistical measure.

Specified by:
addConfidence in interface Evidence
Parameters:
confidence - a new confidence measure to add

removeConfidence

public void removeConfidence(Score confidence)
Confidence in the containing instance. Usually a statistical measure.

Specified by:
removeConfidence in interface Evidence
Parameters:
confidence - a confidence measure to be removed.

getEvidenceCode

public java.util.Set<EvidenceCodeVocabulary> getEvidenceCode()
A pointer to a term in an external controlled vocabulary, such as the GO, PSI-MI or BioCyc evidence codes, that describes the nature of the support, such as 'traceable author statement' or 'yeast two-hybrid'.

Specified by:
getEvidenceCode in interface Evidence
Returns:
a set of evidence codes for this evidence type.

setEvidenceCode

public void setEvidenceCode(java.util.Set<EvidenceCodeVocabulary> evidenceCode)
A pointer to a term in an external controlled vocabulary, such as the GO, PSI-MI or BioCyc evidence codes, that describes the nature of the support, such as 'traceable author statement' or 'yeast two-hybrid'.

WARNING: This method should only be used for batch operations and with care. For regular manipulation use add/remove instead.

Parameters:
evidenceCode - a new set of evidence codes for this evidence type.

addEvidenceCode

public void addEvidenceCode(EvidenceCodeVocabulary evidenceCode)
A pointer to a term in an external controlled vocabulary, such as the GO, PSI-MI or BioCyc evidence codes, that describes the nature of the support, such as 'traceable author statement' or 'yeast two-hybrid'.

Specified by:
addEvidenceCode in interface Evidence
Parameters:
evidenceCode - a new evidence code for this evidence.

removeEvidenceCode

public void removeEvidenceCode(EvidenceCodeVocabulary evidenceCode)
A pointer to a term in an external controlled vocabulary, such as the GO, PSI-MI or BioCyc evidence codes, that describes the nature of the support, such as 'traceable author statement' or 'yeast two-hybrid'.

Specified by:
removeEvidenceCode in interface Evidence
Parameters:
evidenceCode - to be removed

getExperimentalForm

public java.util.Set<ExperimentalForm> getExperimentalForm()
Description copied from interface: Evidence
Contents of this set should not be modified. Use add/remove methods instead.

Specified by:
getExperimentalForm in interface Evidence
Returns:
The experimental forms associated with an evidence instance.

setExperimentalForm

public void setExperimentalForm(java.util.Set<ExperimentalForm> experimentalForm)

addExperimentalForm

public void addExperimentalForm(ExperimentalForm experimentalForm)
Description copied from interface: Evidence
Adds an experimental form.

Specified by:
addExperimentalForm in interface Evidence
Parameters:
experimentalForm - associated with an evidence instance.

removeExperimentalForm

public void removeExperimentalForm(ExperimentalForm experimentalForm)
Description copied from interface: Evidence
Removes an experimental form.

Specified by:
removeExperimentalForm in interface Evidence
Parameters:
experimentalForm - associated with an evidence instance.

semanticallyEquivalent

protected boolean semanticallyEquivalent(BioPAXElement element)
Answers whether two Evidence objects are semantically equivalent. (Currently, it considers only member UnificationXrefs and EvidenceCodeVocabularies for comparison...) TODO: review; add comparing ExperimentalForm and Confidence values...

Overrides:
semanticallyEquivalent in class XReferrableImpl


Copyright © 2011 BioPAX. All Rights Reserved.