Package org.openscience.cdk.isomorphism
Class AtomMatcher
- java.lang.Object
-
- org.openscience.cdk.isomorphism.AtomMatcher
-
public abstract class AtomMatcher extends Object
Defines compatibility checking of atoms for (subgraph)-isomorphism mapping.- Author:
- John May
- Belongs to CDK module:
- isomorphism
-
-
Constructor Summary
Constructors Constructor Description AtomMatcher()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static AtomMatcher
forAny()
Atoms are always compatible.static AtomMatcher
forElement()
Atoms are compatible if they are the same element.static AtomMatcher
forQuery()
abstract boolean
matches(IAtom atom1, IAtom atom2)
Are the semantics ofatom1
compatible withatom2
.
-
-
-
Method Detail
-
matches
public abstract boolean matches(IAtom atom1, IAtom atom2)
Are the semantics ofatom1
compatible withatom2
.- Parameters:
atom1
- an atom from a query containeratom2
- an atom from the target container- Returns:
- the atom1 can be paired with atom2
-
forAny
public static AtomMatcher forAny()
Atoms are always compatible.- Returns:
- a matcher for which all atoms match
-
forElement
public static AtomMatcher forElement()
Atoms are compatible if they are the same element.- Returns:
- a matcher which checks element compatibility
-
forQuery
public static AtomMatcher forQuery()
- Returns:
- a matcher which checks query atom compatibility
-
-