Class NotMemory


  • public class NotMemory
    extends BetaMemory
    Node memory for not nodes.
    • Field Detail

      • mappings

        protected java.util.Map mappings
        The mappings (lefttuple -> {rightvalues}).
      • delay

        protected boolean delay
        The delay flag.
    • Constructor Detail

      • NotMemory

        public NotMemory​(IOAVState state)
        Create a new not memory.
    • Method Detail

      • addMapping

        public void addMapping​(IOAVState state,
                               Tuple key,
                               java.lang.Object value)
        Add a mapping for the key to the memory. Multiples mappings for the same key will be stored in a set.
      • removeMapping

        public boolean removeMapping​(Tuple key,
                                     java.lang.Object value)
        Remove a mapping for the key from the memory. The value will be stored in a set.
      • removeMappings

        public void removeMappings​(Tuple key)
        Remove all mappings of the tuple from memory
      • getMappings

        public java.util.Set getMappings​(Tuple key)
        Get the mappings for a given key.
      • size

        public int size()
        Get the size of the memory.
        Overrides:
        size in class BetaMemory
        Returns:
        The size.
      • setDelay

        public void setDelay​(boolean delay)
        Set the delay flag.
      • isDelay

        public boolean isDelay()
        Get the delay flag.
      • toString

        public java.lang.String toString()
        Get the string representation.
        Overrides:
        toString in class BetaMemory
        Returns:
        The string representation.