RePast
v. 2.0

uchicago.src.sim.space
Class AbstractNeighborhooder

java.lang.Object
  |
  +--uchicago.src.sim.space.AbstractNeighborhooder
All Implemented Interfaces:
Neighborhooder
Direct Known Subclasses:
HexMultiNeighborhooder, HexNeighborhooder, MooreMultiNeighborhooder, MooreNeighborhooder, VNMultiNeighborhooder, VNNeighborhooder

public abstract class AbstractNeighborhooder
extends Object
implements Neighborhooder


Field Summary
protected  Comparator comparator
           
protected  Discrete2DSpace space
           
protected  boolean torus
           
 
Constructor Summary
AbstractNeighborhooder(Discrete2DSpace space)
           
 
Method Summary
protected  Vector compareMax(Vector v)
           
protected  Vector compareMin(Vector v)
           
 Vector findMaximum(int x, int y, int[] range, boolean includeOrigin)
           
 Vector findMinimum(int x, int y, int[] range, boolean includeOrigin)
           
 void setComparator(Comparator c)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface uchicago.src.sim.space.Neighborhooder
getNeighbors
 

Field Detail

comparator

protected Comparator comparator

space

protected Discrete2DSpace space

torus

protected boolean torus
Constructor Detail

AbstractNeighborhooder

public AbstractNeighborhooder(Discrete2DSpace space)
Method Detail

setComparator

public void setComparator(Comparator c)
Specified by:
setComparator in interface Neighborhooder

findMaximum

public Vector findMaximum(int x,
                          int y,
                          int[] range,
                          boolean includeOrigin)
Specified by:
findMaximum in interface Neighborhooder

findMinimum

public Vector findMinimum(int x,
                          int y,
                          int[] range,
                          boolean includeOrigin)
Specified by:
findMinimum in interface Neighborhooder

compareMax

protected Vector compareMax(Vector v)

compareMin

protected Vector compareMin(Vector v)

RePast
v. 2.0

Bug reports and feature requests to RePast