| Home | Trees | Index | Help |
|---|
| Package esys :: Package escript :: Module modelframe :: Class ParameterSet |
|
object --+
|
LinkableObject --+
|
ParameterSet
EvaluateExpression,
FinleyReader,
GaussianProfile,
GravityForce,
InterpolatedTimeProfile,
InterpolateOverBox,
MaterialTable,
Model,
RectangularDomain,
ScalarConstrainer,
SimpleEarthModel,
VectorConstrainerA class which allows to emphazise attributes to be written and read to XML
Leaves of an ESySParameters object can be:p11=ParameterSet(gamma1=1.,gamma2=2.,gamma3=3.) p1=ParameterSet(dim=2,tol_v=0.001,output_file="/tmp/u.%3.3d.dx",runFlag=True,parm11=p11) parm=ParameterSet(parm1=p1,parm2=ParameterSet(alpha=Link(p11,"gamma1")))This can be accessed as:
parm.parm1.gamma=0. parm.parm1.dim=2 parm.parm1.tol_v=0.001 parm.parm1.output_file="/tmp/u.%3.3d.dx" parm.parm1.runFlag=True parm.parm1.parm11.gamma1=1. parm.parm1.parm11.gamma2=2. parm.parm1.parm11.gamma3=3. parm.parm2.alpha=1. (value of parm.parm1.parm11.gamma1)
| Method Summary | |
|---|---|
Creates a ParameterSet with parameters parameters. | |
Removes the attribute name. | |
Creates an iterator over the parameter and their values. | |
__repr__(self)
| |
Declares a new parameter(s) and its (their) initial value. | |
Declares a set of parameters. | |
fromDom(cls,
doc)
(Class method) | |
Removes parameter name from the paramameters. | |
Returns a descrition of the parameters. | |
toDom method of ParameterSet class. | |
Writes the object as an XML object into an output stream. | |
| Inherited from LinkableObject | |
Returns the value of attribute name. | |
Sets the value for attribute name. | |
Return the object stored for attribute name. | |
Returns True if self as attribute name. | |
If debugging is on, print the message, otherwise do nothing | |
| Inherited from object | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__str__() <==> str(x) | |
| Class Variable Summary | |
|---|---|
| Inherited from LinkableObject | |
count |
number_sequence = <itertools.count object at 0x401ff100>
|
| Instance Method Details |
|---|
__init__(self,
parameters=[],
**kwargs)
Creates a ParameterSet with parameters parameters.
|
__delattr__(self, name)Removes the attribute name. |
__iter__(self)Creates an iterator over the parameter and their values. |
declareParameter(self, **parameters)Declares a new parameter(s) and its (their) initial value. |
declareParameters(self, parameters)Declares a set of parameters. parameters can be a list, a dictionary or a ParameterSet. |
releaseParameters(self, name)Removes parameter name from the paramameters. |
showParameters(self)Returns a descrition of the parameters. |
toDom(self, document, node)toDom method of ParameterSet class.
|
writeXML(self, ostream=<epydoc.imports._DevNull instance at 0x402244cc>)Writes the object as an XML object into an output stream. |
| Home | Trees | Index | Help |
|---|
| Generated by Epydoc 2.1 on Thu Apr 27 11:16:23 2006 | http://epydoc.sf.net |