Package gavo :: Package base :: Module meta :: Class ModelBasedBuilder
[frames] | no frames]

Class ModelBasedBuilder

source code

object --+
         |
        ModelBasedBuilder

is a meta builder that can create stan-like structures from meta information

It is constructed with with a tuple-tree of keys and DOM constructors; these must work like stan elements, which is, e.g., also true for our registrymodel elements.

Each node in the tree can be one of:

The callable can also be None, which causes the corresponding items to be inlined into the parent (this is for flattening nested meta structures).

The meta key can also be None, which causes the factory to be called exactly once (this is for nesting flat meta structures).

Instance Methods
 
__init__(self, constructors, format='text')
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
build(self, metaContainer, macroPackage=None) source code

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

Properties

Inherited from object: __class__

Method Details

__init__(self, constructors, format='text')
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)