Package chemaxon.struc
Interface RgMoleculeGraph
- All Known Implementing Classes:
RgMolecule
R-group container interface.
This interface is for internal use only, please do not implement it!
- Since:
- Marvin 4.1, 11/24/2005
-
Method Summary
Modifier and TypeMethodDescriptionvoidcleanupRemovedRgroupMember(MoleculeGraph m, int f) Clean-up after R-group removal.intfindRgroupIndex(int rgid) Finds R-group R#.intGets the number of R-groups.getRgroupDisplayLabel(int rgroupIndex) Returns the display label of an R-group.intgetRgroupId(int i) Gets the ID of an R-group.intgetRgroupId(RgroupBridgeId bridgeId) Returns the ID of the ordinary R-group that actually represents the given R-group bridge.default intgetRgroupIndex(int rgid) Finds R-group R#.default intgetRgroupIndexFromMemberId(long id) Gets the R-group index from the R-group member ID.intgetRgroupMemberCount(int i) Gets the number of R-group members.getRgroupMemberG(int i, int j) Gets an R-group member.longgetRgroupMemberId(MolAtom node) Gets the unique indentifier of the R-group member that contains the specified atom.default intgetRgroupMemberIndexFromMemberId(long id) Gets the R-group member index from the R-group member ID.intgetRlogic(int i) Gets R-logic flags.getRlogicRange(int i) Gets R-logic occurrence range.getRootG()Gets the root structure.intrgroupIdOf(MolAtom node) Finds the ID of the R-group (the number in R#) that contains the specified atom.intrgroupIndexOf(MolAtom node) Finds the index of the R-group (the number in R#) that contains the specified atom.
-
Method Details
-
getRootG
MoleculeGraph getRootG()Gets the root structure.- Returns:
- the root structure
-
getRgroupCount
int getRgroupCount()Gets the number of R-groups.- Returns:
- number of R-groups
-
getRgroupMemberCount
int getRgroupMemberCount(int i) Gets the number of R-group members.- Parameters:
i- R-group index- Returns:
- number of R-group members
-
getRgroupMemberG
Gets an R-group member.- Parameters:
i- R-group indexj- member index- Returns:
- the R-group member
-
getRgroupId
int getRgroupId(int i) Gets the ID of an R-group.- Parameters:
i- R-group index- Returns:
- number between 0 and
MolAtom.RGROUP_MAX
-
getRgroupIndex
default int getRgroupIndex(int rgid) Finds R-group R#. This is an alias forfindRgroupIndex(int).- Parameters:
rgid- number between 0 andMolAtom.RGROUP_MAX- Returns:
- R-group index, or -1 if not found
-
findRgroupIndex
int findRgroupIndex(int rgid) Finds R-group R#.- Parameters:
rgid- number between 0 andMolAtom.RGROUP_MAX- Returns:
- R-group index, or -1 if not found
-
getRlogic
int getRlogic(int i) Gets R-logic flags.- Parameters:
i- R-group index- Returns:
- R-logic flags
-
getRlogicRange
Gets R-logic occurrence range.- Parameters:
i- R-group index- Returns:
- the occurrence range
-
rgroupIdOf
Finds the ID of the R-group (the number in R#) that contains the specified atom.- Parameters:
node- the atom- Returns:
- the R-group ID if found or -1 if not found
-
rgroupIndexOf
Finds the index of the R-group (the number in R#) that contains the specified atom.- Parameters:
node- the atom- Returns:
- the R-group index if found or -1 if not found
-
getRgroupMemberId
Gets the unique indentifier of the R-group member that contains the specified atom.- Parameters:
node- the atom- Returns:
- the ID or -1
-
getRgroupIndexFromMemberId
default int getRgroupIndexFromMemberId(long id) Gets the R-group index from the R-group member ID.- Parameters:
id- the R-group member ID or -1- Returns:
- the R-group ID or -1
-
getRgroupMemberIndexFromMemberId
default int getRgroupMemberIndexFromMemberId(long id) Gets the R-group member index from the R-group member ID.- Parameters:
id- the R-group member ID or -1- Returns:
- the R-group member index or -1
-
cleanupRemovedRgroupMember
Clean-up after R-group removal.- Parameters:
m- the removed R-group member
-
getRgroupDisplayLabel
Returns the display label of an R-group. For example, "R5" for an ordinary R-group and "R1+R2" for an R-group bridge.- Parameters:
rgroupIndex- index of the R-group- Returns:
- the display label of the R-group
-
getRgroupId
Returns the ID of the ordinary R-group that actually represents the given R-group bridge.- Parameters:
bridgeId- R-group bridge ID- Returns:
- the id of the ordinary R-group that actually represents the given R-group bridge
or
-1if the given bridge is not defined in the structure - Since:
- Marvin 14.10.21.
- See Also:
-