Class PureMatchIteratorImpl
java.lang.Object
org.bigraphs.framework.simulation.matching.pure.PureMatchIteratorImpl
- All Implemented Interfaces:
Iterator<PureBigraphParametricMatch>
- Direct Known Subclasses:
PureMatchIteratorImpl.FirstMatchOnly
Iterator implementation for bigraph matching.
This iterator is created by the PureBigraphMatcher class.
- Author:
- Dominik Grzelak
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA Simple Constrained Matcher Implementation -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected org.eclipse.collections.api.list.MutableList<PureBigraphParametricMatch> protected PureBigraphMatchingEngine -
Method Summary
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
-
matchingEngine
-
-
Method Details
-
findMatches
protected void findMatches()The behavior offindMatchesmay vary if a subclass overrides this method to provide custom matching logic.This can be done to provide simple constraints or filters for the matches.
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceIterator<PureBigraphParametricMatch>
-
next
- Specified by:
nextin interfaceIterator<PureBigraphParametricMatch>
-