Constructor and Description |
---|
VFMCSState(IQuery query,
org.openscience.cdk.interfaces.IAtomContainer target)
initialize the VFState with query and target
|
Modifier and Type | Method and Description |
---|---|
void |
backTrack()
Returns this IState's atom map to its original condition.
|
java.util.Map<INode,org.openscience.cdk.interfaces.IAtom> |
getMap()
Returns the current mapping of query atoms onto target atoms.
|
boolean |
hasNextCandidate()
Returns true if another candidate match can be found or
false otherwise.
|
boolean |
isDead()
Returns true if no match will come from this IState.
|
boolean |
isGoal()
Returns true if all atoms in the query molecule have been
mapped.
|
boolean |
isMatchFeasible(Match match)
Returns true if the given match will work with the current
map, or false otherwise.
|
Match |
nextCandidate()
Returns the next candidate match.
|
IState |
nextState(Match match)
Returns a state in which the atoms in match have been
added to the current mapping.
|
public VFMCSState(IQuery query, org.openscience.cdk.interfaces.IAtomContainer target)
query
- target
- public void backTrack()
public java.util.Map<INode,org.openscience.cdk.interfaces.IAtom> getMap()
public boolean hasNextCandidate()
hasNextCandidate
in interface IState
public boolean isDead()
public boolean isGoal()
public boolean isMatchFeasible(Match match)
isMatchFeasible
in interface IState
match
- the match to considerpublic Match nextCandidate()
nextCandidate
in interface IState