com.haley.haleyrules
Interface ObjectIterator

All Superinterfaces:
KnowledgeBaseObject, WorkingMemoryObject

public interface ObjectIterator
extends WorkingMemoryObject

Provides an iterator over the objects asserted into a WorkingMemory

See Also:
WorkingMemory.assertOrUpdate(Object)

Method Summary
 boolean hasNext()
          Whether or not the iterator has more objects
 java.lang.Object next()
          Gets the next object in the iterator
 
Methods inherited from interface com.haley.haleyrules.WorkingMemoryObject
getWorkingMemory
 
Methods inherited from interface com.haley.haleyrules.KnowledgeBaseObject
getKnowledgeBase, release
 

Method Detail

hasNext

public boolean hasNext()
                throws EclipseException
Whether or not the iterator has more objects

Returns:
true if the iterator has more object; false otherwise
Throws:
EclipseException - on error

next

public java.lang.Object next()
                      throws EclipseException
Gets the next object in the iterator

Returns:
the next object in the iterator
Throws:
EclipseException - on error, such as no more object in the iteration.


Copyright © 1998-2006 Haley Systems, Inc. All Rights Reserved.