index xrefs 2006/08/08 17:41:24

ChemoJunAtomConnection

ChemoJun050 (2006/08/08) Copyright 2002-2006 National Institute of Informatics, Research Organization of Information and Systems.

category:

inheritance:

instance variables:

class instance variables:

class variables:

pool variables:

instance methods:

  1. attributeTable [attribute accessing] xrefs
    	attributeTable isNil ifTrue: [attributeTable := JunAttributeTable new].
    	^attributeTable
  2. bondType [accessing] xrefs
    	bondType isNil ifTrue: [bondType := self defaultBondType].
    	^bondType
  3. bondType: aNumber [accessing] xrefs
     
    	aNumber isNil 
    		ifTrue: [bondType := self defaultBondType]
    		ifFalse: [bondType := aNumber]
  4. bondTypeSymbol [accessing] xrefs
    	self bondType = 1 ifTrue: [^#single].
    	self bondType = 2 ifTrue: [^#double].
    	self bondType = 3 ifTrue: [^#triple].
    	self bondType = 4 ifTrue: [^#aromatic].
    	self bondType = 5 ifTrue: [^#single].
    	self bondType = 6 ifTrue: [^#single].
    	self bondType = 7 ifTrue: [^#single].
    	self bondType = 8 ifTrue: [^#none].
    	^#unknown
  5. connectionColor [attribute accessing] xrefs
    	^self attributeTable at: #connectionColor
    		ifAbsent: [self defaultConnectionColor]
  6. connectionColor: colorValue [attribute accessing] xrefs
     
    	colorValue ifNil: [self attributeTable removeKey: #connectionColor]
    		ifNotNil: [:it | self attributeTable at: #connectionColor put: it]
  7. defaultBondType [defaults] xrefs
    	^1
  8. defaultConnectionColor [defaults] xrefs
    	^ColorValue veryDarkGray
  9. defaultFromAtom [defaults] xrefs
    	^self class defaultAtomObjectClass new
  10. defaultStereoType [defaults] xrefs
    	^0
  11. defaultToAtom [defaults] xrefs
    	^self class defaultAtomObjectClass new
  12. fromAtom [accessing] xrefs
    	fromAtom isNil ifTrue: [fromAtom := self defaultFromAtom].
    	^fromAtom
  13. fromAtom: atomObject [accessing] xrefs
     
    	atomObject isNil
    		ifTrue: [fromAtom := self defaultFromAtom]
    		ifFalse: [fromAtom := atomObject]
  14. hasConnectionColor [testing] xrefs
    	^self attributeTable includesKey: #connectionColor
  15. initialize [initialize-release] xrefs
    	super initialize.
    	fromAtom := nil.
    	toAtom := nil.
    	bondType := nil.
    	stereoType := nil.
    	attributeTable := nil
  16. isAromatic [testing] xrefs
    	^self bondType = 4
  17. isDouble [testing] xrefs
    	^self bondType = 2
  18. isSingle [testing] xrefs
    	^self bondType = 1
  19. isTriple [testing] xrefs
    	^self bondType = 3
  20. postCopy [copying] xrefs
    	super postCopy.
    	attributeTable := attributeTable copy
    
    	"You must copy fromAtom and toAtom."
  21. printOn: aStream [printing] xrefs
     
    	aStream nextPutAll: '('.
    	aStream nextPutAll: self fromAtom printString.
    	aStream space.
    	aStream nextPutAll: self toAtom printString.
    	aStream space.
    	aStream nextPutAll: self bondTypeSymbol printString.
    	aStream space.
    	aStream nextPutAll: self stereoTypeSymbol printString.
    	aStream nextPutAll: ')'
  22. stereoType [accessing] xrefs
    	stereoType isNil ifTrue: [stereoType := self defaultStereoType].
    	^stereoType
  23. stereoType: aNumber [accessing] xrefs
     
    	aNumber isNil 
    		ifTrue: [stereoType := self defaultBondType]
    		ifFalse: [stereoType := aNumber]
  24. stereoTypeSymbol [accessing] xrefs
    	self stereoType = 0 ifTrue: [^#none].
    	self stereoType = 1 ifTrue: [^#up].
    	self stereoType = 4 ifTrue: [^#either].
    	self stereoType = 6 ifTrue: [^#down].
    	^#unknown
  25. toAtom [accessing] xrefs
    	toAtom isNil ifTrue: [toAtom := self defaultToAtom].
    	^toAtom
  26. toAtom: atomObject [accessing] xrefs
     
    	atomObject isNil
    		ifTrue: [toAtom := self defaultToAtom]
    		ifFalse: [toAtom := atomObject]

class methods:

  1. copyright [copyright] xrefs
    	^'ChemoJun050 (2006/08/08) Copyright 2002-2006 National Institute of Informatics, Research Organization of Information and Systems.'
  2. defaultAtomObjectClass [defaults] xrefs
    	^self defaultMoleculeObjectClass defaultAtomObjectClass
  3. defaultMoleculeObjectClass [defaults] xrefs
    	^ChemoJunMoleculeObject
  4. example1 [examples] xrefs
    	"ChemoJunAtomConnection example1."
    
    	| atomConnection |
    	atomConnection := ChemoJunAtomConnection new.
    	^atomConnection
  5. fromAtom: fromAtomObject toAtom: toAtomObject [instance creation] xrefs
     
    	| atomConnection |
    	atomConnection := self new.
    	atomConnection fromAtom: fromAtomObject.
    	atomConnection toAtom: toAtomObject.
    	^atomConnection
  6. fromAtom: fromAtomObject toAtom: toAtomObject bondType: bondType [instance creation] xrefs
     
    	| atomConnection |
    	atomConnection := self new.
    	atomConnection fromAtom: fromAtomObject.
    	atomConnection toAtom: toAtomObject.
    	atomConnection bondType: bondType.
    	^atomConnection
  7. fromAtom: fromAtomObject toAtom: toAtomObject bondType: bondType stereoType: stereoType [instance creation] xrefs
     
    	| atomConnection |
    	atomConnection := self new.
    	atomConnection fromAtom: fromAtomObject.
    	atomConnection toAtom: toAtomObject.
    	atomConnection bondType: bondType.
    	atomConnection stereoType: stereoType.
    	^atomConnection
  8. system [copyright] xrefs
    	^'ChemoJun'
  9. version [copyright] xrefs
    	^'050'

index xrefs