$darkmode
DENOPTIM
RelatedAPPair.java
Go to the documentation of this file.
1package denoptim.graph;
2
7public class RelatedAPPair
8{
13
18
22 public Object property;
23
27 public String propID;
28
29
30//------------------------------------------------------------------------------
31
40 Object property, String propID)
41 {
42 this.apA = apA;
43 this.apB = apB;
44 this.property = property;
45 this.propID = propID;
46 }
47
48//------------------------------------------------------------------------------
49
50 @Override
51 public boolean equals(Object o)
52 {
53 if (o == null)
54 return false;
55
56 if (o == this)
57 return true;
58
59 if (o.getClass() != getClass())
60 return false;
61
62 RelatedAPPair other = (RelatedAPPair) o;
63
64 if (!this.apA.equals(other.apA))
65 return false;
66
67 if (!this.apB.equals(other.apB))
68 return false;
69
70 if (!this.propID.equals(other.propID))
71 return false;
72
73 return this.property.equals(other.property);
74 }
75
76//------------------------------------------------------------------------------
77
78 @Override
79 public String toString()
80 {
81 return apA.getAtomPositionNumber() + ":" + apA.getID() + "-"
83 + "_" + property;
84 }
85
86//------------------------------------------------------------------------------
87
88}
An attachment point (AP) is a possibility to attach a Vertex onto the vertex holding the AP (i....
int getID()
Returns a unique integer that is used to sort list of attachment points.
int getAtomPositionNumber()
The index of the source atom in the atom list of the fragment.