|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectalgorithm.matching.Matching
public class Matching
A data structure to hold information about the found matching in two skeletons.
No information about the skeleton nodes is known at this point, as the matching information is stored by indices in the cost matrix and by the index of this end nodes in the list of all end nodes, respectively. The relations to the nodes have to be built from the indices in the matrix afterwards.
| Field Summary | |
|---|---|
private MatchingAngles |
angles
the angle of the matching line (used for filtering) |
private double |
cost
the costs for this matching |
private int |
partner1
index of the first matching partner in the cost matrix rows |
private int |
partner2
index of the second matching partner in the cost matrix column |
| Constructor Summary | |
|---|---|
Matching(int partnerid1,
int partnerid2,
double cost)
Constructor. |
|
| Method Summary | |
|---|---|
int |
compareTo(Matching o)
|
MatchingAngles |
getAngles()
|
double |
getCost()
Get the costs for this matching. |
int |
getPartner1()
get the first partner index (as a row index in the cost matrix) |
int |
getPartner2()
get the second partner index (as a column index in the cost matrix) |
void |
setAngles(MatchingAngles angles)
|
void |
setCost(double cost)
|
void |
setPartner1(int partner1)
set the first partner index (as a row index in the cost matrix) |
void |
setPartner2(int partner2)
set the second partner index (as a column index in the cost matrix) |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private int partner1
private int partner2
private double cost
private MatchingAngles angles
| Constructor Detail |
|---|
public Matching(int partnerid1,
int partnerid2,
double cost)
partnerid1 - the index of the first matching partner in the cost matrix
rowspartnerid2 - the index of the second matching partner in the cost matrix
columnscost - | Method Detail |
|---|
public MatchingAngles getAngles()
public void setAngles(MatchingAngles angles)
angles - the angles to setpublic double getCost()
public void setPartner1(int partner1)
partner1 - the first matching partner,public int getPartner1()
public void setPartner2(int partner2)
partner2 - the second matching partner,public int getPartner2()
public void setCost(double cost)
cost - the cost to setpublic java.lang.String toString()
toString in class java.lang.Objectpublic int compareTo(Matching o)
compareTo in interface java.lang.Comparable<Matching>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||