|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.ac.ebi.microarray.zooma.hypothesis.AbstractTrackedHypothesis
public abstract class AbstractTrackedHypothesis
An ontology mapping hypothesis that communicates with an InformationTracker
to facilitate hypothesis
assessment.
Field Summary | |
---|---|
protected OntologyMappingContext |
context
|
protected java.util.Collection<uk.ac.ebi.ontocat.OntologyTerm> |
terms
|
protected Value |
value
|
Constructor Summary | |
---|---|
AbstractTrackedHypothesis()
|
Method Summary | |
---|---|
void |
acceptHypothesis()
Accept this hypothesis, informing the ontology mapping mediator of this change. |
void |
addOntologyTerm(uk.ac.ebi.ontocat.OntologyTerm ontologyTerm)
Adds an additional term to the collection of terms that are mapped by this hypothesis. |
void |
aggregateContextFromEquivalentHypothesis(OntologyMappingContext equivalentContext)
|
void |
changed()
Called whenever this information object is updated, this calls back to the mediator governing this information object and updates all dependent information artifacts. |
OntologyMappingContext |
getContext()
The context in which this mapping hypothesis should be attempted |
protected InformationTracker |
getMappingTracker()
|
java.util.Collection<uk.ac.ebi.ontocat.OntologyTerm> |
getOntologyTerms()
Gets the collections of OntologyTerms that can hypothetically be mapped to the given value. |
Value |
getValue()
Gets the description that is attempted to be mapped in this hypothesis. |
boolean |
isAccepted()
Returns whether or not this hypothesis has been accepted as the best mapping hypothesis |
boolean |
isRejected()
Returns whether or not this hypothesis has been rejected against another, better hypothesis |
void |
rejectHypothesis()
Reject this hypothesis, informing the ontology mapping mediator of this change. |
void |
setOntologyMappingTracker(InformationTracker mappingTracker)
Set the mediator service that this hypothesis can provide feedback to. |
void |
setOntologyTerms(java.util.Collection<uk.ac.ebi.ontocat.OntologyTerm> ontologyTerms)
Sets the collection of OntologyTerms that can hypothetically be mapped to the value for this hypothesis. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface uk.ac.ebi.microarray.zooma.hypothesis.OntologyMappingHypothesis |
---|
accept |
Field Detail |
---|
protected Value value
protected java.util.Collection<uk.ac.ebi.ontocat.OntologyTerm> terms
protected OntologyMappingContext context
Constructor Detail |
---|
public AbstractTrackedHypothesis()
Method Detail |
---|
protected InformationTracker getMappingTracker()
public Value getValue()
OntologyMappingHypothesis
getValue
in interface OntologyMappingHypothesis
public void setOntologyTerms(java.util.Collection<uk.ac.ebi.ontocat.OntologyTerm> ontologyTerms)
OntologyMappingHypothesis
setOntologyTerms
in interface OntologyMappingHypothesis
ontologyTerms
- the collections of terms that can be mappedpublic java.util.Collection<uk.ac.ebi.ontocat.OntologyTerm> getOntologyTerms()
OntologyMappingHypothesis
getOntologyTerms
in interface OntologyMappingHypothesis
public void addOntologyTerm(uk.ac.ebi.ontocat.OntologyTerm ontologyTerm)
OntologyMappingHypothesis
addOntologyTerm
in interface OntologyMappingHypothesis
ontologyTerm
- the ontology term being added to this hypothesispublic OntologyMappingContext getContext()
OntologyMappingHypothesis
getContext
in interface OntologyMappingHypothesis
public boolean isAccepted()
OntologyMappingHypothesis
isAccepted
in interface OntologyMappingHypothesis
public boolean isRejected()
OntologyMappingHypothesis
isRejected
in interface OntologyMappingHypothesis
public void setOntologyMappingTracker(InformationTracker mappingTracker)
acceptHypothesis()
or rejectHypothesis()
it should inform the mediator.
mappingTracker
- the mediator to inform of changespublic void acceptHypothesis()
OntologyMappingHypothesis
acceptHypothesis
in interface OntologyMappingHypothesis
public void rejectHypothesis()
OntologyMappingHypothesis
rejectHypothesis
in interface OntologyMappingHypothesis
public void changed()
Information
changed
in interface Information
public void aggregateContextFromEquivalentHypothesis(OntologyMappingContext equivalentContext)
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |