Class GeneSet
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<E>
-
- java.util.HashSet<GeneMention>
-
- de.julielab.jules.ae.genemapping.genemodel.GeneSet
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,java.lang.Iterable<GeneMention>,java.util.Collection<GeneMention>,java.util.Set<GeneMention>
public class GeneSet extends java.util.HashSet<GeneMention>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GeneSet()GeneSet(java.util.HashSet<GeneMention> genes, java.util.List<SynHit> setId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)cc.mallet.types.FeatureVectorgetFeatureVector()cc.mallet.types.InstancegetInstance()java.lang.StringgetRepresentationText()Returns the text of any gene mention in this set or null, if the set is empty.java.util.List<SynHit>getSetId()The set ID represent the gene ID that all elements in the set belong toGeneMention.SpecificTypegetSpecificType()doublegetSpecificTypeConfidence()inthashCode()booleanisPlural()voidsetFeatureVector(cc.mallet.types.FeatureVector featureVector)voidsetInstance(cc.mallet.types.Instance instance)voidsetPlural(boolean isPlural)voidsetSetId(java.util.List<SynHit> setId)voidsetSpecificType(GeneMention.SpecificType specificType)voidsetSpecificTypeConfidence(double specificTypeConfidence)-
Methods inherited from class java.util.HashSet
add, clear, clone, contains, isEmpty, iterator, remove, size, spliterator
-
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, retainAll, toArray, toArray, toString
-
-
-
-
Constructor Detail
-
GeneSet
public GeneSet(java.util.HashSet<GeneMention> genes, java.util.List<SynHit> setId)
-
GeneSet
public GeneSet()
-
-
Method Detail
-
getInstance
public cc.mallet.types.Instance getInstance()
-
setInstance
public void setInstance(cc.mallet.types.Instance instance)
-
getSetId
public java.util.List<SynHit> getSetId()
The set ID represent the gene ID that all elements in the set belong to- Returns:
- The ID of the elements in this set.
-
setSetId
public void setSetId(java.util.List<SynHit> setId)
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacejava.util.Collection<GeneMention>- Specified by:
hashCodein interfacejava.util.Set<GeneMention>- Overrides:
hashCodein classjava.util.AbstractSet<GeneMention>
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equalsin interfacejava.util.Collection<GeneMention>- Specified by:
equalsin interfacejava.util.Set<GeneMention>- Overrides:
equalsin classjava.util.AbstractSet<GeneMention>
-
getRepresentationText
public java.lang.String getRepresentationText()
Returns the text of any gene mention in this set or null, if the set is empty.- Returns:
- Any gene mention text of this set.
-
getFeatureVector
public cc.mallet.types.FeatureVector getFeatureVector()
-
setFeatureVector
public void setFeatureVector(cc.mallet.types.FeatureVector featureVector)
-
getSpecificType
public GeneMention.SpecificType getSpecificType()
-
setSpecificType
public void setSpecificType(GeneMention.SpecificType specificType)
-
isPlural
public boolean isPlural()
-
setPlural
public void setPlural(boolean isPlural)
-
getSpecificTypeConfidence
public double getSpecificTypeConfidence()
-
setSpecificTypeConfidence
public void setSpecificTypeConfidence(double specificTypeConfidence)
-
-