Package PyDSTool :: Module MProject :: Class GenTransform
[hide private]
[frames] | no frames]

Class GenTransform

source code

object --+
         |
        GenTransform

Generator Transformer class. Acts on GDescriptor objects that define Generators. For these, the only non-trivial transformations are inside the modelspec attribute.

Instance Methods [hide private]
 
__init__(self, name, gen, model_icvalues=None, model_parvalues=None, model_inputs=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
remove(self, obj)
Remove component, parameter, variable, input, function
source code
 
add(self, parent_name, obj)
Add component, parameter, variable, input, function
source code
 
findStaticVars(self)
Find RHSfuncSpec variables with RHS=0
source code
 
changeTargetGen(self, target)
Change target generator type.
source code
 
changeDomain(self, obj_name, domain)
Change valid domain of a quantity
source code
 
redefineQuantity(self, obj_name, specstr)
Redefine a Quantity using a new specification string, leaving its type unchanged.
source code
 
convertQuantity(self, obj_name, targetType, targetSpecType=None)
Convert quantity between parameter, variable, or input types.
source code
 
convertComponent(self, obj_name, targetType)
Convert component object to given type (provide actual type), provided the new type is compatible with the old one.
source code
 
makeStaticVar(self, obj_name)
Force RHSfuncSpec variable to have RHS=0.
source code
 
unresolved(self)
Returns the generator spec's remaining free symbols.
source code
 
commit(self, new_name)
Verifies completeness of definition before returning new generator spec.
source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, name, gen, model_icvalues=None, model_parvalues=None, model_inputs=None)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

changeTargetGen(self, target)

source code 

Change target generator type. Target is a string name of the Generator class.

convertQuantity(self, obj_name, targetType, targetSpecType=None)

source code 

Convert quantity between parameter, variable, or input types. If parameter -> variable, the RHS will be set to zero ('static' variable).