Class FeatureInputMark
Object
FeatureInputMark
- All Implemented Interfaces:
FeatureInput,FeatureInputDictionary,FeatureInputWithResolution
A feature input that wraps a
Mark along with optional dimensions and dictionary.
This class implements FeatureInputDictionary to provide dictionary-related
functionality for feature calculations on marks.
-
Constructor Summary
ConstructorsConstructorDescriptionFeatureInputMark(Mark mark, Optional<Dimensions> dimensions) Constructs a new instance with a mark and optional dimensions.FeatureInputMark(Mark mark, Optional<Dimensions> dimensions, Optional<Dictionary> dictionary) Creates a newFeatureInputMarkinstance.FeatureInputMark(Mark mark, Dimensions dimensions, Dictionary dictionary) Constructs a new instance with a mark, dimensions, and dictionary. -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.anchoranalysis.feature.input.FeatureInputDictionary
getDictionaryRequiredMethods inherited from interface org.anchoranalysis.feature.input.FeatureInputWithResolution
getResolutionRequired
-
Constructor Details
-
FeatureInputMark
Constructs a new instance with a mark and optional dimensions.- Parameters:
mark- the markdimensions- optional dimensions
-
FeatureInputMark
Constructs a new instance with a mark, dimensions, and dictionary.- Parameters:
mark- the markdimensions- the dimensionsdictionary- the dictionary
-
FeatureInputMark
public FeatureInputMark(Mark mark, Optional<Dimensions> dimensions, Optional<Dictionary> dictionary) Creates a newFeatureInputMarkinstance.- Parameters:
mark- The mark associated with this feature input.dimensions- Optional dimensions associated with the mark.dictionary- Optional dictionary associated with the mark.
-
-
Method Details
-
getResolutionOptional
- Specified by:
getResolutionOptionalin interfaceFeatureInputWithResolution
-
getDictionaryOptional
- Specified by:
getDictionaryOptionalin interfaceFeatureInputDictionary
-
getDimensionsOptional
Gets the optional dimensions associated with this feature input.- Returns:
- an
Optionalcontaining the dimensions, if present
-
getDimensionsRequired
Gets the dimensions associated with this feature input, throwing an exception if not present.- Returns:
- the dimensions
- Throws:
FeatureCalculationException- if dimensions are not present
-
equals
-
canEqual
-
hashCode
-
getMark
The mark associated with this feature input.
-