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

Class: ChemCompVarCoord


    ChemCompVar to which chemAtomCoord 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 chemCompCoord to class ChemCompCoord
Main key: linking, descriptor
Mandatory Attributes: None
Known Subclasses: None
Children: None
Constructor: newObj = ChemCompVarCoord( chemCompCoord, ... )

Attributes (in package)

Go to Top
Attribute Type Multiplicity Description
descriptor Line 1..1 descriptor for corresponding chemCompVar  
linking ccp.api.molecule.ChemComp.ChemCompLinking 1..1 linking for corresponding ChemCompVar  

Inherited Attributes (not in package): applicationDataclassNamefieldNamesinConstructorisDeletedmetaclasspackageNamepackageShortNamequalifiedName

Link Attributes (in package)

Go to Top
Attribute Type Multiplicity Description
chemAtomCoords ChemAtomCoord 0..* ChemAtomCoords describing coordinates for the ChemAtoms making up the ChemCompVar  
chemCompCoord ChemCompCoord 1..1 (Parent link). parent link  
chemCompVars ccp.api.molecule.ChemComp.ChemCompVar 1..* Derived. corresponding ChemCompVar, to which coordinates refer  
parent ChemCompCoord 1..1 link to parent object - synonym for chemCompCoord  

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
chemAtomCoords
getChemAtomCoords ChemAtomCoord Set -
setChemAtomCoords - ChemAtomCoord Set
sortedChemAtomCoords ChemAtomCoord List -
addChemAtomCoord - ChemAtomCoord
removeChemAtomCoord - ChemAtomCoord
findFirstChemAtomCoord ChemAtomCoord keyword=value pairs
findAllChemAtomCoords ChemAtomCoord Set keyword=value pairs
chemCompCoord
getChemCompCoord ChemCompCoord -
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 ChemCompCoord -

Class Methods (in package)

Go to Top
Method Return Parameters Comment
checkValid - Boolean
checkAllValid - Boolean
getByKey ChemCompVarCoord 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:22:55_00007

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.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
  Data Model Version 2.1.2
Go to Top  
  Autogenerated by  PyApiDocGen  revision 1.3   on  Mon Mar 2 17:24:35 2015    from data model package  ccp.api.molecule.ChemCompCoord.ChemCompVarCoord   revision ?  
  Work done by the CCPN team.
www.ccpn.ac.uk