public class FeatureVector extends java.util.ArrayList<FeatureFunction> implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static long |
serialVersionUID |
Constructor and Description |
---|
FeatureVector(FeatureModel _featureModel,
SpecificationSubModel _specSubModel)
Constructs a feature vector
|
Modifier and Type | Method and Description |
---|---|
FeatureModel |
getFeatureModel()
Returns the feature model that the feature vector belongs to.
|
FeatureValue |
getFeatureValue(int index) |
FeatureValue[] |
getFeatureValues() |
SpecificationSubModel |
getSpecSubModel()
Returns the subspecifiction-model.
|
java.lang.String |
toString() |
void |
update()
Updates all feature value in the feature vector according to the current state.
|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, set, size, subList, toArray, toArray, trimToSize
public static final long serialVersionUID
public FeatureVector(FeatureModel _featureModel, SpecificationSubModel _specSubModel) throws MaltChainedException
_featureModel
- the parent feature model_specSubModel
- the subspecifiction-modelMaltChainedException
public SpecificationSubModel getSpecSubModel()
public FeatureModel getFeatureModel()
public void update() throws MaltChainedException
MaltChainedException
public FeatureValue getFeatureValue(int index)
public FeatureValue[] getFeatureValues()
public java.lang.String toString()
toString
in class java.util.AbstractCollection<FeatureFunction>
Copyright 2007-2014 Johan Hall, Jens Nilsson and Joakim Nivre.