$darkmode
DENOPTIM
RelatedAPPair.java
Go to the documentation of this file.
1package denoptim.graph;
2
3import java.util.HashSet;
4import java.util.List;
5import java.util.Set;
6
11public class RelatedAPPair
12{
17
22
26 public Object property;
27
31 public String propID;
32
33
34//------------------------------------------------------------------------------
35
44 Object property, String propID)
45 {
46 this.apA = apA;
47 this.apB = apB;
48 this.property = property;
49 this.propID = propID;
50 }
51
52//------------------------------------------------------------------------------
53
54 @Override
55 public boolean equals(Object o)
56 {
57 if (o == null)
58 return false;
59
60 if (o == this)
61 return true;
62
63 if (o.getClass() != getClass())
64 return false;
65
66 RelatedAPPair other = (RelatedAPPair) o;
67
68 if (!this.apA.equals(other.apA))
69 return false;
70
71 if (!this.apB.equals(other.apB))
72 return false;
73
74 if (!this.propID.equals(other.propID))
75 return false;
76
77 return this.property.equals(other.property);
78 }
79
80//------------------------------------------------------------------------------
81
82 @Override
83 public String toString()
84 {
85 return apA.getAtomPositionNumber() + ":" + apA.getID() + "-"
87 + "_" + property;
88 }
89
90//------------------------------------------------------------------------------
91
92}
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.