java.lang.Object
org.openscience.cdk.isomorphism.mcss.RMap

public class RMap extends Object
An RMap implements the association between an edge (bond) in G1 and an edge (bond) in G2, G1 and G2 being the compared graphs in a RGraph context.
Author:
Stephane Werner, IXELIS <mail@ixelis.net>
Source code:
main
Belongs to CDK module:
standard
Created on:
2002-07-24
  • Constructor Summary

    Constructors
    Constructor
    Description
    RMap(int id1, int id2)
    Constructor for the RMap.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    The equals method.
    int
    Gets the id1 attribute of the RMap object.
    int
    Gets the id2 attribute of the RMap object.
    int
     
    void
    setId1(int id1)
    Sets the id1 attribute of the RMap object.
    void
    setId2(int id2)
    Sets the id2 attribute of the RMap object.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RMap

      public RMap(int id1, int id2)
      Constructor for the RMap.
      Parameters:
      id1 - number of the edge (bond) in the graph 1
      id2 - number of the edge (bond) in the graph 2
  • Method Details

    • setId1

      public void setId1(int id1)
      Sets the id1 attribute of the RMap object.
      Parameters:
      id1 - The new id1 value
    • setId2

      public void setId2(int id2)
      Sets the id2 attribute of the RMap object.
      Parameters:
      id2 - The new id2 value
    • getId1

      public int getId1()
      Gets the id1 attribute of the RMap object.
      Returns:
      The id1 value
    • getId2

      public int getId2()
      Gets the id2 attribute of the RMap object.
      Returns:
      The id2 value
    • equals

      public boolean equals(Object o)
      The equals method.
      Overrides:
      equals in class Object
      Parameters:
      o - The object to compare.
      Returns:
      true=if both ids equal, else false.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object