Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## baseCode.common
Class Distanceable

    java.lang.Object
      baseCode.common.Visitable
          baseCode.common.Distanceable

All Implemented Interfaces:
  java.lang.Comparable

Direct Known Subclasses:
  Cluster

public abstract class Distanceable
extends Visitable

An object whose distance to other objects can be measured. It is up to the implementer to determine that the two objects being compared are of the same type.

Copyright (c) 2004 Columbia University

Version:
  $Id: Distanceable.java,v 1.2 2004/08/02 15:03:43 pavlidis Exp $
Author:
  pavlidis

Constructor Summary
`Distanceable()`

Method Summary
`abstract double` | `distanceTo(Distanceable a)`
`abstract java.util.Collection` | `toCollection()` Return a collections view of the object.

Methods inherited from class baseCode.common.Visitable
`isVisited, mark, unMark`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Methods inherited from interface java.lang.Comparable
`compareTo`

Constructor Detail

### Distanceable

    public Distanceable()

Method Detail

### distanceTo

    public abstract double distanceTo(Distanceable a)

  Parameters:
    `a` -
  Returns:

### toCollection

    public abstract java.util.Collection toCollection()

  Return a collections view of the object. The implementer has to make sure the Collection is of Distanceables.

  Returns:
    @todo not very elegant...

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2003-2005 Columbia University. All Rights Reserved.