Package mvpa :: Package misc :: Module state
[hide private]
[frames] | no frames]

Module state

source code

Classes to control and store state information.

It was devised to provide conditional storage

Classes [hide private]
  CollectableAttribute
Base class for any custom behaving attribute intended to become part of a collection
  StateVariable
Simple container intended to conditionally store the value
  Collection
Container of some CollectableAttributes.
  ParameterCollection
Container of Parameters for a stateful object.
  StateCollection
Container of StateVariables for a stateful object.
  collector
Intended to collect and compose StateCollection for any child class of this metaclass
  Stateful
Base class for stateful objects.
  Harvestable
Classes inherited from this class intend to collect attributes within internal processing.
  Parametrized
Base class for all classes which have collected parameters
Variables [hide private]
  _known_collections = {'KernelParameter': ('kernel_params', <cl...
  _col2class = {'kernel_params': <class 'mvpa.misc.state.Paramet...
Mapping from collection name into Collection class
  _collections_order = ['params', 'kernel_params', 'states']

Imports: operator, copy, Set, TextWrapper, VProperty, UnknownStateError, warning, enhancedClassDocString, enhancedDocString, debug


Variables Details [hide private]

_known_collections

Value:
{'KernelParameter': ('kernel_params',
                     <class 'mvpa.misc.state.ParameterCollection'>),
 'Parameter': ('params',
               <class 'mvpa.misc.state.ParameterCollection'>),
 'StateVariable': ('states',
                   <class 'mvpa.misc.state.StateCollection'>)}

_col2class

Mapping from collection name into Collection class
Value:
{'kernel_params': <class 'mvpa.misc.state.ParameterCollection'>,
 'params': <class 'mvpa.misc.state.ParameterCollection'>,
 'states': <class 'mvpa.misc.state.StateCollection'>}