public abstract class SiblingFinder extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SiblingFinder.SetPartnerFinder
Trivial and inefficient implementation, that has no indexing and simply
returns all previous seen states as possible partners.
|
Constructor and Description |
---|
SiblingFinder(int arity)
Creates a new sibling finder for an operation with given arity.
|
Modifier and Type | Method and Description |
---|---|
void |
addState(int stateID,
int pos)
Adds a state to the indexing structure, making it available for future
calls to
getPartners . |
abstract Iterable<int[]> |
getPartners(int stateID,
int pos)
Returns the possible stored siblings (ie other children) for a given state.
|
public SiblingFinder(int arity)
arity
- public abstract Iterable<int[]> getPartners(int stateID, int pos)
stateID
- the state for which to find partnerspos
- the desired position of state in the argumentspublic void addState(int stateID, int pos)
getPartners
.stateID
- pos
- Copyright © 2017. All rights reserved.