Package PyDSTool :: Module ModelSpec' :: Class nameResolverClass
[hide private]
[frames] | no frames]

Class nameResolverClass

source code

object --+
         |
        nameResolverClass

This class keeps a tab of how many times a local name has been used for a given specfication type ('var', 'par', 'input' or 'auxfn'), and renames it with an appropriate globalized name (hierarchical according to declared parent object, with possible numbered suffix for multiple name declarations).

Only one instance of this class is needed for a session.

Instance Methods [hide private]
 
__call__(self, obj, fspec, parentname=None) source code
 
__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__repr__(self)
str(x)
source code
 
__str__(self)
str(x)
source code
 
clear(self, fspec) source code
 
clearall(self) source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 

str(x)

Overrides: object.__repr__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)