Packages

package cache

Type Members

  1. abstract class Cache extends Shrinkable[Element[_]]

    Abstract class to manage caching of element generation for a universe.

    Abstract class to manage caching of element generation for a universe. This class can be used by algorithms to manage caching of chains.

  2. class MHCache extends Cache

    A class which implements caching for caching and non-caching chains, specifically designed for MH

    A class which implements caching for caching and non-caching chains, specifically designed for MH

    For caching chains, the result of the Chain's function is cached for each value of the parent element that is queried. This cache is infinitely large.

    For non-caching chains, we only "cache" two resulting elements of the chain. The cache is actually a 2-element stack, where the top of the stack represents the most recent element for the chain, and the bottom of the stack represents the last element (and parent value) used. This is primarily to benefit MH; if a proposal is rejected, we want to switch a chain back to where it was without much overhead.

  3. class NoCache extends Cache

    A Cache class which performs no caching

  4. class PermanentCache extends Cache

    A class which only caches permanent result elements in chain.

    A class which only caches permanent result elements in chain. This class does not cache any non-caching chain result elements. Since this class does not implement any element cleanup operations, it is best used in an algorithm that clears temporary elements periodically.

Ungrouped