|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectit.unimo.dbgroup.momis.tools.Distance
Generic class to handle the distance between two objects
Used to handle with generic weighted graphs and trees of Objects
| Field Summary | |
private double |
_distance
Distance between the two objects. |
private java.lang.Object |
_dst
Destintion Object. Second object involved in the distance. |
private java.lang.Object |
_src
Source Object. First object involved in the distance. |
| Constructor Summary | |
Distance(java.lang.Object src,
java.lang.Object dst,
double distance)
Reads a file and put it in a string. |
|
| Method Summary | |
double |
getDistance()
Returns the distance between the two objects |
java.lang.Object |
getDst()
Returns the destination object |
java.lang.Object |
getElementOtherThan(java.lang.Object o)
Returns the object in the distance that is not o. |
java.lang.Object |
getSrc()
Returns the source object |
java.lang.String |
toString()
String representation. |
java.lang.String |
toTreeString()
Tree String representation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private java.lang.Object _src
private java.lang.Object _dst
private double _distance
| Constructor Detail |
public Distance(java.lang.Object src,
java.lang.Object dst,
double distance)
| Method Detail |
public java.lang.Object getSrc()
public java.lang.Object getDst()
public java.lang.Object getElementOtherThan(java.lang.Object o)
public double getDistance()
public java.lang.String toString()
public java.lang.String toTreeString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||