Attribute: isDefaultVar
Is this ChemCompVar the default for its linking? Or, in other words, is this the ChemCompVar to use by default when creating a MolResidue with this particular molType, ccpCode, and linking?
Note that
myChemComp.findAllChemCompVars(linking=x,isDefaultVar=True)
will return either one object or none for any value of x.
guid:
|
www.ccpn.ac.uk_Fogh_2006-08-16-18:23:23_00031
|
Type:
|
Boolean
|
Multiplicity:
|
1..1
|
Changeability:
|
changeable
|
isDerived:
|
False
|
isAutomatic:
|
False
|
isImplementation:
|
False
|
isImplicit:
|
False
|
isAbstract:
|
False
|
Scope:
|
instance_level
|
Default Value:
|
False
|
Constraint name:
|
only_true_for_one_ChemCompVar_with_each_linking
|
python code
|
isValid = True
if value:
if [x for x in self.chemComp.findAllChemCompVars(linking=self.linking)
if x.isDefaultVar and x is not self]:
isValid = False
|
|