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
3from .StepsToStepRepository import StepsToStepRepository
4
5
6class 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
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 = []
43
All operations within Peano 4 model.
Definition Steps.py:6
construct_output(self, output)
Definition Steps.py:34
__init__(self, project)
Definition Steps.py:18