Interface FactStorage<T>

All Superinterfaces:
Iterable<FactStorage.Entry<T>>, ReIterable<FactStorage.Entry<T>>

public interface FactStorage<T>
extends ReIterable<FactStorage.Entry<T>>
  • Method Details

    • insert

      FactHandle insert​(T fact)

      Creates and returns new FactHandle for each inserted fact. The contract is that the implementation must return null if object is already known and not deleted.

      Parameters:
      fact - the fact being inserted in the working memory
      Returns:
      null if object has been already inserted or a new FactHandle otherwise
    • delete

      void delete​(FactHandle handle)
    • update

      void update​(FactHandle handle, T newInstance)
    • getFact

      T getFact​(FactHandle handle)
    • clear

      void clear()