public class FeatureManager
extends java.lang.Object
Sample
s they
refer to. FeatureManager can look for feature files associated with Sample
s.
A danger to be aware of is the fact that FeatureManager is not well coupled to SampleManager
, so if you wish
to remove Sample
s you'll have to make sure you also manually remove entries in FeatureManager, otherwise
the Sample
data will not be freed. This might be addressed in future versions.Constructor and Description |
---|
FeatureManager() |
Modifier and Type | Method and Description |
---|---|
static void |
featuresForGroup(java.lang.String groupName) |
static FeatureSet |
featuresForSample(Sample sample)
Gets the FeatureSet for a given Sample.
|
static FeatureSet |
featuresForSampleIfLoaded(Sample sample)
Gets the FeatureSet for a given Sample, only if the FeatureSet
is already stored in memory.
|
static boolean |
isVerbose()
Determines if FeatureManager is being verbose.
|
static void |
removeSample(Sample s)
Removes the features associated with the given
Sample . |
static void |
setFeaturesForSample(Sample s,
FeatureSet fs)
Sets the FeatureSet for the given Sample.
|
static void |
setVerbose(boolean verbose)
Tells FeatureManager to produce verbose output.
|
public static void setFeaturesForSample(Sample s, FeatureSet fs)
s
- the Sample.fs
- the FeatureSet.public static FeatureSet featuresForSample(Sample sample)
sample
- the Sample to search for features of.public static FeatureSet featuresForSampleIfLoaded(Sample sample)
sample
- the Sample to search for features of.public static void featuresForGroup(java.lang.String groupName)
public static void removeSample(Sample s)
Sample
.s
- the Sample.public static boolean isVerbose()
public static void setVerbose(boolean verbose)
verbose
- true for verbose output.