Enum Class MemoryScope

java.lang.Object
java.lang.Enum<MemoryScope>
org.evrete.api.spi.MemoryScope
All Implemented Interfaces:
Serializable, Comparable<MemoryScope>, Constable

public enum MemoryScope extends Enum<MemoryScope>
Defines memory scopes for use with instances of ReteMemory and provides utilities for iterating over state combinations based on these scopes.
See Also:
  • Enum Constant Details

    • MAIN

      public static final MemoryScope MAIN
      Identifies main memory
    • DELTA

      public static final MemoryScope DELTA
      Identifies delta memory
  • Method Details

    • values

      public static MemoryScope[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MemoryScope valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • states

      public static Iterator<MemoryScope[]> states(MemoryScope scope, MemoryScope[] sharedResult)
      Returns all state combinations depending on the provided scope. An array of MemoryScope is considered as a delta state if at least one value inside the array is DELTA
      Parameters:
      sharedResult - shared array for the iteration results
      See Also:
      • containsDelta(MemoryScope[])