Peano
Loading...
Searching...
No Matches
Steps.py
Go to the documentation of this file.
1
# This file is part of the Peano project. For conditions of distribution and
2
# use, please see the copyright notice at www.peano-framework.org
3
from
.StepsToStepRepository
import
StepsToStepRepository
4
5
6
class
Steps
(object):
7
"""!
8
9
All operations within Peano 4 model
10
11
Represents the total output generated from the Peano4 data model plus all
12
the operations on it. This is basically a big collection. Each step holds
13
all the action sets aka operations that are executed within one grid
14
traversal.
15
16
"""
17
18
def
__init__
(self,project):
19
self.
_project
= project
20
self.
_steps
= []
21
self.
_namespace
= project.namespace
22
self.
generator
=
StepsToStepRepository
(self)
23
24
25
def
__str__
(self):
26
return
"(#steps="
+ str(len(self.
_steps
)) +
")"
27
28
29
def
add_step
(self,step):
30
step.set_project(self.
_project
)
31
self.
_steps
.append(step)
32
33
34
def
construct_output
(self,output):
35
for
step
in
self.
_steps
:
36
step.construct_output(output)
37
self.
generator
.
construct_output
(output)
38
39
40
def
clear
(self):
41
self.
_steps
= []
42
self.
generator
=
StepsToStepRepository
(self)
43
peano4.solversteps.StepsToStepRepository.StepsToStepRepository
Definition
StepsToStepRepository.py:9
peano4.solversteps.Steps.Steps
All operations within Peano 4 model.
Definition
Steps.py:6
peano4.solversteps.Steps.Steps._namespace
_namespace
Definition
Steps.py:21
peano4.solversteps.Steps.Steps._steps
_steps
Definition
Steps.py:20
peano4.solversteps.Steps.Steps._project
_project
Definition
Steps.py:19
peano4.solversteps.Steps.Steps.add_step
add_step(self, step)
Definition
Steps.py:29
peano4.solversteps.Steps.Steps.construct_output
construct_output(self, output)
Definition
Steps.py:34
peano4.solversteps.Steps.Steps.generator
generator
Definition
Steps.py:22
peano4.solversteps.Steps.Steps.__str__
__str__(self)
Definition
Steps.py:25
peano4.solversteps.Steps.Steps.clear
clear(self)
Definition
Steps.py:40
peano4.solversteps.Steps.Steps.__init__
__init__(self, project)
Definition
Steps.py:18
python
peano4
solversteps
Steps.py
Generated on Tue Mar 18 2025 20:03:08 for Peano by
1.10.0