edu.gmu.dparker3.sludge
Class SpatialAttributes
java.lang.Object
edu.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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
SpatialAttributes
public SpatialAttributes()
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)