Peano
Loading...
Searching...
No Matches
Aspect.py
Go to the documentation of this file.
1# This file is part of the Peano 4 project. For conditions of distribution and
2# use, please see the copyright notice at www.peano-framework.org
3from abc import ABC, abstractmethod
4
5
6class Aspect(object):
7 """!
8
9 Superclass of each and every MPI aspect in Peano 4.
10
11 """
12 def __init__(self):
13 self._data_model = None
14 pass
15
16
17 def set_model(self,
18 data_model,
19 ):
20 """!
21
22 Inform aspect about model
23
24 This routine is invoked by DataModel.add_aspect() and informs us about
25 the data model in use.
26
27 @param data_model: dastgen2.DataModel
28 I cannot use the actual data model, as I otherwise get circular
29 inputs.
30
31 """
32 self._data_model = data_model
33
34
35 @abstractmethod
36 def get_attributes(self):
37 raise NotImplementedError
38
39
40 @abstractmethod
41 def get_include(self):
42 raise NotImplementedError
43
44
45 @abstractmethod
46 def get_method_declarations(self, full_qualified_name):
47 raise NotImplementedError
48
49
50 @abstractmethod
51 def get_implementation(self, full_qualified_name):
52 raise NotImplementedError
Superclass of each and every MPI aspect in Peano 4.
Definition Aspect.py:6
set_model(self, data_model)
Inform aspect about model.
Definition Aspect.py:19
get_method_declarations(self, full_qualified_name)
Definition Aspect.py:46
get_implementation(self, full_qualified_name)
Definition Aspect.py:51