A
- public class PairRule<A> extends AbstractPriorityRule<A>
PriorityRule.Type
Constructor and Description |
---|
PairRule(DescriptorAccessor<A> accessor)
Construct a pair rule with a given accessor.
|
Modifier and Type | Method and Description |
---|---|
int |
compare(Ligand<A> o1,
Ligand<A> o2)
Compares the two ligands based on their generated descriptor pairs.
|
protected java.util.NavigableSet<DescriptorList> |
generate(Ligand<A> ligand)
Generates a set of descriptor lists that maintain the like/unlike pairing
whilst descriptors are added.
|
protected java.util.NavigableSet<DescriptorList> |
generate(java.util.Queue<Ligand<A>> queue)
Generates a set of descriptor lists that maintain the like/unlike pairing
whilst descriptors are added.
|
int |
recursiveCompare(Ligand<A> o1,
Ligand<A> o2) |
compare, compareLigands, getRuleType, getSorter, getType, isHalted, prioritise, setHalt, setSorter
public PairRule(DescriptorAccessor<A> accessor)
accessor
- access to a descriptor on a ligandprotected java.util.NavigableSet<DescriptorList> generate(Ligand<A> ligand)
ligand
- the ligand on which to generate the descriptor lists forpublic int recursiveCompare(Ligand<A> o1, Ligand<A> o2)
recursiveCompare
in interface PriorityRule<A>
recursiveCompare
in class AbstractPriorityRule<A>
o1
- o2
- protected java.util.NavigableSet<DescriptorList> generate(java.util.Queue<Ligand<A>> queue)
queue
- a queue of ligands for which to get descriptors and expand