|
PSCF v1.3.3
|
A Parameter represents a single parameter in a parameter file. More...
Public Member Functions | |
| __init__ (self, label, val) | |
| Constructor. | |
| setValue (self, val) | |
| Set the new value to the Parameter object. | |
| __str__ (self) | |
| Unindented string representation of this Parameter object. | |
| getString (self, depth='') | |
| Indented string for the Parameter object. | |
| returnData (self) | |
| Return the stored value. | |
A Parameter represents a single parameter in a parameter file.
A Parameter object contains the label and value of a single parameter. A single parameter is represented in a parameter file by a single line containing a label followed by one or more values separated by spaces.
| pscfpp.param.Parameter.__init__ | ( | self, | |
| label, | |||
| val ) |
Constructor.
| label | label string for the individual parameter |
| val | parameter value |
Definition at line 460 of file param.py.
References pscfpp.param.getValue(), pscfpp.command.Command.label, pscfpp.param.Composite.label, label, and val.
| pscfpp.param.Parameter.setValue | ( | self, | |
| val ) |
| pscfpp.param.Parameter.__str__ | ( | self | ) |
Unindented string representation of this Parameter object.
This function returns the unindented string representation for this Parameter object, containing a label followed by the value.
Definition at line 491 of file param.py.
References pscfpp.param.Composite.getString(), and getString().
| pscfpp.param.Parameter.getString | ( | self, | |
| depth = '' ) |
Indented string for the Parameter object.
This function returns the indented string representation for the Parameter object in the param file format, with prefix depth as the passed-in parameter.
| depth | the spaces string as the prefix depth. |
Definition at line 504 of file param.py.
References val.
Referenced by pscfpp.param.Array.__str__(), pscfpp.param.Matrix.__str__(), and __str__().
| pscfpp.param.Parameter.returnData | ( | self | ) |