|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectretrieval.SimilaritySearchResult
public class SimilaritySearchResult
Data structure to hold meta data about the matching result between a query skeleton object and a target object. The most important data to retrace the results are stored. The query object is assumed as known, so only the target object is saved.
SimilaritySearchResult implements Comparable, in the
following way: A similarity search result instance is "smaller" than another
one, if its matching costs are smaller. They are equal if their costs are
equal, and a search result instance is "bigger" than another one if its costs
are higher.
| Field Summary | |
|---|---|
private java.lang.String |
category
the category of the target skeleton object |
private MatchList |
cl
the found correspondences in the two skeleton objects |
private double |
costs
the total costs to match the two objects |
private java.lang.String |
shapefilename
the path to the shape image of the target skeleton object |
private java.lang.String |
skeletonfilename
the path to the skeleton image of the target skeleton object |
private SkeletonObject |
so
the target object |
| Constructor Summary | |
|---|---|
SimilaritySearchResult()
|
|
| Method Summary | |
|---|---|
int |
compareTo(SimilaritySearchResult o)
Implementation of Comparable's compareTo. |
java.lang.String |
getCategory()
get the category of the target skeleton object. |
MatchList |
getCl()
get the found correspondences in the two skeleton objects, i.e. |
double |
getCosts()
Get the total costs to match the two skeleton objects. |
java.lang.String |
getShapefilename()
get the path to the shape image of the target skeleton object |
java.lang.String |
getSkeletonfilename()
get the path to the skeleton image of the target skeleton object |
SkeletonObject |
getSo()
Get the target skeleton object. |
void |
setCategory(java.lang.String category)
set the category of the target skeleton object. |
void |
setCl(MatchList cl)
set the found correspondences in the two skeleton objects, i.e. |
void |
setCosts(double costs)
set the total costs to match the two skeleton objects |
void |
setShapefilename(java.lang.String shapefilename)
set the path to the shape image of the target skeleton object |
void |
setSkeletonfilename(java.lang.String objectfilename)
set the path to the skeleton image of the target skeleton object |
void |
setSo(SkeletonObject so)
Set the target skeleton object |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private SkeletonObject so
private double costs
private java.lang.String shapefilename
private java.lang.String skeletonfilename
private java.lang.String category
private MatchList cl
| Constructor Detail |
|---|
public SimilaritySearchResult()
| Method Detail |
|---|
public MatchList getCl()
public void setCl(MatchList cl)
cl - - a list of all correspondencespublic SkeletonObject getSo()
public void setSo(SkeletonObject so)
so - - the target skeleton objectpublic double getCosts()
public void setCosts(double costs)
costs - - the total costs for the matching between the query and the
target skeletonpublic java.lang.String getShapefilename()
public void setShapefilename(java.lang.String shapefilename)
shapefilename - - the path to the shape imagepublic java.lang.String getSkeletonfilename()
public void setSkeletonfilename(java.lang.String objectfilename)
objectfilename - - the path to the skeleton imagepublic java.lang.String getCategory()
public void setCategory(java.lang.String category)
category - - the target skeleton object's categorypublic int compareTo(SimilaritySearchResult o)
Comparable's compareTo. A
SimilaritySearchResult is smaller than another one, if its
matching costs are smaller. It is bigger, if its matching costs are
bigger, and they are equal, if their costs are equal.
compareTo in interface java.lang.Comparable<SimilaritySearchResult>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||