Main Page   Packages   Class Hierarchy   Compound List   File List   Compound Members  

meapsoft.ChunkDist Class Reference

Inheritance diagram for meapsoft.ChunkDist:

Inheritance graph
[legend]
Collaboration diagram for meapsoft.ChunkDist:

Collaboration graph
[legend]
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.

Author:
Mike Mandel ([email protected]) , Ron Weiss ([email protected])

Definition at line 37 of file ChunkDist.java.

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 ChunkDist.java.


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