Package gavo :: Package protocols :: Module sdm :: Class SDMCore
[frames] | no frames]

Class SDMCore

source code

                   object --+                
                            |                
 base.structure.StructureBase --+            
                                |            
                   object --+   |            
                            |   |            
           base.common.Parser --+            
                                |            
base.structure.ParseableStructure --+        
                                    |        
             base.structure.Structure --+    
                                        |    
                           svcs.core.Core --+
                                            |
                                           SDMCore

A core for making (VO)Tables according to the Spectral Data Model.

Do *not* use this any more, use datalink to do this.

Here, the input table consists of the accref of the data to be generated. The data child of an SDMVOTCore prescribes how to come up with the table. The output table is the (primary) table of the data instance.

If you find yourself using this, please let the authors know. We tend to believe SDMCores should no longer be necessary in the presence of getData, and hence we might want to remove this at some point.

Nested Classes

Inherited from base.structure.StructureBase: __metaclass__

Instance Methods
 
onElementComplete(self) source code
 
run(self, service, inputTable, queryMeta) source code
 
clearProperty(self, name) source code
 
getFullId(self) source code
 
getProperty(self, name, default=<Undefined>) source code
 
hasProperty(self, name) source code
 
setProperty(self, name, value) source code

Inherited from svcs.core.Core: __init__, __repr__, __str__, adaptForRenderer, completeElement, makeUserDoc

Inherited from base.structure.Structure: __provides__, callCompletedCallbacks, finishElement, validate

Inherited from base.structure.ParseableStructure: end_, feed, feedFrom, feedObject, getAttribute, iterEvents, start_, value_

Inherited from base.structure.StructureBase: __providedBy__, adopt, breakCircles, change, copy, getAttributes, getCopyableAttributes, iterChildren

Inherited from base.common.Parser: feedEvent

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Class Methods

Inherited from base.structure.StructureBase: fromStructure

Class Variables
  name_ = 'sdmCore'
a sentinel for all kinds of undefined values.
  inputTableXML = '<inputTable id="inFields">\n\t\t\t<inputKey n...
hash(x)
  attrSeq = [<gavo.base.parsecontext.IdAttribute object at 0xf51...
  managedAttrs = {'data': <gavo.base.complexattrs.StructAttribut...

Inherited from svcs.core.Core: outputTableXML

Inherited from base.structure.Structure: __implemented__

Inherited from base.structure.StructureBase: completedCallbacks

Properties
  rd

Inherited from object: __class__

Method Details

onElementComplete(self)

source code 
Overrides: base.structure.Structure.onElementComplete

run(self, service, inputTable, queryMeta)

source code 
Overrides: svcs.core.Core.run

clearProperty(self, name)

source code 
Overrides: svcs.core.Core.clearProperty

getFullId(self)

source code 
Overrides: svcs.core.Core.getFullId

getProperty(self, name, default=<Undefined>)

source code 
Overrides: svcs.core.Core.getProperty

hasProperty(self, name)

source code 
Overrides: svcs.core.Core.hasProperty

setProperty(self, name, value)

source code 
Overrides: svcs.core.Core.setProperty

Class Variable Details

inputTableXML

hash(x)

Value:
'''<inputTable id="inFields">
\t\t\t<inputKey name="accref" type="text" required="True"
\t\t\t\tdescription="Accref of the data within the SSAP table."/>
\t\t\t<inputKey name="dm" type="text" description="Data model to
\t\t\t\tgenerate the table for (sdm or sed)">sdm</inputKey>
\t\t</inputTable>'''

attrSeq

Value:
[<gavo.base.parsecontext.IdAttribute object at 0xf5104c4c>,
 <gavo.base.complexattrs.StructAttribute object at 0xf438774c>,
 <gavo.base.parsecontext.OriginalAttribute object at 0xf43877ac>,
 <gavo.base.complexattrs.StructAttribute object at 0xf438778c>,
 <gavo.base.complexattrs.PropertyAttribute object at 0xf43877cc>,
 <gavo.base.parsecontext.ReferenceAttribute object at 0xf1826d4c>,
 <gavo.rscdef.common.RDAttribute object at 0xf438772c>,
 <gavo.base.complexattrs.StructAttribute object at 0xf1826d8c>]

managedAttrs

Value:
{'data': <gavo.base.complexattrs.StructAttribute object at 0xf1826d8c>\
,
 'id': <gavo.base.parsecontext.IdAttribute object at 0xf5104c4c>,
 'inputTable': <gavo.base.complexattrs.StructAttribute object at 0xf43\
8774c>,
 'original': <gavo.base.parsecontext.OriginalAttribute object at 0xf43\
877ac>,
 'outputTable': <gavo.base.complexattrs.StructAttribute object at 0xf4\
...

Property Details

rd

Get Method:
unreachable._getRD(self)