Class StateCache


  • public class StateCache
    extends java.lang.Object
    the basic building block for the stateless desing using
    the StateStructure class. A StateCache represents a size,
    a unique id, and a unique name, when inserted into the StateStructure.
    The size will allocate "size"-doubles in State objects originating from the
    StateStructure.
    • Constructor Summary

      Constructors 
      Constructor Description
      StateCache​(long cPtr, boolean cMemoryOwn)  
    • Constructor Detail

      • StateCache

        public StateCache​(long cPtr,
                          boolean cMemoryOwn)
    • Method Detail

      • getCPtr

        public static long getCPtr​(StateCache obj)
      • delete

        public void delete()
      • size

        public long size()
        The number of doubles allocated by this StateCache in
        each State object.

        Returns:
        The number of doubles allocated by the StateCache
      • clone

        public StateCachePtr clone()
        this creates a deep copy of this cache