| |
- SPGIterator
-
- ItConstant
- ItOperator
-
- ItOperatorDivision
- ItOperatorMinus
- ItOperatorPlus
- ItOperatorPower
- ItOperatorProduct
- ItPunctual
- ItRepetition
class ItOperator(SPGIterator) |
|
This subclass generates the values for classes defined according to the rule
@var_name val_min val_max step
where @ is the operation defined for the data type.
var_name is the variable name
val_min, val_max the bounds
step the step
the actualization process runs according to actual_value = actual_value @ step |
|
Methods defined here:
- __init__(self, it_type)
- set_command(self, command, separator=' ')
Methods inherited from SPGIterator:
- __iter__(self)
- get_value(self)
- get_varname(self)
- is_variable(self)
- next(self)
- reset(self)
|
class SPGIterator |
|
This is a subsidiary abstract class for the ParamParser one.
It defines the iteration type in the constructor. Must be subclassed (it's abstract)
In principle there is no need to touch anything here (well, you can always improve the code)
only you must subclass this object if you wish to add other iterator types |
|
Methods defined here:
- __init__(self)
- __iter__(self)
- get_value(self)
- get_varname(self)
- is_variable(self)
- next(self)
- reset(self)
- set_command(self)
- this is the function called to generate all the possible values of the iterator
it returns the variable name and all the possible values it can take
command holds the input line in the parameters file,
separator is the character delimiting fields
(if separator=None, any space is considered a separator)
| |