001    package com.hammurapi.reasoning;
002    
003    import java.util.Iterator;
004    
005    /**
006     * Iterator which can be closed. 
007     * @author Pavel Vlasov
008     *
009     * @param <T>
010     */
011    public interface FactIterator<T> extends Iterator<T> {
012            
013            /**
014             * Closes iterator and releases resources held by it.
015             * @throws ReasoningException
016             */
017            void close() throws ReasoningException;
018    }