Class Mapping

    • Constructor Detail

      • Mapping

        public Mapping​(IChemObject objectOne,
                       IChemObject objectTwo)
        Constructs an unconnected lone pair.
        objectOne - The first IChemObject of the mapping
        objectTwo - The second IChemObject of the mapping
    • Method Detail

      • relatedChemObjects

        public Iterable<IChemObject> relatedChemObjects()
        Returns an Iterable to the two IChemObjects. Iterable.remove() is not implemented.
        Specified by:
        relatedChemObjects in interface IMapping
        An Iterable to two IChemObjects that define the mapping
      • getChemObject

        public IChemObject getChemObject​(int pos)
        Retrieves the first or second of the related IChemObjects.
        Specified by:
        getChemObject in interface IMapping
        pos - The position of the IChemObject.
        The IChemObject to retrieve.