AnyLogic
Expand
Font size
All Implemented Interfaces:
DensityMapDataStorage, Serializable

@AnyLogicInternalAPI
public class DensityMapGridDataStorage
extends AbstractDensityMapDataStorage
See Also:
Serialized Form

Constructor Summary

ConstructorDescription
DensityMapGridDataStorage(Agent owner, int xSize, int ySize, double xUpperLeft, double yUpperLeft, double cellSize, DensityMapDisplayedValue vType, DensityMapAttenuationType aType, double window, double t0) 

Method Summary

Modifier and TypeMethodDescription
doublegetCompleteValue(double x, double y, DensityMapDisplayedValue val) 
doublegetCurrentDensity(double x, double y) 
doublegetValue(int xIndex, int yIndex) 
doublegetWindowValue(double x, double y, DensityMapDisplayedValue val) 
voidinitializeDensity(int xIndex, int yIndex, double initialDensity) 
booleanisOutside(double x, double y) 
voidsetDensity(int xIndex, int yIndex, double newValue) 

Methods inherited from class com.anylogic.engine.markup.density_map.AbstractDensityMapDataStorage

getAttenuationType, getDisplayedValueType, reset, setAttenuationType, setWindow

Methods inherited from class java.lang.Object

equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Details

DensityMapGridDataStorage

public DensityMapGridDataStorage(Agent owner,
 int xSize,
 int ySize,
 double xUpperLeft,
 double yUpperLeft,
 double cellSize,
 DensityMapDisplayedValue vType,
 DensityMapAttenuationType aType,
 double window,
 double t0)

Method Details

getValue

public double getValue(int xIndex,
 int yIndex)

getCompleteValue

public double getCompleteValue(double x,
 double y,
 DensityMapDisplayedValue val)

getWindowValue

public double getWindowValue(double x,
 double y,
 DensityMapDisplayedValue val)

getCurrentDensity

public double getCurrentDensity(double x,
 double y)

initializeDensity

public void initializeDensity(int xIndex,
 int yIndex,
 double initialDensity)

isOutside

public boolean isOutside(double x,
 double y)

setDensity

public void setDensity(int xIndex,
 int yIndex,
 double newValue)