KerMor  0.9
Model order reduction for nonlinear dynamical systems and nonlinear approximation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
DPCMDemoClass.m
Go to the documentation of this file.
1 
2 
3 /* (Autoinserted by mtoc++)
4  * This source code has been filtered by the mtoc++ executable,
5  * which generates code that can be processed by the doxygen documentation tool.
6  *
7  * On the other hand, it can neither be interpreted by MATLAB, nor can it be compiled with a C++ compiler.
8  * Except for the comments, the function bodies of your M-file functions are untouched.
9  * Consequently, the FILTER_SOURCE_FILES doxygen switch (default in our Doxyfile.template) will produce
10  * attached source files that are highly readable by humans.
11  *
12  * Additionally, links in the doxygen generated documentation to the source code of functions and class members refer to
13  * the correct locations in the source code browser.
14  * However, the line numbers most likely do not correspond to the line numbers in the original MATLAB source files.
15  */
16 
18  :public DPCMObject {
38  public: /* ( setObservable ) */
39 
84  ::"data" SupervisedDataProperty = "somedata";
99  public:
100 
111  public:
112 
113  notObserved = "somevalue";
126  public:
127 
129  this = this@DPCMObject;
130 
131  /* Assign any class instances as default values. */
132  this.SubClass= DPCMObject;
133 
134  /* Register properties that are to be supervised */
135  this.registerProps(" Prop1 "," Prop2 "," SubClass ");
136 
137  /* If you change any property after registering them, the whole point of the system
138  * fails because at this stage the DPCM is already active.
139  * As a consequence, Prop2 will always be seen as already changed. */
140  this.Prop2= " changed after registering .. ";
141  }
148  function demo() {
149  this.doSomeComputation;
150 
151  /* Change some variables */
152  disp(" <<<<<<<<<<<<<<<<<<<<<<<< DPCMDemo: Changing some variables... >>>>>>>>>>>>>>>>>>>>>>> ");
153  this.Prop1= 45;
154  this.SubClass.WorkspaceVariableName= " some value for a property ";
155 
156  this.doSomeComputation;
157  }
164  function doSomeComputation() {
165 
166  /* % Perform the DPCM check before computations
167  * Critical properties only (recommended): */
168  DPCM.criticalsCheck(this);
169 
170  /* % More details
171  * Optional: Print a summary */
172  disp(" <<<<<<<<<<<<<<<<<<<<<<<< DPCMDemo: summary >>>>>>>>>>>>>>>>>>>>>>> ");
173  pause;
174  DPCM.getDPCMSummary(this);
175 
176  /* Optional: Detailed report */
177  disp(" <<<<<<<<<<<<<<<<<<<<<<<< DPCMDemo: report >>>>>>>>>>>>>>>>>>>>>>> ");
178  pause;
179  DPCM.getDPCMReport(this);
180 
181 
182  /* % Put your computation/method calls here
183  * [...] */
184  }
185 
186 
187 
188 #if 0 //mtoc++: 'set.Prop1'
189 function Prop1(value) {
190 
191  this.Prop1= value;
192  }
193 
194 #endif
195 
206 };
207 
DPCMCandidate
This is a property that intentionally has been "forgotten" to be added to the DPCM system...
WorkspaceVariableName
The workspace variable name of this class. Optional.
Definition: DPCMObject.m:48
function demo()
Perform some fake computations.
static function getDPCMReport(DPCMobj, levels)
Prints a detailed report about the properties at each level which have not been changed from their de...
Definition: DPCM.m:143
DPCMDemoClass: Demo class for the DPCM System.
Definition: DPCMDemoClass.m:17
Prop1
Brief description of property one.
Definition: DPCMDemoClass.m:40
A double value.
DPCMObject SubClass
This is a subclass.
Definition: DPCMDemoClass.m:68
function registerProps(varargin)
Call this method at any class that defines DPCM observed properties.
Definition: DPCMObject.m:125
notObserved
Methods with private set access are not considered for DPCM. Candidates are with set access protected...
DPCMObject: Base object for any class participating in the DPCM system.
Definition: DPCMObject.m:17
DPCMObject()
Creates a new DPCM object.
Definition: DPCMObject.m:101
function doSomeComputation()
DPCM: Default property change monitoring for MatLab class properties.
Definition: DPCM.m:17
static function getDPCMSummary(DPCMobj, levels)
Prints a summary about the properties of different levels which have not been changed from their defa...
Definition: DPCM.m:169
disp
Handle object disp method which is called by the display method. See the MATLAB disp function...
static function criticalsCheck(DPCMobj)
This is a shorthand method that runs the DPCM but only for critical properties.
Definition: DPCM.m:192
double Prop2
Brief for property two.
Definition: DPCMDemoClass.m:53
data SupervisedDataProperty
This is a property.
Definition: DPCMDemoClass.m:84
DPCMDemoClass()
Call superclass constructor.