Class SparseValueLayerStore

java.lang.Object
repast.simphony.valueLayer.SparseValueLayerStore
All Implemented Interfaces:
ValueLayerStore

public class SparseValueLayerStore extends Object implements ValueLayerStore
Value layer store backed by a sparse map.
Author:
Eric Tatara
  • Field Details

  • Constructor Details

    • SparseValueLayerStore

      public SparseValueLayerStore(int size, double defaultValue)
  • Method Details

    • get

      public double get(long index)
      Description copied from interface: ValueLayerStore
      Get the double value for the specified index.
      Specified by:
      get in interface ValueLayerStore
      Returns:
    • set

      public void set(long index, double value)
      Description copied from interface: ValueLayerStore
      Set the double value for the specified index.
      Specified by:
      set in interface ValueLayerStore
    • size

      public int size()
      Specified by:
      size in interface ValueLayerStore