java.lang.Object
org.bigraphs.framework.simulation.matching.AbstractBigraphMatchIterator<B>
- Type Parameters:
B- type of the bigraph
- All Implemented Interfaces:
Iterator<BigraphMatch<B>>
- Direct Known Subclasses:
AbstractBigraphMatchIterator.FirstMatchOnly,PureMatchIteratorImpl
public abstract class AbstractBigraphMatchIterator<B extends Bigraph<? extends Signature<?>>>
extends Object
implements Iterator<BigraphMatch<B>>
- Author:
- Dominik Grzelak
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAbstractBigraphMatchIterator.FirstMatchOnly<B extends Bigraph<? extends Signature<?>>>A Simple Constrained Matcher Implementation -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected org.eclipse.collections.api.list.MutableList<BigraphMatch<B>> protected BigraphMatchingEngine<B> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <B extends Bigraph<? extends Signature<?>>>
AbstractBigraphMatchIterator<B> create(BigraphMatchingEngine<B> engine) protected abstract voidload matches (or compute lazily)booleanhasNext()next()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Field Details
-
cursor
protected int cursor -
matches
protected org.eclipse.collections.api.list.MutableList<BigraphMatch<B extends Bigraph<? extends Signature<?>>>> matches -
matchingEngine
-
-
Constructor Details
-
AbstractBigraphMatchIterator
-
-
Method Details
-
create
public static <B extends Bigraph<? extends Signature<?>>> AbstractBigraphMatchIterator<B> create(BigraphMatchingEngine<B> engine) -
findMatches
protected abstract void findMatches()load matches (or compute lazily) -
hasNext
public boolean hasNext() -
next
-