public class ScaffoldExtensionBuilder extends Object implements Serializable
Constructor and Description |
---|
ScaffoldExtensionBuilder(RgFrag frag)
Construct.
|
Modifier and Type | Method and Description |
---|---|
ScaffoldExtension |
build(int firstR)
Build scaffold extension.
|
ScaffoldExtensionBuilder |
clone()
Clone.
|
com.chemaxon.calculations.sc.util.IntListSet |
getSelecteds()
Get current state of selection.
|
boolean |
isKeep(int atomIndex)
Check if an atom is set to be kept.
|
boolean |
isTerminal()
Check if the current state is a terminal extension.
|
void |
keepAtom(int atomIndex)
Designate a fragment atom to keep.
|
void |
keepAtoms(Iterable<Integer> atoms)
Designate multiple fragment atoms to keep.
|
com.chemaxon.calculations.sc.util.IntListSet |
selectedsWithMultipleUnselectedLigands()
List selected atoms resulting in forbidden configuration.
|
String |
toString() |
public ScaffoldExtensionBuilder(RgFrag frag)
frag
- Underlying fragmentpublic void keepAtom(int atomIndex)
atomIndex
- Atom indexIllegalArgumentException
- When the given atom is an attachment pseudo atompublic void keepAtoms(Iterable<Integer> atoms)
atoms
- Atoms to keep indexIllegalArgumentException
- When the given atom is an attachment pseudo atompublic boolean isTerminal()
public boolean isKeep(int atomIndex)
atomIndex
- Atom indexkeepAtom(int)
;public com.chemaxon.calculations.sc.util.IntListSet selectedsWithMultipleUnselectedLigands()
public ScaffoldExtensionBuilder clone()
public ScaffoldExtension build(int firstR)
firstR
- First R attachment index to useIllegalStateException
- in case of consistency error, like empty structure or not attached substructurepublic com.chemaxon.calculations.sc.util.IntListSet getSelecteds()