@TestClass(value="org.openscience.cdk.smsd.algorithm.vflib.VFLibTest") public class VFState extends Object implements IState
| Constructor and Description |
|---|
VFState(IQuery query,
TargetProperties target)
Initialise the VFState with query and target
|
| Modifier and Type | Method and Description |
|---|---|
void |
backTrack()
Returns this IState's atom map to its original condition.
|
Map<INode,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 VFState(IQuery query, TargetProperties target)
query - target - public void backTrack()
public Map<INode,IAtom> getMap()
public boolean hasNextCandidate()
hasNextCandidate in interface IStatepublic boolean isDead()
public boolean isGoal()
public boolean isMatchFeasible(Match match)
isMatchFeasible in interface IStatematch - the match to considerpublic Match nextCandidate()
nextCandidate in interface IState