public class MetaObjectParametricShapeColorAndText extends MetaObjectParametricArrayWeightedSum implements BinarySerializable, StringFieldDataProvider
Modifier and Type | Class and Description |
---|---|
static class |
MetaObjectParametricShapeColorAndText.TextDistanceFunction
Distance function for
MetaObjectParametricShapeColorAndText that
uses only the distance of the textual descriptor. |
LocalAbstractObject.DataEqualObject, LocalAbstractObject.TextStreamFactory<T extends LocalAbstractObject>, LocalAbstractObject.TrivialDistanceFunction
objects
counterDistanceComputations, counterLowerBoundDistanceComputations, counterPrecomputedDistanceSavings, counterUpperBoundDistanceComputations, MAX_DISTANCE, MIN_DISTANCE, suppData, trivialDistanceFunction, UNKNOWN_DISTANCE
Constructor and Description |
---|
MetaObjectParametricShapeColorAndText(AbstractObjectKey objectKey,
java.util.Map<java.lang.String,? extends java.io.Serializable> additionalParameters,
java.util.Map<java.lang.String,? extends LocalAbstractObject> objects)
Creates a new instance of MetaObjectParametricShapeColorAndText.
|
MetaObjectParametricShapeColorAndText(BinaryInput input,
BinarySerializator serializator)
Creates a new instance of MetaObjectParametricShapeColorAndText loaded from binary input.
|
MetaObjectParametricShapeColorAndText(java.io.BufferedReader stream)
Creates a new instance of MetaObjectParametricShapeColorAndText from the given text stream.
|
MetaObjectParametricShapeColorAndText(MetaObjectParametric object)
Creates a new instance of MetaObjectParametricShapeColorAndText from another
MetaObjectParametric . |
MetaObjectParametricShapeColorAndText(java.lang.String locatorURI,
java.util.Map<java.lang.String,? extends java.io.Serializable> additionalParameters,
java.util.Map<java.lang.String,? extends LocalAbstractObject> objects)
Creates a new instance of MetaObjectParametricShapeColorAndText.
|
MetaObjectParametricShapeColorAndText(java.lang.String locatorURI,
java.util.Map<java.lang.String,? extends java.io.Serializable> additionalParameters,
ObjectColorLayout colorLayout,
ObjectShortVectorL1 colorStructure,
ObjectIntVectorL1 scalableColor,
ObjectVectorEdgecomp edgeHistogram,
ObjectXMRegionShape regionShape,
ObjectIntMultiVectorJaccard keyWords)
Creates a new instance of MetaObjectParametricShapeColorAndText.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String[] |
getDescriptorNames()
Returns the list of the names of the possible encapsulated objects.
|
float |
getMaxDistance()
Returns a maximal possible distance for this class.
|
protected java.lang.String |
getObjectName(int index)
Returns the name of the fixed object with the given
index . |
java.lang.String |
getStringData()
Returns the textual data provided by this object.
|
java.lang.String |
getStringData(java.lang.String fieldName)
Returns the textual data for field
fieldName provided by this object. |
java.util.Collection<java.lang.String> |
getStringDataFields()
Returns the names of the textual data fields of this object.
|
protected float |
getWeight(int index)
Returns the weight used for the
index th encapsulated object distance in the overall distance sum. |
static float[] |
getWeights()
Returns the weights used for the respective encapsulated objects to compute overall distance.
|
getDistanceImpl
binarySerialize, getBinarySize, getObject, getObject, getObjectCount, getObjectMap, getObjectNames, getObjects, writeDataImpl
clearSurplusData, containsParameter, getParameter, getParameter, getParameter, getParameterCount, getParameterMap, getParameterNames, getRequiredParameter, getRequiredParameter, parseObjectComment, removeParameter, setParameter, writeData
containsObject, createMetaDistancesHolder, createSearchMetaObject, dataEquals, dataHashCode, fillMetaDistances, fillMetaDistances, getDistanceImpl, getObjectFromMap, getSize, implementationGetDistance, readObject, readObject, readObjects, readObjects, readObjectsHeader, toString, writeObjects, writeObjectsHeader
clone, clone, cloneRandomlyModify, create, create, excludeUsingPrecompDist, getDistance, getDistance, getDistance, getDistanceFilter, getDistanceFilter, getDistanceFilter, getDistanceFilter, getDistanceLowerBound, getDistanceLowerBoundImpl, getDistanceStorePrecomputed, getDistanceStorePrecomputed, getDistanceStorePrecomputed, getDistanceUpperBound, getDistanceUpperBoundImpl, getFieldsForNames, getNormDistance, getPrecomputedDistance, getPrecomputedDistance, getRandomChar, getRandomNormal, chainDestroy, chainFilter, includeUsingPrecompDist, isDistanceCompatible, peekNextChar, readAttributesFromStream, readObjectComments, readObjectCommentsWithoutData, unchainFilter, write, write, writeAttributesToStream, writeObjectComment
clone, getLocatorURI, getNoDataObject, getObjectKey, getObjectKey, getObjectLocatorURI, setObjectKey
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
binarySerialize, getBinarySize
public MetaObjectParametricShapeColorAndText(java.lang.String locatorURI, java.util.Map<java.lang.String,? extends java.io.Serializable> additionalParameters, ObjectColorLayout colorLayout, ObjectShortVectorL1 colorStructure, ObjectIntVectorL1 scalableColor, ObjectVectorEdgecomp edgeHistogram, ObjectXMRegionShape regionShape, ObjectIntMultiVectorJaccard keyWords)
locatorURI
- locator of the metaobject (and typically all of the passed objects)additionalParameters
- additional parameters for this meta objectcolorLayout
- color layout MPEG7 descriptorcolorStructure
- color structure MPEG7 descriptorscalableColor
- scalable color MPEG7 descriptoredgeHistogram
- edge histogram MPEG7 descriptorregionShape
- region shape MPEG7 descriptorkeyWords
- keywords descriptor (i.e. the words converted to identifiers and compared by Jaccard coefficient)public MetaObjectParametricShapeColorAndText(java.lang.String locatorURI, java.util.Map<java.lang.String,? extends java.io.Serializable> additionalParameters, java.util.Map<java.lang.String,? extends LocalAbstractObject> objects)
locatorURI
- locator of the metaobject (and typically all of the passed objects)additionalParameters
- additional parameters for this meta objectobjects
- the map with named objects to encapsulatepublic MetaObjectParametricShapeColorAndText(AbstractObjectKey objectKey, java.util.Map<java.lang.String,? extends java.io.Serializable> additionalParameters, java.util.Map<java.lang.String,? extends LocalAbstractObject> objects)
objectKey
- the key to be associated with this objectadditionalParameters
- additional parameters for this meta objectobjects
- the map with named objects to encapsulatepublic MetaObjectParametricShapeColorAndText(MetaObjectParametric object)
MetaObjectParametric
.object
- the parametric metaobject to get the parameters and the encapsulated objects frompublic MetaObjectParametricShapeColorAndText(java.io.BufferedReader stream) throws java.io.IOException
stream
- the text stream to read the objects fromjava.io.IOException
- when an error appears during reading from given stream,
EOFException is returned if end of the given stream is reached.public MetaObjectParametricShapeColorAndText(BinaryInput input, BinarySerializator serializator) throws java.io.IOException
input
- the input to read the MetaObject fromserializator
- the serializator used to write objectsjava.io.IOException
- if there was an I/O error reading from the bufferpublic static java.lang.String[] getDescriptorNames()
protected java.lang.String getObjectName(int index)
MetaObjectParametricArray
index
.
By default, this implementation returns "ObjectX" where X is the given
index
. However, this method should be overridden to give
the real name of the object if appropriate (e.g. from a static array of names).getObjectName
in class MetaObjectParametricArray
index
- the fixed index of the object the name of which to getindex
th objectpublic static float[] getWeights()
protected float getWeight(int index)
MetaObjectParametricArrayWeightedSum
index
th encapsulated object distance in the overall distance sum.getWeight
in class MetaObjectParametricArrayWeightedSum
index
- the fixed index of the object the weight of which to getindex
th encapsulated objectpublic float getMaxDistance()
LocalAbstractObject
LocalAbstractObject.MAX_DISTANCE
.getMaxDistance
in class MetaObjectParametricArrayWeightedSum
public java.util.Collection<java.lang.String> getStringDataFields()
StringFieldDataProvider
getStringDataFields
in interface StringFieldDataProvider
public java.lang.String getStringData(java.lang.String fieldName) throws java.lang.IllegalArgumentException
StringFieldDataProvider
fieldName
provided by this object.getStringData
in interface StringFieldDataProvider
fieldName
- the name of the field the data of which to returnfieldName
java.lang.IllegalArgumentException
- if the given field name is unknown for this data providerpublic java.lang.String getStringData()
StringDataProvider
getStringData
in interface StringDataProvider