samer@0: % agraph - Base arrow class for graphics in a Matlab figure samer@0: % samer@0: % agraph :: samer@0: % N:natural ~'number of inputs', samer@0: % options { samer@0: % fig :: handle / gcf ~'figure for this instance'; samer@0: % autoflush :: boolean/1 ~'unit will call drawnow after every iteration' samer@0: % } samer@27: % -> agraph(N) < arrow(_@typelist(N),{},_). samer@0: % samer@0: % METHODS samer@0: % autoflush :: agraph(_) -> boolean. samer@0: % fig :: agraph(_) -> handle. samer@0: % samer@0: % This class is no use instantiated directly. Should be subclassed. samer@0: function o=agraph(nin,varargin) samer@37: s.opts=options('fig',[],'name','','autoflush',0,varargin{:}); samer@0: if isempty(s.opts.fig), warning('agraph requires figure'); end samer@0: o=class(s,'agraph',arrow(nin,0)); samer@0: end samer@0: