guid:
|
www.ccpn.ac.uk_Fogh_2006-08-16-14:22:55_00007
|
isImplicit:
|
False
|
Tag
|
Value
|
repositoryId
|
$Id: ChemCompVarCoord.xml,v 1.50 2011-01-13 14:40:34 rhfogh Exp $
|
Tag
|
Value
|
repositoryTag
|
$Name: not supported by cvs2svn $
|
Special constructor code:
|
None
|
Special destructor 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.chemCompCoord.chemCompVarCoords)
for atom in self.chemAtomCoords:
if len(atom.chemCompVarCoords) != nVars:
isValid = False
break
elif linking == 'any':
otherVars = list(self.chemCompCoord.findAllChemCompVarCoords(descriptor=descriptor))
otherVars.remove(self)
for atom in self.chemAtomCoords:
ll = atom.chemCompVarCoords
for var in otherVars:
if var not in ll:
isValid = False
break
elif descriptor == 'any':
otherVars = list(self.chemCompCoord.findAllChemCompVarCoords(linking=linking))
otherVars.remove(self)
for atom in self.chemAtomCoords:
ll = atom.chemCompVarCoords
for var in otherVars:
if var not in ll:
isValid = False
break
|
Known inward one-way links:
|
None
|