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

Class StateVariable

source code


Simple container intended to conditionally store the value

Statefull class provides easy interfact to access the variable (simply through an attribute), or modifying internal state (enable/disable) via .states attribute of type StateCollection.

Instance Methods [hide private]
 
__init__(self, name=None, enabled=True, doc='State variable')
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
_get(self) source code
 
_set(self, val) source code
 
reset(self)
Simply detach the value, and reset the flag
source code
 
enable(self, value=False) source code
 
__str__(self)
str(x)
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__

Properties [hide private]
  isEnabled

Inherited from CollectableAttribute: isSet, name, value

Inherited from object: __class__

Method Details [hide private]

__init__(self, name=None, enabled=True, doc='State variable')
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

_get(self)

source code 
Overrides: CollectableAttribute._get

_set(self, val)

source code 
Overrides: CollectableAttribute._set

reset(self)

source code 
Simply detach the value, and reset the flag
Overrides: CollectableAttribute.reset

__str__(self)
(Informal representation operator)

source code 
str(x)
Overrides: object.__str__
(inherited documentation)

Property Details [hide private]

isEnabled

Get Method:
unreachable.isEnabled(self)