databionics.esom.tool.similarity
Class SimilarityTool

java.lang.Object
  extended by databionics.esom.tool.AbstractTool
      extended by databionics.esom.tool.similarity.SimilarityTool
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

public class SimilarityTool
extends AbstractTool

tool for getting bestmatches from one district

Author:
Mario Noecker

Field Summary
 
Fields inherited from class databionics.esom.tool.AbstractTool
application, bottomBar, bottomTab, btnClear, btnLoad, btnPaint, btnSave, clearItm, clickMode, controlButton, creatorPanel, dataTable, dataTableModel, displayPanel, dragMode, drawing, fileMenu, filename, gui, loader, loadItm, log, moveCallback, pnlControl, polygonMode, popMenu, removeItm, renderer, renderPanel, saveItm, toolBar, toolRenderer
 
Constructor Summary
SimilarityTool(boolean gui, Application application)
           
 
Method Summary
static cern.colt.list.IntArrayList getFriends(RectangularGrid grid, BMFile bms, int x, int y, int elements)
          returns n-bms with shortest distance to given bm
static cern.colt.list.IntArrayList getNearestOnMap(RectangularGrid grid, BMFile bms, int xpos, int ypos, int elements)
          returns n-bms with shortest u-way to given bm
static cern.colt.list.IntArrayList getNeighbours(RectangularGrid grid, BMFile bms, int xpos, int ypos, int elements)
          returns n-bms in the neighborhood of given bm
 java.lang.String getShortTitle()
           
 void init()
          Initialize what needs to be Initialized.
 void reset()
          reset the tool.
 
Methods inherited from class databionics.esom.tool.AbstractTool
actionPerformed, callback, getApplication, getBottomTab, getCallback, getControlButton, getCreatorPanel, getDataTable, getDataTableModel, getDisplayPanel, getFileMenu, getFilename, getLoader, getMessage, getMoveCallback, getPnlControl, getPopMenu, getRenderer, getToolBar, getToolRenderer, initGui, isClickMode, isDragMode, isDrawing, isGui, isPolygonMode, moveSelection, reAreas, reColorize, reDraw, reFore, reMask, rePostFore, rePreFore, reRender, reTile, reZoom, select, setApplication, setBottomTab, setCallback, setClickMode, setControlButton, setCreatorPanel, setCtrlAccelerator, setDataTable, setDataTableModel, setDisplayPanel, setDragMode, setDrawing, setFilename, setLoader, setMoveCallback, setPolygonMode, setRenderer, setToolBar, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimilarityTool

public SimilarityTool(boolean gui,
                      Application application)
Parameters:
gui -
application -
Method Detail

getNearestOnMap

public static cern.colt.list.IntArrayList getNearestOnMap(RectangularGrid grid,
                                                          BMFile bms,
                                                          int xpos,
                                                          int ypos,
                                                          int elements)
returns n-bms with shortest u-way to given bm

Parameters:
grid -
bms -
xpos -
ypos -
elements -
Returns:

getNeighbours

public static cern.colt.list.IntArrayList getNeighbours(RectangularGrid grid,
                                                        BMFile bms,
                                                        int xpos,
                                                        int ypos,
                                                        int elements)
returns n-bms in the neighborhood of given bm

Parameters:
grid -
bms -
xpos -
ypos -
elements -
Returns:

getFriends

public static cern.colt.list.IntArrayList getFriends(RectangularGrid grid,
                                                     BMFile bms,
                                                     int x,
                                                     int y,
                                                     int elements)
returns n-bms with shortest distance to given bm

Parameters:
grid -
bms -
x -
y -
elements -
distanceFunction -
Returns:

init

public void init()
Description copied from class: AbstractTool
Initialize what needs to be Initialized.

Specified by:
init in class AbstractTool

reset

public void reset()
Description copied from class: AbstractTool
reset the tool.

Specified by:
reset in class AbstractTool

getShortTitle

public java.lang.String getShortTitle()
Specified by:
getShortTitle in class AbstractTool


Copyright © 2005-2006 Databionics Research Group. All Rights Reserved.