diff +multiblock/Definition.m @ 587:25fdc7a625b6 feature/better_multiblock_defs

Add abstract class for multiblock definitions
author Jonatan Werpers <jonatan@werpers.com>
date Mon, 11 Sep 2017 13:46:08 +0200
parents
children 53d422efaabd
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/+multiblock/Definition.m	Mon Sep 11 13:46:08 2017 +0200
@@ -0,0 +1,15 @@
+classdef Definition
+    methods (Abstract)
+
+        % Returns a multiblock.Grid given some parameters
+        g = getGrid(obj, varargin)
+
+        % label is the type of label used for plotting,
+        % default is block name, 'id' show the index for each block.
+        show(obj, label, gridLines, varargin)
+
+        % Returns the grid size of each block in a cell array
+        % The input parameters are determined by the subclass
+        ms = getGridSizes(obj, varargin)
+    end
+end