-
appendConnectedObj(obj)
-
Add a object to connectedObjs array. If obj already in connectedObjs, nothing will be done.
Parameters:
- Inherited From:
- Source:
-
appendLinkedConnector(connector)
-
Link a connector to this node.
Parameters:
- Inherited From:
- Source:
-
assertConnectedObjLegal(obj) → {Bool}
-
Check if an obj can be added to connectedObjs array.
Generally, an object with same owner of current connector can be added. If not so,
a exception will be raised.
Parameters:
- Inherited From:
- Source:
Returns:
-
Type
-
Bool
-
clearConnectedObjs()
-
Clear all connected objects.
- Inherited From:
- Source:
-
compareStructure(targetObj, options) → {Int}
-
Explicit set compare method to chem structure and compare to targetObj.
Parameters:
- Inherited From:
- Source:
Returns:
-
Type
-
Int
-
equalStructure(targetObj, options) → {Bool}
-
Check if this object and targetObj has equivalent chem structure.
Parameters:
- Inherited From:
- Source:
Returns:
-
Type
-
Bool
-
getConnectedChemNodeCount() → {Int}
-
Get count of connected chem nodes.
- Inherited From:
- Source:
Returns:
-
Type
-
Int
-
getConnectedNonHydrogenObjs() → {Array}
-
Returns connected objects except hydrogen atoms.
- Inherited From:
- Source:
Returns:
-
Type
-
Array
-
-
Get connectedObj at index.
Parameters:
Name |
Type |
Description |
index |
Int
|
|
- Inherited From:
- Source:
Returns:
-
Type
-
Kekule.ChemStructureObject
-
getConnectedObjCount() → {Int}
-
Get count of connected objects.
- Inherited From:
- Source:
Returns:
-
Type
-
Int
-
getConnectedSiblings() → {Array}
-
Returns connected objects with the same parent of this connector.
For example, connector connected to a child node in subgroup, then the subgroup
rather than the child node will be returned.
- Inherited From:
- Source:
Returns:
-
Type
-
Array
-
-
Get connector between this object and another object.
Parameters:
- Inherited From:
- Source:
Returns:
-
Type
-
Kekule.ChemStructureConnector
-
-
Returns self or child object that can directly linked to a connector.
For atom or other simple chem objetc, this function should just returns self,
for structure fragment, this function need to returns an anchor node.
- Inherited From:
- Source:
Returns:
-
Type
-
Kekule.ChemStructureObject
-
-
Get linked connector object at index.
Parameters:
Name |
Type |
Description |
index |
Int
|
|
- Inherited From:
- Source:
Returns:
-
Type
-
Kekule.ChemStructureConnector
-
getLinkedConnectorCount() → {Int}
-
Return count of linkedConnectors.
- Inherited From:
- Source:
Returns:
-
Type
-
Int
-
getLinkedHydrogenAtoms() → {Array}
-
Returns linked hydrogen atoms.
- Inherited From:
- Source:
Returns:
-
Type
-
Array
-
getLinkedNonHydrogenConnectors() → {Array}
-
Returns connectors that connected to a non hydrogen node.
- Inherited From:
- Source:
Returns:
-
Type
-
Array
-
getLinkedNonHydrogenObjs() → {Array}
-
Returns linked objects except hydrogen atoms.
- Inherited From:
- Source:
Returns:
-
Type
-
Array
-
getLinkedObjsOnConnector() → {Array}
-
Returns other objects connected to this one through connector.
- Inherited From:
- Source:
Returns:
-
Type
-
Array
-
-
- Inherited From:
- Source:
Returns:
-
Type
-
Kekule.StructureFragment
-
-
- Inherited From:
- Source:
Returns:
-
Type
-
Kekule.StructureFragment
-
hasConnectedObj(obj)
-
Check if a object is connected with this connector.
Parameters:
- Inherited From:
- Source:
-
indexOfConnectedObj(obj) → {Int}
-
Get index of obj in connectedObjs array.
Parameters:
- Inherited From:
- Source:
Returns:
-
Type
-
Int
-
indexOfLinkedConnector(connector) → {Int}
-
Returns index of connector connected to node.
Parameters:
- Inherited From:
- Source:
Returns:
-
Type
-
Int
-
insertConnectedObjAt(obj, index)
-
Insert obj at index of connectedObjs array. If index is not set, obj will be put as the first obj.
Parameters:
- Inherited From:
- Source:
-
isAromatic() → {Bool}
-
Returns if bond is a aromatic one.
- Source:
Returns:
-
Type
-
Bool
-
isBondBetween(atomicNumberOrSymbol1, atomicNumberOrSymbol2) → {Bool}
-
Check if this bond is between two specified atoms.
Parameters:
Name |
Type |
Description |
atomicNumberOrSymbol1 |
Variant
|
|
atomicNumberOrSymbol2 |
Variant
|
|
- Source:
Returns:
-
Type
-
Bool
-
isConnectingConnector()
-
Check if this connector connected to another connector (e.g, bond ends with another bond).
- Inherited From:
- Source:
-
isConnectingWithObj(obj)
-
Parameters:
- Inherited From:
- Source:
-
isDoubleBond() → {Bool}
-
Returns if bond is a double covalence bond.
- Source:
Returns:
-
Type
-
Bool
-
isNormalConnectorToHydrogen() → {Bool}
-
Whether this connector connect hydrogen atom to another node.
- Inherited From:
- Source:
Returns:
-
Type
-
Bool
-
isSingleBond() → {Bool}
-
Returns if bond is a single covalence bond.
- Source:
Returns:
-
Type
-
Bool
-
isTripleBond() → {Bool}
-
Returns if bond is a triple covalence bond.
- Source:
Returns:
-
Type
-
Bool
-
normalizeDirection()
-
Turn bond direction to a normal up or down one (not up_inverted or down_inverted).
- Source:
-
removeConnectedObj(obj)
-
Remove a object in connectedObjs property.
Parameters:
- Inherited From:
- Source:
-
removeConnectedObjAt(index)
-
Remove object at index in connectedObjs property.
Parameters:
Name |
Type |
Description |
index |
Int
|
|
- Inherited From:
- Source:
-
removeLinkedConnector(connector)
-
Remove a connector in linkedContainer.
Parameters:
- Inherited From:
- Source:
-
removeLinkedConnectorAt(index)
-
Remove connector at index of linkedConnectors.
Parameters:
Name |
Type |
Description |
index |
Int
|
|
- Inherited From:
- Source:
-
removeThisFromConnectedObjs()
-
Remove this connector from all linked objects.
Ths method should be called before a connector is removed from a structure.
- Inherited From:
- Source:
-
removeThisFromLinkedConnector()
-
Remove this node from all linked connectors.
Ths method should be called before a object is removed from a structure.
- Inherited From:
- Source:
-
replaceConnectedObj(oldObj, newObj)
-
Replace old connected object with new one and remove connection to old object.
Parameters:
- Inherited From:
- Source:
-
setConnectedObjAt(index, value)
-
Set connectedObj at index.
Parameters:
- Inherited From:
- Source:
-
sortConnectedObjs(compareFunc)
-
Sort the array of connected objs.
Parameters:
Name |
Type |
Description |
compareFunc |
function
|
|
- Inherited From:
- Source: