Package org.openscience.cdk.isomorphism
Class AtomMatcher
java.lang.Object
org.openscience.cdk.isomorphism.AtomMatcher
Defines compatibility checking of atoms for (subgraph)-isomorphism mapping.
- Author:
- John May
- Belongs to CDK module:
- isomorphism
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AtomMatcher
forAny()
Atoms are always compatible.static AtomMatcher
Atoms are compatible if they are the same element.static AtomMatcher
forQuery()
abstract boolean
Are the semantics ofatom1
compatible withatom2
.
-
Constructor Details
-
AtomMatcher
public AtomMatcher()
-
-
Method Details
-
matches
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
Atoms are always compatible.- Returns:
- a matcher for which all atoms match
-
forElement
Atoms are compatible if they are the same element.- Returns:
- a matcher which checks element compatibility
-
forQuery
- Returns:
- a matcher which checks query atom compatibility
-