edu.gmu.dparker3.sludge
Class SpatialAttributes

java.lang.Object
  extended byedu.gmu.dparker3.sludge.SpatialAttributes

public class SpatialAttributes
extends java.lang.Object

SpatialAttributes class define spatial relationships, such as distance to market as well as neighborhood effects for now there is only one land market, presumably there could be more later...

Version:
1.0
Author:
Robert Najlis

Field Summary
private  int DEFAULT_DISTANCE_TYPE
           
private  int DEFAULT_NEIGHBORHOOD_SIZE
           
private  int distanceType
           
private  int landMarketX
           
private  int landMarketY
           
 
Constructor Summary
SpatialAttributes()
           
 
Method Summary
 double calcDistanceToMarket(LandCell c, int type)
           
 double calcEuclidianDistanceToMarket(LandCell c, int type)
           
 java.util.ArrayList getNeighbors(LandCell lc, uchicago.src.sim.space.Object2DGrid landscape)
           
 java.util.ArrayList getNeighborsBlock(LandCell lc, uchicago.src.sim.space.Object2DGrid landscape)
           
 void setLandMarketXY(int x, int y)
           
 void setLandMarketXY(int x, int y, int distanceType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

landMarketX

private int landMarketX

landMarketY

private int landMarketY

distanceType

private int distanceType

DEFAULT_DISTANCE_TYPE

private int DEFAULT_DISTANCE_TYPE

DEFAULT_NEIGHBORHOOD_SIZE

private int DEFAULT_NEIGHBORHOOD_SIZE
Constructor Detail

SpatialAttributes

public SpatialAttributes()
Method Detail

setLandMarketXY

public void setLandMarketXY(int x,
                            int y)

setLandMarketXY

public void setLandMarketXY(int x,
                            int y,
                            int distanceType)

calcDistanceToMarket

public double calcDistanceToMarket(LandCell c,
                                   int type)

calcEuclidianDistanceToMarket

public double calcEuclidianDistanceToMarket(LandCell c,
                                            int type)

getNeighbors

public java.util.ArrayList getNeighbors(LandCell lc,
                                        uchicago.src.sim.space.Object2DGrid landscape)

getNeighborsBlock

public java.util.ArrayList getNeighborsBlock(LandCell lc,
                                             uchicago.src.sim.space.Object2DGrid landscape)