org.biojava3.core.sequence.features
Class QuantityFeature<S extends AbstractSequence<C>,C extends Compound>
java.lang.Object
org.biojava3.core.sequence.features.AbstractFeature<S,C>
org.biojava3.core.sequence.features.QuantityFeature<S,C>
- All Implemented Interfaces:
- FeatureInterface<S,C>
public class QuantityFeature<S extends AbstractSequence<C>,C extends Compound>
- extends AbstractFeature<S,C>
It is common to have a numerical value or values associated with a feature. This can then
be used in heat maps or other visual indicators when viewing a sequence. Multiple quantities
could represent a time corse study and display a color gradient
- Author:
- Scooter Willis
Methods inherited from class org.biojava3.core.sequence.features.AbstractFeature |
getChildrenFeatures, getDescription, getLocations, getParentFeature, getShortDescription, getSource, getType, getUserObject, setChildrenFeatures, setDescription, setLocation, setParentFeature, setShortDescription, setSource, setType, setUserObject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QuantityFeature
public QuantityFeature(String type,
String source)
- Parameters:
type
- source
-
addQuantity
public void addQuantity(Number value)
- Parameters:
value
-
getQuantities
public List<Number> getQuantities()
- Returns:
- the quantities
setQuantities
public void setQuantities(List<Number> quantities)
- Parameters:
quantities
- the quantities to set