Modifier | Constructor and Description |
---|---|
protected |
FeatureModel(Model model)
Instantiates a new feature model.
|
Modifier and Type | Method and Description |
---|---|
void |
declareEdgeFeatures(Collection<String> features,
Map<String,String> featureNames,
Map<String,String> featureShortNames,
Map<String,Dimension> featureDimensions,
Map<String,Boolean> isIntFeature)
Declares edge features, by specifying their name, short name and
dimension.
|
void |
declareSpotFeatures(Collection<String> features,
Map<String,String> featureNames,
Map<String,String> featureShortNames,
Map<String,Dimension> featureDimensions,
Map<String,Boolean> isIntFeature)
Declares spot features, by specifying their names, short name and
dimension.
|
void |
declareTrackFeatures(Collection<String> features,
Map<String,String> featureNames,
Map<String,String> featureShortNames,
Map<String,Dimension> featureDimensions,
Map<String,Boolean> isIntFeature)
Declares track features, by specifying their names, short name and
dimension.
|
String |
echo()
Echoes the full content of this
FeatureModel . |
Double |
getEdgeFeature(org.jgrapht.graph.DefaultWeightedEdge edge,
String featureName) |
Map<String,Dimension> |
getEdgeFeatureDimensions()
Returns the dimension mapping of the edge features that are dealt with in
this model.
|
Map<String,Boolean> |
getEdgeFeatureIsInt()
Returns the map that states whether the target feature is integer values
(
true ) or double valued (false ). |
Map<String,String> |
getEdgeFeatureNames()
Returns the name mapping of the edge features that are dealt with in this
model.
|
Collection<String> |
getEdgeFeatures()
Returns edge features as declared in this model.
|
Map<String,String> |
getEdgeFeatureShortNames()
Returns the short name mapping of the edge features that are dealt with
in this model.
|
Map<String,Dimension> |
getSpotFeatureDimensions()
Returns the dimension mapping of the spot features that are dealt with in
this model.
|
Map<String,Boolean> |
getSpotFeatureIsInt()
Returns the map that states whether the target feature is integer values
(
true ) or double valued (false ). |
Map<String,String> |
getSpotFeatureNames()
Returns the name mapping of the spot features that are dealt with in this
model.
|
Collection<String> |
getSpotFeatures()
Returns spot features as declared in this model.
|
Map<String,String> |
getSpotFeatureShortNames()
Returns the short name mapping of the spot features that are dealt with
in this model.
|
Double |
getTrackFeature(Integer trackID,
String feature)
Returns the numerical value of the specified track feature for the
specified track.
|
Map<String,Dimension> |
getTrackFeatureDimensions()
Returns the dimension mapping of the track features that are dealt with
in this model.
|
Map<String,Boolean> |
getTrackFeatureIsInt()
Returns the map that states whether the target feature is integer values
(
true ) or double valued (false ). |
Map<String,String> |
getTrackFeatureNames()
Returns the name mapping of the track features that are dealt with in
this model.
|
Collection<String> |
getTrackFeatures()
Returns the track features that are dealt with in this model.
|
Map<String,String> |
getTrackFeatureShortNames()
Returns the short name mapping of the track features that are dealt with
in this model.
|
Map<String,double[]> |
getTrackFeatureValues()
Returns the map of all track features declared for all tracks of the
model.
|
void |
putEdgeFeature(org.jgrapht.graph.DefaultWeightedEdge edge,
String feature,
Double value)
Stores a numerical feature for an edge of this model.
|
void |
putTrackFeature(Integer trackID,
String feature,
Double value)
Stores a track numerical feature.
|
void |
removeEdgeFeature(org.jgrapht.graph.DefaultWeightedEdge edge,
String feature)
Remove the value of the designated feature for the specified edge.
|
void |
removeTrackFeature(Integer trackID,
String feature)
Remove the value of the designated feature for the track with the
specified ID.
|
String |
toString() |
public void putEdgeFeature(org.jgrapht.graph.DefaultWeightedEdge edge, String feature, Double value)
Note that no checks are made to ensures that the edge exists in the
TrackModel
, and that the feature is declared in this
FeatureModel
.
edge
- the edge whose features to update.feature
- the feature.value
- the feature valuepublic Double getEdgeFeature(org.jgrapht.graph.DefaultWeightedEdge edge, String featureName)
public void removeEdgeFeature(org.jgrapht.graph.DefaultWeightedEdge edge, String feature)
edge
- the edgefeature
- the featurepublic Collection<String> getEdgeFeatures()
public void declareEdgeFeatures(Collection<String> features, Map<String,String> featureNames, Map<String,String> featureShortNames, Map<String,Dimension> featureDimensions, Map<String,Boolean> isIntFeature)
IllegalArgumentException
will be thrown if any of
the map misses a feature.features
- the list of edge features to register.featureNames
- the name of these features.featureShortNames
- the short name of these features.featureDimensions
- the dimension of these features.isIntFeature
- whether some of these features are made of int
s (
true
) or double
s (false
).public Map<String,String> getEdgeFeatureNames()
public Map<String,String> getEdgeFeatureShortNames()
public Map<String,Dimension> getEdgeFeatureDimensions()
public Map<String,Boolean> getEdgeFeatureIsInt()
true
) or double valued (false
).public Collection<String> getTrackFeatures()
public void declareTrackFeatures(Collection<String> features, Map<String,String> featureNames, Map<String,String> featureShortNames, Map<String,Dimension> featureDimensions, Map<String,Boolean> isIntFeature)
IllegalArgumentException
will be thrown if any of
the map misses a feature.features
- the list of track feature to register.featureNames
- the name of these features.featureShortNames
- the short name of these features.featureDimensions
- the dimension of these features.isIntFeature
- whether some of these features are made of int
s (
true
) or double
s (false
).public Map<String,String> getTrackFeatureNames()
public Map<String,String> getTrackFeatureShortNames()
public Map<String,Dimension> getTrackFeatureDimensions()
public Map<String,Boolean> getTrackFeatureIsInt()
true
) or double valued (false
).public void putTrackFeature(Integer trackID, String feature, Double value)
Note that no checks are made to ensures that the track ID exists in the
TrackModel
, and that the feature is declared in this
FeatureModel
.
trackID
- the ID of the track. It must be an existing track ID.feature
- the feature.value
- the feature value.public void removeTrackFeature(Integer trackID, String feature)
trackID
- the track IDfeature
- the featurepublic Double getTrackFeature(Integer trackID, String feature)
trackID
- the track ID to quest.feature
- the desired feature.public Map<String,double[]> getTrackFeatureValues()
public void declareSpotFeatures(Collection<String> features, Map<String,String> featureNames, Map<String,String> featureShortNames, Map<String,Dimension> featureDimensions, Map<String,Boolean> isIntFeature)
IllegalArgumentException
will be thrown if any of
the map misses a feature.features
- the list of spot feature to register.featureNames
- the name of these features.featureShortNames
- the short name of these features.featureDimensions
- the dimension of these features.isIntFeature
- whether some of these features are made of int
s (
true
) or double
s (false
).public Collection<String> getSpotFeatures()
public Map<String,String> getSpotFeatureNames()
public Map<String,String> getSpotFeatureShortNames()
public Map<String,Dimension> getSpotFeatureDimensions()
public Map<String,Boolean> getSpotFeatureIsInt()
true
) or double valued (false
).public String echo()
FeatureModel
.Copyright © 2015–2021 Fiji. All rights reserved.