A
- public class DescriptorRule<A> extends AbstractPriorityRule<A>
DescriptorAccessor
. The rule type will default to Descriptor.Type#ASYMMETRIC
but can also be configured for R>S rules. The ranking is achieved by assigning each
descriptor a value 1 .. n. If a given descriptor is not found in the ranking is assign rank 0.PriorityRule.Type
Constructor and Description |
---|
DescriptorRule(Descriptor.Type type,
PriorityRule.Type ordering,
DescriptorAccessor<A> accessor,
Descriptor... descriptors)
Create an rule with a provided rule type, accessor and given ligand order.
|
DescriptorRule(DescriptorAccessor<A> accessor,
PriorityRule.Type ordering,
Descriptor... descriptors)
Create an
Descriptor.Type#ASYMMETRIC rule with a provided accessor and given ligand order. |
Modifier and Type | Method and Description |
---|---|
int |
compare(Ligand<A> o1,
Ligand<A> o2)
Compares ligands on the rank of their descriptors.
|
compare, compareLigands, getRuleType, getSorter, getType, isHalted, prioritise, recursiveCompare, setHalt, setSorter
public DescriptorRule(DescriptorAccessor<A> accessor, PriorityRule.Type ordering, Descriptor... descriptors)
Descriptor.Type#ASYMMETRIC
rule with a provided accessor and given ligand order. Ligand order
preceedes that the higher index number the higher the priority.accessor
- a DescriptorAccessor
for a descriptor labelordering
- descriptors
- ranking of descriptors low .. high prioritypublic DescriptorRule(Descriptor.Type type, PriorityRule.Type ordering, DescriptorAccessor<A> accessor, Descriptor... descriptors)
type
- the type of priority ruleordering
- accessor
- a DescriptorAccessor
for a descriptor labeldescriptors
- ranking of descriptors low .. high priority