guid:
|
www.ccpn.ac.uk_Fogh_2006-08-16-14:25:09_00006
|
isImplicit:
|
False
|
Tag
|
Value
|
repositoryId
|
$Id: $
|
Tag
|
Value
|
repositoryTag
|
$Name: $
|
Special constructor code:
|
None
|
Special destructor code:
|
None
|
Special postDestructor code:
|
None
|
Constraint name:
|
any_attributes_imply_atoms_shared_with_all_specific_vars
|
Constraint code:
|
linking = self.linking
descriptor = self.descriptor
isValid = True
if linking == 'any' and descriptor == 'any':
nVars = len(self.chemCompNmrRef.chemCompVarNmrRefs)
for atom in self.chemAtomNmrRefs:
if len(atom.chemCompVarNmrRefs) != nVars:
isValid = False
break
elif linking == 'any':
otherVars = list(self.chemCompNmrRef.findAllChemCompVarNmrRefs(descriptor=descriptor))
otherVars.remove(self)
for atom in self.chemAtomNmrRefs:
ll = atom.chemCompVarNmrRefs
for var in otherVars:
if var not in ll:
isValid = False
break
elif descriptor == 'any':
otherVars = list(self.chemCompNmrRef.findAllChemCompVarNmrRefs(linking=linking))
otherVars.remove(self)
for atom in self.chemAtomNmrRefs:
ll = atom.chemCompVarNmrRefs
for var in otherVars:
if var not in ll:
isValid = False
break
|
Known inward one-way links:
|
None
|