movingregion
Class OverlapGraphEdge

java.lang.Object
  |
  +--movingregion.OverlapGraphEdge
All Implemented Interfaces:
java.lang.Comparable

public class OverlapGraphEdge
extends java.lang.Object
implements java.lang.Comparable

This class represents an edge in the overlap graph. The overlap graph is a collection of edges between convex hull tree nodes on the same level of two convex hull trees. One edge represents the fact that the first node overlaps the second. Overlap graph edges do not have their own constructor. They are created as a result of function calls in ConvexHullTreeNode


Field Summary
 double overlap
           
 ConvexHullTreeNode overlapswith
           
 
Constructor Summary
OverlapGraphEdge()
           
 
Method Summary
 int compareTo(java.lang.Object o)
          This function compares two overlap graph edges with respect to how high the overlap is.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

overlap

public double overlap

overlapswith

public ConvexHullTreeNode overlapswith
Constructor Detail

OverlapGraphEdge

public OverlapGraphEdge()
Method Detail

compareTo

public int compareTo(java.lang.Object o)
This function compares two overlap graph edges with respect to how high the overlap is. It is the implementation of the comparable interface.
Specified by:
compareTo in interface java.lang.Comparable
Parameters:
o - The object to compare this object to.
Returns:
-1 if this object is smaller, 0 if the two are equal and 1 if this object is larger.