Data Model version 2.0.6
Acknowledgements
Diagram | Class Map | Attribute Map | Method Map | Help | License
Home | Package | Class: { prev | next } | Attribute | Method

Class: ChemCompVarNmrRef


    ChemCompVar to which chemAtomNmrRef children belong.  Note: atoms belonging to Vars with an 'any' attribute must belong to all the relevant Vars
Attributes
Link Attributes
Attribute Methods
Link Attribute Methods
Class Methods
Factory Methods
Other Methods
Appendix

Inheritance:


Details:

Parent: link chemCompNmrRef to class ChemCompNmrRef
Main key: linking, descriptor
Mandatory Attributes: None
Known Subclasses: None
Children: None
Constructor: newObj = ChemCompVarNmrRef( chemCompNmrRef, ... )

Attributes (in package)

Go to Top
Attribute Type Multiplicity Description
descriptor Line 1..1 descriptor for corresponding ChemCompVar - default is 'any'  
linking ccp.api.molecule.ChemComp.ChemCompLinking 1..1 linking for corresponding ChemCompVar - default is 'any'  

Inherited Attributes (not in package): applicationDataclassNamefieldNamesinConstructorisDeletedmetaclasspackageNamepackageShortNamequalifiedName

Link Attributes (in package)

Go to Top
Attribute Type Multiplicity Description
chemAtomNmrRefs ChemAtomNmrRef 0..* ChemAtomNmrRefs relevant for this ChemCompVarNmrRef  
chemCompNmrRef ChemCompNmrRef 1..1 (Parent link). parent link  
chemCompVars ccp.api.molecule.ChemComp.ChemCompVar 1..* Derived. chemCompVars corerspnding to ChemCompVarNmrRef  
parent ChemCompNmrRef 1..1 link to parent object - synonym for chemCompNmrRef  

Inherited Attributes (not in package): accessactiveAccessroottopObject

Attribute Methods (in package)

Go to Top
Attribute Method Return Parameters Comment
descriptor
getDescriptor Line -
setDescriptor - Line
linking
getLinking ccp.api.molecule.ChemComp.ChemCompLinking -
setLinking - ccp.api.molecule.ChemComp.ChemCompLinking

Link Attribute Methods (in package)

Go to Top
Attribute Method Return Parameters Comment
chemAtomNmrRefs
getChemAtomNmrRefs ChemAtomNmrRef Set -
setChemAtomNmrRefs - ChemAtomNmrRef Set
sortedChemAtomNmrRefs ChemAtomNmrRef List -
addChemAtomNmrRef - ChemAtomNmrRef
removeChemAtomNmrRef - ChemAtomNmrRef
findFirstChemAtomNmrRef ChemAtomNmrRef keyword=value pairs
findAllChemAtomNmrRefs ChemAtomNmrRef Set keyword=value pairs
chemCompNmrRef
getChemCompNmrRef ChemCompNmrRef -
chemCompVars
getChemCompVars ccp.api.molecule.ChemComp.ChemCompVar Set - non-std.
sortedChemCompVars ccp.api.molecule.ChemComp.ChemCompVar List -
findFirstChemCompVar ccp.api.molecule.ChemComp.ChemCompVar keyword=value pairs
findAllChemCompVars ccp.api.molecule.ChemComp.ChemCompVar Set keyword=value pairs
parent
getParent ChemCompNmrRef -

Class Methods (in package)

Go to Top
Method Return Parameters Comment
checkValid - Boolean
checkAllValid - Boolean
getByKey ChemCompVarNmrRef memops.api.Implementation.MemopsObject, Any List static
getFullKey Any List Boolean
getLocalKey Any -
get Any String
set - String, Any

Factory Methods (in package)

Go to Top
Method Return Parameters
None

Other Methods (in package)

Go to Top
Method Return Parameters Comment
None

Appendix

Go to Top

guid:

www.ccpn.ac.uk_Fogh_2006-08-16-14:25:09_00006

isImplicit:

False

Tag

Value
repositoryId $Id: ChemCompVarNmrRef.xml,v 1.53 2011-01-13 14:40:36 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.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
  Data Model Version 2.0.6
Go to Top  
  Autogenerated by  PyApiDocGen  revision 1.3   on  Wed Aug 7 15:06:27 2013    from data model package  ccp.api.nmr.NmrReference.ChemCompVarNmrRef   revision 1.53  
  Work done by the CCPN team.
www.ccpn.ac.uk