|
The Octet Molecular Representation Framework v0.8.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.octet.query.UnilateralQueryStrategy
A MoleculeQueryStrategy that is consistent with substructure searches.
UnilateralQueryStrategy requires only that a feature that is present in an
input Molecule also be present in a model Molecule. In other
words, a match will be found if a model Molecule has additional features
that do not map to an input Molecule.
| Nested Class Summary |
| Nested classes inherited from class net.sf.octet.traversal.IsomorphismTraverser |
IsomorphismTraverser.Handler |
| Constructor Summary | |
UnilateralQueryStrategy()
Constructs a fully-functional UnilateralQueryStrategy. |
|
UnilateralQueryStrategy(IsomorphismTraverser traverser)
Constructs a fully-functional UnilateralQueryStrategy
that delegates traversal operations to traverser. |
|
| Method Summary | |
boolean |
compare(Configuration input,
Configuration model,
AtomMap map)
Compares input with model using map to
correlate Atoms between the two. |
boolean |
compare(Conformation input,
Conformation model,
AtomMap map)
Compares input to model, using the specified AtomMap
to correlate Atoms between the two. |
AtomQuery |
createAtomQuery(Atom atom,
Molecule molecule)
Creates an AtomQuery for atom in the context
of molecule. |
void |
traverse(AtomGraph input,
AtomGraph model,
IsomorphismTraverser.Handler handler)
Traverses the Atoms and AtomPairs in model
that are isomorphic with those contained in input while
forwarding traversal events to handler. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public UnilateralQueryStrategy()
UnilateralQueryStrategy.
public UnilateralQueryStrategy(IsomorphismTraverser traverser)
UnilateralQueryStrategy
that delegates traversal operations to traverser.
traverser - the IsomorphismTraverser to which traversal operations
will be delegated| Method Detail |
public AtomQuery createAtomQuery(Atom atom,
Molecule molecule)
MoleculeQueryStrategyAtomQuery for atom in the context
of molecule.
createAtomQuery in interface MoleculeQueryStrategyatom - the atom after which the AtomQuery will be modeledmolecule - the context of atom
public boolean compare(Configuration input,
Configuration model,
AtomMap map)
ConfigurationComparatorinput with model using map to
correlate Atoms between the two. Returns true if
commonality was detected, or false otherwise.
compare in interface ConfigurationComparatorinput - the Configuration whose features will be compared with those of model
using mapmodel - the reference Configurationmap - the mapping of the atoms of input onto map
public boolean compare(Conformation input,
Conformation model,
AtomMap map)
ConformationComparatorinput to model, using the specified AtomMap
to correlate Atoms between the two. Returns true if a match
was detected, or false otherwise.
compare in interface ConformationComparatorinput - the Conformation whose features will be compared with those of model
using mapmodel - the reference Conformationmap - the mapping of the atoms of input onto map
public void traverse(AtomGraph input,
AtomGraph model,
IsomorphismTraverser.Handler handler)
IsomorphismTraverserAtoms and AtomPairs in model
that are isomorphic with those contained in input while
forwarding traversal events to handler.
traverse in interface IsomorphismTraverserinput - the AtomGraph whose elements will be compared to modelmodel - the AtomGraph whose elements that are isomorphic to
model will be traversedhandler - receives traversal events
|
The Octet Molecular Representation Framework v0.8.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||