|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FeatureCollection
A FeatureCollection may be backed by an actual Java Collection, or by any other data type that holds multiple objects, such as a Map. In this interface and subclasses, "collection" refers to any such multiple-object container.
Field Summary | |
---|---|
static int |
PROBLEM_FEATURE_COLLECTION
|
static int |
SOLUTION_FEATURE_COLLECTION
|
Fields inherited from interface edu.indiana.util.swing.SwingRepresentable |
---|
TITLE_FONT |
Fields inherited from interface edu.indiana.iucbrf.feature.Feature |
---|
DEFAULT_FEATURE_DIFFERENTIATORS_BY_VARTYPE, FEATURE_VALUE_FONT, INTERVAL_VARIABLE, LABEL_WIDTH, NOMINAL_VARIABLE, ORDINAL_VARIABLE, OTHER_VARIABLE |
Fields inherited from interface edu.indiana.util.swing.SwingRepresentable |
---|
TITLE_FONT |
Method Summary | |
---|---|
void |
addEstimatedFeature(FeatureKey featureKey,
Feature additional_feature,
double confidence,
Domain domain)
Add an estimated feature to this FeatureCollection. |
void |
addFeature(FeatureKey featureKey,
Feature additional_feature,
Domain domain)
Add a feature to this FeatureCollection. |
void |
addFeatureCollectionListener(FeatureCollectionListener cll)
|
void |
clearAllEstimates()
Remove all estimated features from this collection. |
void |
clearEstimate(FeatureKey key)
Remove the given estimated feature from this collection. |
void |
clearFeatures()
Clear all features in this FeatureCollection. |
boolean |
containsEstimates()
|
java.util.Iterator |
entryIterator()
|
boolean |
equals(java.lang.Object otherFeatureCollection)
|
java.util.Iterator |
featureIterator()
|
int |
getCollectionType()
|
double |
getConfidence(FeatureKey key)
Get the confidence in the value of a feature. |
java.lang.String |
getCustomTitle()
|
Feature |
getFeature(FeatureKey key)
If the collection does not have a feature for the given key, null is returned. |
java.util.ArrayList |
getFeaturesMatching(java.lang.Class feature_class)
Get the features that are of the given class. |
boolean |
getIsReferenceSolution()
|
java.util.Set |
getKeySet()
|
int |
getKnownFeatureCount()
Get the number of known features in this collection (not including estimated features). |
int |
getTotalFeatureCount()
Get the total number of features in this collection (known and estimated). |
boolean |
isDefinitelyKnown(FeatureKey key)
|
boolean |
isEstimated(FeatureKey key)
|
java.util.Iterator |
keyIterator()
|
Feature |
removeFeature(FeatureKey key)
Remove the feature at the given index. |
void |
removeFeatureCollectionListener(FeatureCollectionListener cll)
|
Feature |
replaceFeature(FeatureKey key,
Feature replacement_feature,
Domain domain)
Replace the feature at the given index with another feature. |
void |
setCustomTitle(java.lang.String title)
|
void |
setIsReferenceSolution(boolean isReferenceSolution)
|
java.lang.String |
toString(Domain domain)
|
Methods inherited from interface edu.indiana.iucbrf.util.SwingRepresentableWithDomain |
---|
toSwing |
Methods inherited from interface edu.indiana.util.swing.SwingRepresentable |
---|
toSwing |
Methods inherited from interface edu.indiana.iucbrf.feature.Feature |
---|
adjust, clone, getDefaultVariableType, getValue, midpoint, setValue, toString, toSwing |
Methods inherited from interface edu.indiana.util.swing.SwingRepresentable |
---|
toSwing |
Field Detail |
---|
static final int PROBLEM_FEATURE_COLLECTION
static final int SOLUTION_FEATURE_COLLECTION
Method Detail |
---|
java.util.ArrayList getFeaturesMatching(java.lang.Class feature_class)
The
- class of the features to be obtained.
void addFeature(FeatureKey featureKey, Feature additional_feature, Domain domain)
additional_feature
- The feature to add.void addEstimatedFeature(FeatureKey featureKey, Feature additional_feature, double confidence, Domain domain)
additional_feature
- The feature to add.Feature replaceFeature(FeatureKey key, Feature replacement_feature, Domain domain)
index
- The index of the feature to replace.replacement_feature
- The feature to replace the one at the index.void clearFeatures()
Feature removeFeature(FeatureKey key)
key
- The key of the feature to remove.boolean equals(java.lang.Object otherFeatureCollection)
equals
in class java.lang.Object
java.lang.String toString(Domain domain)
void addFeatureCollectionListener(FeatureCollectionListener cll)
void removeFeatureCollectionListener(FeatureCollectionListener cll)
java.util.Iterator keyIterator()
java.util.Iterator featureIterator()
java.util.Iterator entryIterator()
java.util.Set getKeySet()
Feature getFeature(FeatureKey key)
int getTotalFeatureCount()
int getKnownFeatureCount()
double getConfidence(FeatureKey key)
void clearAllEstimates()
void clearEstimate(FeatureKey key)
boolean containsEstimates()
boolean isDefinitelyKnown(FeatureKey key)
boolean isEstimated(FeatureKey key)
int getCollectionType()
java.lang.String getCustomTitle()
void setCustomTitle(java.lang.String title)
boolean getIsReferenceSolution()
void setIsReferenceSolution(boolean isReferenceSolution)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |