Class EvMapping
source code
object --+
|
EvMapping
Event mapping class, for use by makeModelInfoEntry and, when
instantiated, the Model class.
assignDict maps its values onto the variable or parameter named by the
key. To use the simple syntax in these assignments, either the 'model'
argument or the 'infodict' argument must be provided, the first taking
preference if both are provided. An instantiated Model object must be
provided with the 'model' argument in order to name these variables and
parameters without further qualification. A dictionary with keys 'vars'
and 'pars' must provide lists of variable and parameter names for the
'infodict' argument. Use this argument with ModelConstructor when an
instantiated model is not available. With either of these arguments,
assignments must be given in the (key, value) form: "a", "1 + a*k/2"
Without the model argument, assignments must be given in the (key, value) form:
"xdict['a']", "1+xdict['a']*pdict['k']/2"
defStrings (list of valid python statements) overrides assignDict if supplied at
initialization, to permit full flexibility in the contents of the
event mapping function. These strings must use "xdict", "pdict", and "idict"
to reference the variables, parameters, and inputs, respectively. Time is 't'.
Any other special arguments can be accessed by adding them to this object as
an attribute after its creation, and referring to it with the prefix 'self.'
in the defString.
Use activeDict to map named events to a given setting for 'active' (Boolean).
|
|
|
|
|
__init__(self,
assignDict=None,
defString='
' ,
activeDict=None,
model=None,
infodict=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature |
source code
|
|
|
|
|
|
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__str__
|
Inherited from object :
__class__
|
__init__(self,
assignDict=None,
defString='
' ,
activeDict=None,
model=None,
infodict=None)
(Constructor)
| source code
|
x.__init__(...) initializes x; see x.__class__.__doc__ for
signature
- Overrides:
object.__init__
- (inherited documentation)
|