Package PyDSTool :: Module ModelConstructor' :: Class GeneratorConstructor
[hide private]
[frames] | no frames]

Class GeneratorConstructor

source code

object --+
         |
        GeneratorConstructor

Instance Methods [hide private]
 
__del__(self) source code
 
__init__(self, mspec=None, userevents=None, userfns=None, unravelInfo=True, inputs=None, checklevel=2, activateAllBounds=False, activatedBounds=None, targetGen='', algparams=None, indepvar=('t', [-inf, inf]), tdata=None, parvalues=None, icvalues=None, reuseTerms=None, options=None, abseps=None, eventPars=None, preReuse=False, preReuseTerms=None, preFlat=False)
Notes for initialization arguments:
source code
 
activateBounds(self, varname=None, which_bounds='all')
which_bounds argument is either 'lo', 'hi', or a pair ('lo', 'hi').
source code
 
addEvents(self, evtarg, eventPars=None) source code
 
addFunctions(self, fnarg) source code
 
getGenerator(self)
Build and return a Generator instance from an abstract specification.
source code
 
setForcedAuxVars(self, vlist) source code
 
setOptions(self, optDict) source code
 
setReuseTerms(self, rdict) source code
 
setVfCodeInsertEnd(self, codestr) source code
 
setVfCodeInsertStart(self, codestr) 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, mspec=None, userevents=None, userfns=None, unravelInfo=True, inputs=None, checklevel=2, activateAllBounds=False, activatedBounds=None, targetGen='', algparams=None, indepvar=('t', [-inf, inf]), tdata=None, parvalues=None, icvalues=None, reuseTerms=None, options=None, abseps=None, eventPars=None, preReuse=False, preReuseTerms=None, preFlat=False)
(Constructor)

source code 

Notes for initialization arguments:

mspec : corresponding ModelSpec, for reference

userevents : list of Event objects userfns : dictionary of named user functions specs inputs : dictionary of Variable objects algparams : dictionary of algorithmic parameters for Generator parvalues : dictionary of parameter values icvalues : dictionary of initial condition values reuseterms : dictionary of reused terms in specifications

targetGen : STRING name of any compatible Generator class, e.g. 'Vode_ODEsystem'

eventPars : list of parameter names associated solely with events

options : Internal use by ModelConstructor preReuse : Internal use preFlat : Internal use

RETURNS: getGenerator method returns a Generator of the specified class

Overrides: object.__init__

activateBounds(self, varname=None, which_bounds='all')

source code 

which_bounds argument is either 'lo', 'hi', or a pair ('lo', 'hi'). Calling with no arguments activates all bounds.