Main Page   Packages   Class Hierarchy   Compound List   File List   Compound Members  

meapsoft.ChunkDist Class Reference

Inheritance diagram for meapsoft.ChunkDist:

Inheritance graph
Collaboration diagram for meapsoft.ChunkDist:

Collaboration graph
List of all members.

Detailed Description

A way to measure the distance between two chunks.

Constructor can accept another ChunkDist, which will be added to the first distance, so that distance measures can be chained together.

Mike Mandel ( , Ron Weiss (

Definition at line 37 of file

Public Methods

double distance (Chunk c1, Chunk c2)
 Compute distance between two Chunks.

void setTarget (Chunk t)
 Set target chunk for compare function to use.

int compare (Object o1, Object o2) throws ClassCastException
 Compare two Chunk's based on their distances from targetChunk.

Member Function Documentation

void meapsoft.ChunkDist.setTarget Chunk    t [inline]

Set target chunk for compare function to use.

This needs to be called before compare() is called or there will be NullPointerExceptions.

Definition at line 82 of file

The documentation for this class was generated from the following file:
Generated on Tue Feb 6 19:02:28 2007 for MEAPsoft by doxygen1.2.18