@param a: Property (A) to link. @type a: L{Property} @param b: Property (B) to link. @type b: L{Property}
(self, a, b)
| 47 | @type endpoints: tuple(2) |
| 48 | """ |
| 49 | def __init__(self, a, b): |
| 50 | """ |
| 51 | @param a: Property (A) to link. |
| 52 | @type a: L{Property} |
| 53 | @param b: Property (B) to link. |
| 54 | @type b: L{Property} |
| 55 | """ |
| 56 | pA = Endpoint(self, a) |
| 57 | pB = Endpoint(self, b) |
| 58 | self.endpoints = (pA, pB) |
| 59 | self.validate(a, b) |
| 60 | a.links.append(pB) |
| 61 | b.links.append(pA) |
| 62 | |
| 63 | def validate(self, pA, pB): |
| 64 | """ |