Package repast.simphony.valueLayer
Class DenseValueLayerStore
java.lang.Object
repast.simphony.valueLayer.DenseValueLayerStore
- All Implemented Interfaces:
ValueLayerStore
Value layer store implementation backed by a dense array.
- Author:
- Eric Tatatara
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDenseValueLayerStore(int size) DenseValueLayerStore(int size, double defaultValue) -
Method Summary
-
Field Details
-
array
protected double[] array
-
-
Constructor Details
-
DenseValueLayerStore
public DenseValueLayerStore(int size) -
DenseValueLayerStore
public DenseValueLayerStore(int size, double defaultValue)
-
-
Method Details
-
get
public double get(long index) Description copied from interface:ValueLayerStoreGet the double value for the specified index.- Specified by:
getin interfaceValueLayerStore- Returns:
-
set
public void set(long index, double value) Description copied from interface:ValueLayerStoreSet the double value for the specified index.- Specified by:
setin interfaceValueLayerStore
-
size
public int size()- Specified by:
sizein interfaceValueLayerStore
-